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

#ifndef rules_2eproto_2epb_2eh
#define rules_2eproto_2epb_2eh

#include <limits>
#include <string>
#include <type_traits>
#include <utility>

// clang-format off
#include "google/protobuf/runtime_version.h"
#if PROTOBUF_VERSION != 7035001
#error "Protobuf C++ gencode is built with an incompatible version of"
#error "Protobuf C++ headers/runtime. See"
#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp"
#endif
#include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/arena.h"
#include "google/protobuf/arenastring.h"
#include "google/protobuf/generated_message_tctable_decl.h"
#include "google/protobuf/generated_message_util.h"
#include "google/protobuf/metadata_lite.h"
#include "google/protobuf/message_lite.h"
#include "google/protobuf/repeated_field.h"  // IWYU pragma: export
#include "google/protobuf/extension_set.h"  // IWYU pragma: export
#include "google/protobuf/generated_enum_util.h"
// @@protoc_insertion_point(includes)

// Must be included last.
#include "google/protobuf/port_def.inc"

#define PROTOBUF_INTERNAL_EXPORT_rules_2eproto

namespace google {
namespace protobuf {
namespace internal {
template <typename T>
::absl::string_view GetAnyMessageName();
}  // namespace internal
}  // namespace protobuf
}  // namespace google

// Internal implementation detail -- do not use these members.
struct TableStruct_rules_2eproto {
  static const ::uint32_t offsets[];
};
namespace url_pattern_index {
namespace proto {
enum ActivationType : int;
extern const uint32_t ActivationType_internal_data_[];
enum AnchorType : int;
extern const uint32_t AnchorType_internal_data_[];
enum ElementType : int;
extern const uint32_t ElementType_internal_data_[];
enum RuleSemantics : int;
extern const uint32_t RuleSemantics_internal_data_[];
enum RuleType : int;
extern const uint32_t RuleType_internal_data_[];
enum SourceType : int;
extern const uint32_t SourceType_internal_data_[];
enum UrlPatternType : int;
extern const uint32_t UrlPatternType_internal_data_[];
class Comment;
struct CommentGlobalsTypeInternal;
#ifndef PROTOBUF_MESSAGE_GLOBALS
extern CommentGlobalsTypeInternal Comment_globals_;
extern const ::google::protobuf::internal::ClassDataLite Comment_class_data_;
#else
extern const CommentGlobalsTypeInternal Comment_globals_;
#endif  // PROTOBUF_MESSAGE_GLOBALS
class DomainListItem;
struct DomainListItemGlobalsTypeInternal;
#ifndef PROTOBUF_MESSAGE_GLOBALS
extern DomainListItemGlobalsTypeInternal DomainListItem_globals_;
extern const ::google::protobuf::internal::ClassDataLite DomainListItem_class_data_;
#else
extern const DomainListItemGlobalsTypeInternal DomainListItem_globals_;
#endif  // PROTOBUF_MESSAGE_GLOBALS
class FilteringRules;
struct FilteringRulesGlobalsTypeInternal;
#ifndef PROTOBUF_MESSAGE_GLOBALS
extern FilteringRulesGlobalsTypeInternal FilteringRules_globals_;
extern const ::google::protobuf::internal::ClassDataLite FilteringRules_class_data_;
#else
extern const FilteringRulesGlobalsTypeInternal FilteringRules_globals_;
#endif  // PROTOBUF_MESSAGE_GLOBALS
class StyleRule;
struct StyleRuleGlobalsTypeInternal;
#ifndef PROTOBUF_MESSAGE_GLOBALS
extern StyleRuleGlobalsTypeInternal StyleRule_globals_;
extern const ::google::protobuf::internal::ClassDataLite StyleRule_class_data_;
#else
extern const StyleRuleGlobalsTypeInternal StyleRule_globals_;
#endif  // PROTOBUF_MESSAGE_GLOBALS
class UrlRule;
struct UrlRuleGlobalsTypeInternal;
#ifndef PROTOBUF_MESSAGE_GLOBALS
extern UrlRuleGlobalsTypeInternal UrlRule_globals_;
extern const ::google::protobuf::internal::ClassDataLite UrlRule_class_data_;
#else
extern const UrlRuleGlobalsTypeInternal UrlRule_globals_;
#endif  // PROTOBUF_MESSAGE_GLOBALS
}  // namespace proto
}  // namespace url_pattern_index
namespace google {
namespace protobuf {
template <>
internal::EnumTraitsT<::url_pattern_index::proto::ActivationType_internal_data_>
    internal::EnumTraitsImpl::value<::url_pattern_index::proto::ActivationType>;
template <>
internal::EnumTraitsT<::url_pattern_index::proto::AnchorType_internal_data_>
    internal::EnumTraitsImpl::value<::url_pattern_index::proto::AnchorType>;
template <>
internal::EnumTraitsT<::url_pattern_index::proto::ElementType_internal_data_>
    internal::EnumTraitsImpl::value<::url_pattern_index::proto::ElementType>;
template <>
internal::EnumTraitsT<::url_pattern_index::proto::RuleSemantics_internal_data_>
    internal::EnumTraitsImpl::value<::url_pattern_index::proto::RuleSemantics>;
template <>
internal::EnumTraitsT<::url_pattern_index::proto::RuleType_internal_data_>
    internal::EnumTraitsImpl::value<::url_pattern_index::proto::RuleType>;
template <>
internal::EnumTraitsT<::url_pattern_index::proto::SourceType_internal_data_>
    internal::EnumTraitsImpl::value<::url_pattern_index::proto::SourceType>;
template <>
internal::EnumTraitsT<::url_pattern_index::proto::UrlPatternType_internal_data_>
    internal::EnumTraitsImpl::value<::url_pattern_index::proto::UrlPatternType>;
}  // namespace protobuf
}  // namespace google

namespace url_pattern_index {
namespace proto {
enum RuleType : int {
  RULE_TYPE_UNSPECIFIED = 0,
  RULE_TYPE_COMMENT = 1,
  RULE_TYPE_URL = 2,
  RULE_TYPE_STYLE = 3,
};

extern const uint32_t RuleType_internal_data_[];
inline constexpr RuleType RuleType_MIN =
    static_cast<RuleType>(0);
inline constexpr RuleType RuleType_MAX =
    static_cast<RuleType>(3);
inline bool RuleType_IsValid(int value) {
  return 0 <= value && value <= 3;
}
inline constexpr int RuleType_ARRAYSIZE = 3 + 1;
const ::std::string& RuleType_Name(RuleType value);
template <typename T>
const ::std::string& RuleType_Name(T value) {
  static_assert(::std::is_same<T, RuleType>::value ||
                    ::std::is_integral<T>::value,
                "Incorrect type passed to RuleType_Name().");
  return RuleType_Name(static_cast<RuleType>(value));
}
bool RuleType_Parse(
    ::absl::string_view name, RuleType* PROTOBUF_NONNULL value);
enum UrlPatternType : int {
  URL_PATTERN_TYPE_UNSPECIFIED = 0,
  URL_PATTERN_TYPE_SUBSTRING = 1,
  URL_PATTERN_TYPE_WILDCARDED = 2,
  URL_PATTERN_TYPE_REGEXP = 3,
};

extern const uint32_t UrlPatternType_internal_data_[];
inline constexpr UrlPatternType UrlPatternType_MIN =
    static_cast<UrlPatternType>(0);
inline constexpr UrlPatternType UrlPatternType_MAX =
    static_cast<UrlPatternType>(3);
inline bool UrlPatternType_IsValid(int value) {
  return 0 <= value && value <= 3;
}
inline constexpr int UrlPatternType_ARRAYSIZE = 3 + 1;
const ::std::string& UrlPatternType_Name(UrlPatternType value);
template <typename T>
const ::std::string& UrlPatternType_Name(T value) {
  static_assert(::std::is_same<T, UrlPatternType>::value ||
                    ::std::is_integral<T>::value,
                "Incorrect type passed to UrlPatternType_Name().");
  return UrlPatternType_Name(static_cast<UrlPatternType>(value));
}
bool UrlPatternType_Parse(
    ::absl::string_view name, UrlPatternType* PROTOBUF_NONNULL value);
enum AnchorType : int {
  ANCHOR_TYPE_UNSPECIFIED = 0,
  ANCHOR_TYPE_NONE = 1,
  ANCHOR_TYPE_BOUNDARY = 2,
  ANCHOR_TYPE_SUBDOMAIN = 3,
};

extern const uint32_t AnchorType_internal_data_[];
inline constexpr AnchorType AnchorType_MIN =
    static_cast<AnchorType>(0);
inline constexpr AnchorType AnchorType_MAX =
    static_cast<AnchorType>(3);
inline bool AnchorType_IsValid(int value) {
  return 0 <= value && value <= 3;
}
inline constexpr int AnchorType_ARRAYSIZE = 3 + 1;
const ::std::string& AnchorType_Name(AnchorType value);
template <typename T>
const ::std::string& AnchorType_Name(T value) {
  static_assert(::std::is_same<T, AnchorType>::value ||
                    ::std::is_integral<T>::value,
                "Incorrect type passed to AnchorType_Name().");
  return AnchorType_Name(static_cast<AnchorType>(value));
}
bool AnchorType_Parse(
    ::absl::string_view name, AnchorType* PROTOBUF_NONNULL value);
enum ElementType : int {
  ELEMENT_TYPE_UNSPECIFIED = 0,
  ELEMENT_TYPE_OTHER = 1,
  ELEMENT_TYPE_SCRIPT = 2,
  ELEMENT_TYPE_IMAGE = 4,
  ELEMENT_TYPE_STYLESHEET = 8,
  ELEMENT_TYPE_OBJECT = 16,
  ELEMENT_TYPE_XMLHTTPREQUEST = 32,
  ELEMENT_TYPE_OBJECT_SUBREQUEST = 64,
  ELEMENT_TYPE_SUBDOCUMENT = 128,
  ELEMENT_TYPE_PING = 256,
  ELEMENT_TYPE_MEDIA = 512,
  ELEMENT_TYPE_FONT = 1024,
  ELEMENT_TYPE_POPUP = 2048,
  ELEMENT_TYPE_WEBSOCKET = 4096,
  ELEMENT_TYPE_WEBTRANSPORT = 8192,
  ELEMENT_TYPE_WEBBUNDLE = 16384,
  ELEMENT_TYPE_MAX = 16384,
  ELEMENT_TYPE_ALL = 32767,
};

extern const uint32_t ElementType_internal_data_[];
inline constexpr ElementType ElementType_MIN =
    static_cast<ElementType>(0);
inline constexpr ElementType ElementType_MAX =
    static_cast<ElementType>(32767);
inline bool ElementType_IsValid(int value) {
  return ::google::protobuf::internal::ValidateEnum(value, ElementType_internal_data_);
}
inline constexpr int ElementType_ARRAYSIZE = 32767 + 1;
const ::std::string& ElementType_Name(ElementType value);
template <typename T>
const ::std::string& ElementType_Name(T value) {
  static_assert(::std::is_same<T, ElementType>::value ||
                    ::std::is_integral<T>::value,
                "Incorrect type passed to ElementType_Name().");
  return ElementType_Name(static_cast<ElementType>(value));
}
bool ElementType_Parse(
    ::absl::string_view name, ElementType* PROTOBUF_NONNULL value);
enum ActivationType : int {
  ACTIVATION_TYPE_UNSPECIFIED = 0,
  ACTIVATION_TYPE_DOCUMENT = 1,
  ACTIVATION_TYPE_ELEMHIDE = 2,
  ACTIVATION_TYPE_GENERICHIDE = 4,
  ACTIVATION_TYPE_GENERICBLOCK = 8,
  ACTIVATION_TYPE_MAX = 8,
  ACTIVATION_TYPE_ALL = 15,
};

extern const uint32_t ActivationType_internal_data_[];
inline constexpr ActivationType ActivationType_MIN =
    static_cast<ActivationType>(0);
inline constexpr ActivationType ActivationType_MAX =
    static_cast<ActivationType>(15);
inline bool ActivationType_IsValid(int value) {
  return 0 <= value && value <= 15 && ((33047u >> value) & 1) != 0;
}
inline constexpr int ActivationType_ARRAYSIZE = 15 + 1;
const ::std::string& ActivationType_Name(ActivationType value);
template <typename T>
const ::std::string& ActivationType_Name(T value) {
  static_assert(::std::is_same<T, ActivationType>::value ||
                    ::std::is_integral<T>::value,
                "Incorrect type passed to ActivationType_Name().");
  return ActivationType_Name(static_cast<ActivationType>(value));
}
bool ActivationType_Parse(
    ::absl::string_view name, ActivationType* PROTOBUF_NONNULL value);
enum RuleSemantics : int {
  RULE_SEMANTICS_UNSPECIFIED = 0,
  RULE_SEMANTICS_BLOCKLIST = 1,
  RULE_SEMANTICS_ALLOWLIST = 2,
};

extern const uint32_t RuleSemantics_internal_data_[];
inline constexpr RuleSemantics RuleSemantics_MIN =
    static_cast<RuleSemantics>(0);
inline constexpr RuleSemantics RuleSemantics_MAX =
    static_cast<RuleSemantics>(2);
inline bool RuleSemantics_IsValid(int value) {
  return 0 <= value && value <= 2;
}
inline constexpr int RuleSemantics_ARRAYSIZE = 2 + 1;
const ::std::string& RuleSemantics_Name(RuleSemantics value);
template <typename T>
const ::std::string& RuleSemantics_Name(T value) {
  static_assert(::std::is_same<T, RuleSemantics>::value ||
                    ::std::is_integral<T>::value,
                "Incorrect type passed to RuleSemantics_Name().");
  return RuleSemantics_Name(static_cast<RuleSemantics>(value));
}
bool RuleSemantics_Parse(
    ::absl::string_view name, RuleSemantics* PROTOBUF_NONNULL value);
enum SourceType : int {
  SOURCE_TYPE_UNSPECIFIED = 0,
  SOURCE_TYPE_ANY = 1,
  SOURCE_TYPE_THIRD_PARTY = 2,
  SOURCE_TYPE_FIRST_PARTY = 3,
};

extern const uint32_t SourceType_internal_data_[];
inline constexpr SourceType SourceType_MIN =
    static_cast<SourceType>(0);
inline constexpr SourceType SourceType_MAX =
    static_cast<SourceType>(3);
inline bool SourceType_IsValid(int value) {
  return 0 <= value && value <= 3;
}
inline constexpr int SourceType_ARRAYSIZE = 3 + 1;
const ::std::string& SourceType_Name(SourceType value);
template <typename T>
const ::std::string& SourceType_Name(T value) {
  static_assert(::std::is_same<T, SourceType>::value ||
                    ::std::is_integral<T>::value,
                "Incorrect type passed to SourceType_Name().");
  return SourceType_Name(static_cast<SourceType>(value));
}
bool SourceType_Parse(
    ::absl::string_view name, SourceType* PROTOBUF_NONNULL value);
using ::google::protobuf::internal::generated_enum::AbslParseFlag;
using ::google::protobuf::internal::generated_enum::AbslUnparseFlag;

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


// -------------------------------------------------------------------

class  DomainListItem final : public ::google::protobuf::MessageLite
/* @@protoc_insertion_point(class_definition:url_pattern_index.proto.DomainListItem) */ {
 public:
  inline DomainListItem() : DomainListItem(nullptr) {}
  ~DomainListItem() PROTOBUF_FINAL;

#if defined(PROTOBUF_CUSTOM_VTABLE)
  void operator delete(DomainListItem* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
    SharedDtor(*msg);
    ::google::protobuf::internal::SizedDelete(msg, sizeof(DomainListItem));
  }
#endif

  template <typename = void>
  explicit constexpr DomainListItem(::google::protobuf::internal::ConstantInitialized,
                           const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
                               class_data);

  inline DomainListItem(const DomainListItem& from) : DomainListItem(nullptr, from) {}
  inline DomainListItem(DomainListItem&& from) noexcept : DomainListItem(nullptr, ::std::move(from)) {}
  inline DomainListItem& operator=(const DomainListItem& from) {
    CopyFrom(from);
    return *this;
  }
  inline DomainListItem& operator=(DomainListItem&& from) noexcept {
    if (this == &from) return *this;
    if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  inline const ::std::string& unknown_fields() const
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString);
  }
  inline ::std::string* PROTOBUF_NONNULL
  mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.mutable_unknown_fields<::std::string>();
  }

  static const DomainListItem& default_instance() {
    return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<DomainListItem>(&DomainListItem_globals_);
  }
  static constexpr int kIndexInFileMessages = 0;
  friend void swap(DomainListItem& a, DomainListItem& b) { a.Swap(&b); }
  PROTOBUF_NOINLINE void Swap(DomainListItem* PROTOBUF_NONNULL other) {
    if (other == this) return;
    if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
      InternalSwap(other);
    } else {
      ::google::protobuf::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(DomainListItem* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  DomainListItem* PROTOBUF_NONNULL
  New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return ::google::protobuf::MessageLite::DefaultConstruct<DomainListItem>(arena);
  }
  void CopyFrom(const DomainListItem& from);
  void MergeFrom(const DomainListItem& from) { DomainListItem::MergeImpl(*this, from); }

  private:
  static void MergeImpl(::google::protobuf::MessageLite& to_msg,
                        const ::google::protobuf::MessageLite& from_msg);

  public:
  bool IsInitialized() const {
    return true;
  }
  ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
  #if defined(PROTOBUF_CUSTOM_VTABLE)
  private:
  static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
  static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);

  public:
  ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
  ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
    return _InternalSerialize(*this, target, stream);
  }
  #else   // PROTOBUF_CUSTOM_VTABLE
  ::size_t ByteSizeLong() const final;
  ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
  #endif  // PROTOBUF_CUSTOM_VTABLE
  int GetCachedSize() const {
    return _impl_._cached_size_.Get();
  }

  private:
  void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static void SharedDtor(MessageLite& self);
  void InternalSwap(DomainListItem* PROTOBUF_NONNULL other);
 private:
  template <typename T>
  friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
  static ::absl::string_view FullMessageName() { return "url_pattern_index.proto.DomainListItem"; }

  explicit DomainListItem(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  DomainListItem(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const DomainListItem& from);
  DomainListItem(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, DomainListItem&& from) noexcept
      : DomainListItem(arena) {
    *this = ::std::move(from);
  }
  const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
  static void* PROTOBUF_NONNULL PlacementNew_(
      const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static constexpr auto InternalNewImpl_();

 public:
  static constexpr auto InternalGenerateClassData_(
      const MessageLite& prototype,
      const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr);

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------
  enum : int {
    kDomainFieldNumber = 1,
    kExcludeFieldNumber = 2,
  };
  // optional string domain = 1;
  bool has_domain()
      const;
  void clear_domain() ;
  const ::std::string& domain() const;
  template <typename Arg_ = const ::std::string&, typename... Args_>
  void set_domain(Arg_&& arg, Args_... args);
  ::std::string* PROTOBUF_NONNULL mutable_domain();
  ::std::string* PROTOBUF_NULLABLE release_domain();
  void set_allocated_domain(::std::string* PROTOBUF_NULLABLE value);

  private:
  const ::std::string& _internal_domain() const;
  PROTOBUF_ALWAYS_INLINE void _internal_set_domain(const ::std::string& value);
  ::std::string* PROTOBUF_NONNULL _internal_mutable_domain();

  public:
  // optional bool exclude = 2;
  bool has_exclude()
      const;
  void clear_exclude() ;
  bool exclude() const;
  void set_exclude(bool value);

  private:
  bool _internal_exclude() const;
  void _internal_set_exclude(bool value);

  public:
  // @@protoc_insertion_point(class_scope:url_pattern_index.proto.DomainListItem)
 private:
  class _Internal;
  using ParseTableT_ =
      ::google::protobuf::internal::TcParseTable<1, 2,
                          0, 0,
                          2>;
  static constexpr ParseTableT_ InternalGenerateParseTable_(
      const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data);
  friend class ::google::protobuf::internal::TcParser;
  #ifndef PROTOBUF_MESSAGE_GLOBALS
  static const ParseTableT_ _table_;
  #endif

  friend class ::google::protobuf::MessageLite;
  friend class ::google::protobuf::Arena;
  friend ::google::protobuf::internal::PrivateAccess;
  template <typename T>
  friend class ::google::protobuf::Arena::InternalHelper;
  using InternalArenaConstructable_ = void;
  using DestructorSkippable_ = void;
  struct Impl_ {
    inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility,
                                    ::google::protobuf::internal::ConstantInitialized) noexcept;
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
        const DomainListItem& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::google::protobuf::internal::ArenaStringPtr domain_;
    bool exclude_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_rules_2eproto;
};
// -------------------------------------------------------------------

class  Comment final : public ::google::protobuf::MessageLite
/* @@protoc_insertion_point(class_definition:url_pattern_index.proto.Comment) */ {
 public:
  inline Comment() : Comment(nullptr) {}
  ~Comment() PROTOBUF_FINAL;

#if defined(PROTOBUF_CUSTOM_VTABLE)
  void operator delete(Comment* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
    SharedDtor(*msg);
    ::google::protobuf::internal::SizedDelete(msg, sizeof(Comment));
  }
#endif

  template <typename = void>
  explicit constexpr Comment(::google::protobuf::internal::ConstantInitialized,
                           const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
                               class_data);

  inline Comment(const Comment& from) : Comment(nullptr, from) {}
  inline Comment(Comment&& from) noexcept : Comment(nullptr, ::std::move(from)) {}
  inline Comment& operator=(const Comment& from) {
    CopyFrom(from);
    return *this;
  }
  inline Comment& operator=(Comment&& from) noexcept {
    if (this == &from) return *this;
    if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  inline const ::std::string& unknown_fields() const
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString);
  }
  inline ::std::string* PROTOBUF_NONNULL
  mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.mutable_unknown_fields<::std::string>();
  }

  static const Comment& default_instance() {
    return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<Comment>(&Comment_globals_);
  }
  static constexpr int kIndexInFileMessages = 3;
  friend void swap(Comment& a, Comment& b) { a.Swap(&b); }
  PROTOBUF_NOINLINE void Swap(Comment* PROTOBUF_NONNULL other) {
    if (other == this) return;
    if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
      InternalSwap(other);
    } else {
      ::google::protobuf::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(Comment* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  Comment* PROTOBUF_NONNULL
  New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return ::google::protobuf::MessageLite::DefaultConstruct<Comment>(arena);
  }
  void CopyFrom(const Comment& from);
  void MergeFrom(const Comment& from) { Comment::MergeImpl(*this, from); }

  private:
  static void MergeImpl(::google::protobuf::MessageLite& to_msg,
                        const ::google::protobuf::MessageLite& from_msg);

  public:
  bool IsInitialized() const {
    return true;
  }
  ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
  #if defined(PROTOBUF_CUSTOM_VTABLE)
  private:
  static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
  static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);

  public:
  ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
  ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
    return _InternalSerialize(*this, target, stream);
  }
  #else   // PROTOBUF_CUSTOM_VTABLE
  ::size_t ByteSizeLong() const final;
  ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
  #endif  // PROTOBUF_CUSTOM_VTABLE
  int GetCachedSize() const {
    return _impl_._cached_size_.Get();
  }

  private:
  void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static void SharedDtor(MessageLite& self);
  void InternalSwap(Comment* PROTOBUF_NONNULL other);
 private:
  template <typename T>
  friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
  static ::absl::string_view FullMessageName() { return "url_pattern_index.proto.Comment"; }

  explicit Comment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  Comment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Comment& from);
  Comment(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Comment&& from) noexcept
      : Comment(arena) {
    *this = ::std::move(from);
  }
  const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
  static void* PROTOBUF_NONNULL PlacementNew_(
      const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static constexpr auto InternalNewImpl_();

 public:
  static constexpr auto InternalGenerateClassData_(
      const MessageLite& prototype,
      const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr);

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------
  enum : int {
    kTextFieldNumber = 1,
    kKeyFieldNumber = 2,
    kValueFieldNumber = 3,
  };
  // optional string text = 1;
  bool has_text()
      const;
  void clear_text() ;
  const ::std::string& text() const;
  template <typename Arg_ = const ::std::string&, typename... Args_>
  void set_text(Arg_&& arg, Args_... args);
  ::std::string* PROTOBUF_NONNULL mutable_text();
  ::std::string* PROTOBUF_NULLABLE release_text();
  void set_allocated_text(::std::string* PROTOBUF_NULLABLE value);

  private:
  const ::std::string& _internal_text() const;
  PROTOBUF_ALWAYS_INLINE void _internal_set_text(const ::std::string& value);
  ::std::string* PROTOBUF_NONNULL _internal_mutable_text();

  public:
  // optional string key = 2;
  bool has_key()
      const;
  void clear_key() ;
  const ::std::string& key() const;
  template <typename Arg_ = const ::std::string&, typename... Args_>
  void set_key(Arg_&& arg, Args_... args);
  ::std::string* PROTOBUF_NONNULL mutable_key();
  ::std::string* PROTOBUF_NULLABLE release_key();
  void set_allocated_key(::std::string* PROTOBUF_NULLABLE value);

  private:
  const ::std::string& _internal_key() const;
  PROTOBUF_ALWAYS_INLINE void _internal_set_key(const ::std::string& value);
  ::std::string* PROTOBUF_NONNULL _internal_mutable_key();

  public:
  // optional string value = 3;
  bool has_value()
      const;
  void clear_value() ;
  const ::std::string& value() const;
  template <typename Arg_ = const ::std::string&, typename... Args_>
  void set_value(Arg_&& arg, Args_... args);
  ::std::string* PROTOBUF_NONNULL mutable_value();
  ::std::string* PROTOBUF_NULLABLE release_value();
  void set_allocated_value(::std::string* PROTOBUF_NULLABLE value);

  private:
  const ::std::string& _internal_value() const;
  PROTOBUF_ALWAYS_INLINE void _internal_set_value(const ::std::string& value);
  ::std::string* PROTOBUF_NONNULL _internal_mutable_value();

  public:
  // @@protoc_insertion_point(class_scope:url_pattern_index.proto.Comment)
 private:
  class _Internal;
  using ParseTableT_ =
      ::google::protobuf::internal::TcParseTable<2, 3,
                          0, 0,
                          2>;
  static constexpr ParseTableT_ InternalGenerateParseTable_(
      const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data);
  friend class ::google::protobuf::internal::TcParser;
  #ifndef PROTOBUF_MESSAGE_GLOBALS
  static const ParseTableT_ _table_;
  #endif

  friend class ::google::protobuf::MessageLite;
  friend class ::google::protobuf::Arena;
  friend ::google::protobuf::internal::PrivateAccess;
  template <typename T>
  friend class ::google::protobuf::Arena::InternalHelper;
  using InternalArenaConstructable_ = void;
  using DestructorSkippable_ = void;
  struct Impl_ {
    inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility,
                                    ::google::protobuf::internal::ConstantInitialized) noexcept;
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
        const Comment& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::google::protobuf::internal::ArenaStringPtr text_;
    ::google::protobuf::internal::ArenaStringPtr key_;
    ::google::protobuf::internal::ArenaStringPtr value_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_rules_2eproto;
};
// -------------------------------------------------------------------

class  UrlRule final : public ::google::protobuf::MessageLite
/* @@protoc_insertion_point(class_definition:url_pattern_index.proto.UrlRule) */ {
 public:
  inline UrlRule() : UrlRule(nullptr) {}
  ~UrlRule() PROTOBUF_FINAL;

#if defined(PROTOBUF_CUSTOM_VTABLE)
  void operator delete(UrlRule* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
    SharedDtor(*msg);
    ::google::protobuf::internal::SizedDelete(msg, sizeof(UrlRule));
  }
#endif

  template <typename = void>
  explicit constexpr UrlRule(::google::protobuf::internal::ConstantInitialized,
                           const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
                               class_data);

  inline UrlRule(const UrlRule& from) : UrlRule(nullptr, from) {}
  inline UrlRule(UrlRule&& from) noexcept : UrlRule(nullptr, ::std::move(from)) {}
  inline UrlRule& operator=(const UrlRule& from) {
    CopyFrom(from);
    return *this;
  }
  inline UrlRule& operator=(UrlRule&& from) noexcept {
    if (this == &from) return *this;
    if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  inline const ::std::string& unknown_fields() const
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString);
  }
  inline ::std::string* PROTOBUF_NONNULL
  mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.mutable_unknown_fields<::std::string>();
  }

  static const UrlRule& default_instance() {
    return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<UrlRule>(&UrlRule_globals_);
  }
  static constexpr int kIndexInFileMessages = 1;
  friend void swap(UrlRule& a, UrlRule& b) { a.Swap(&b); }
  PROTOBUF_NOINLINE void Swap(UrlRule* PROTOBUF_NONNULL other) {
    if (other == this) return;
    if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
      InternalSwap(other);
    } else {
      ::google::protobuf::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(UrlRule* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  UrlRule* PROTOBUF_NONNULL
  New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return ::google::protobuf::MessageLite::DefaultConstruct<UrlRule>(arena);
  }
  void CopyFrom(const UrlRule& from);
  void MergeFrom(const UrlRule& from) { UrlRule::MergeImpl(*this, from); }

  private:
  static void MergeImpl(::google::protobuf::MessageLite& to_msg,
                        const ::google::protobuf::MessageLite& from_msg);

  public:
  bool IsInitialized() const {
    return true;
  }
  ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
  #if defined(PROTOBUF_CUSTOM_VTABLE)
  private:
  static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
  static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);

  public:
  ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
  ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
    return _InternalSerialize(*this, target, stream);
  }
  #else   // PROTOBUF_CUSTOM_VTABLE
  ::size_t ByteSizeLong() const final;
  ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
  #endif  // PROTOBUF_CUSTOM_VTABLE
  int GetCachedSize() const {
    return _impl_._cached_size_.Get();
  }

  private:
  void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static void SharedDtor(MessageLite& self);
  void InternalSwap(UrlRule* PROTOBUF_NONNULL other);
 private:
  template <typename T>
  friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
  static ::absl::string_view FullMessageName() { return "url_pattern_index.proto.UrlRule"; }

  explicit UrlRule(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  UrlRule(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const UrlRule& from);
  UrlRule(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, UrlRule&& from) noexcept
      : UrlRule(arena) {
    *this = ::std::move(from);
  }
  const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
  static void* PROTOBUF_NONNULL PlacementNew_(
      const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static constexpr auto InternalNewImpl_();

 public:
  static constexpr auto InternalGenerateClassData_(
      const MessageLite& prototype,
      const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr);

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------
  enum : int {
    kInitiatorDomainsFieldNumber = 5,
    kRequestDomainsFieldNumber = 11,
    kUrlPatternFieldNumber = 10,
    kSemanticsFieldNumber = 1,
    kSourceTypeFieldNumber = 2,
    kElementTypesFieldNumber = 3,
    kActivationTypesFieldNumber = 4,
    kUrlPatternTypeFieldNumber = 6,
    kAnchorLeftFieldNumber = 7,
    kAnchorRightFieldNumber = 8,
    kMatchCaseFieldNumber = 9,
  };
  // repeated .url_pattern_index.proto.DomainListItem initiator_domains = 5;
  int initiator_domains_size()
      const;
  private:
  int _internal_initiator_domains_size() const;

  public:
  void clear_initiator_domains() ;
  const ::url_pattern_index::proto::DomainListItem& initiator_domains(int index) const;
  ::url_pattern_index::proto::DomainListItem* PROTOBUF_NONNULL mutable_initiator_domains(int index);
  ::url_pattern_index::proto::DomainListItem* PROTOBUF_NONNULL add_initiator_domains();
  const ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::DomainListItem>&
  initiator_domains() const;
  ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::DomainListItem>* PROTOBUF_NONNULL
  mutable_initiator_domains();

  private:
  const ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::DomainListItem>& _internal_initiator_domains() const;
  ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::DomainListItem>* PROTOBUF_NONNULL _internal_mutable_initiator_domains();

  public:
  // repeated .url_pattern_index.proto.DomainListItem request_domains = 11;
  int request_domains_size()
      const;
  private:
  int _internal_request_domains_size() const;

  public:
  void clear_request_domains() ;
  const ::url_pattern_index::proto::DomainListItem& request_domains(int index) const;
  ::url_pattern_index::proto::DomainListItem* PROTOBUF_NONNULL mutable_request_domains(int index);
  ::url_pattern_index::proto::DomainListItem* PROTOBUF_NONNULL add_request_domains();
  const ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::DomainListItem>&
  request_domains() const;
  ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::DomainListItem>* PROTOBUF_NONNULL
  mutable_request_domains();

  private:
  const ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::DomainListItem>& _internal_request_domains() const;
  ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::DomainListItem>* PROTOBUF_NONNULL _internal_mutable_request_domains();

  public:
  // optional string url_pattern = 10;
  bool has_url_pattern()
      const;
  void clear_url_pattern() ;
  const ::std::string& url_pattern() const;
  template <typename Arg_ = const ::std::string&, typename... Args_>
  void set_url_pattern(Arg_&& arg, Args_... args);
  ::std::string* PROTOBUF_NONNULL mutable_url_pattern();
  ::std::string* PROTOBUF_NULLABLE release_url_pattern();
  void set_allocated_url_pattern(::std::string* PROTOBUF_NULLABLE value);

  private:
  const ::std::string& _internal_url_pattern() const;
  PROTOBUF_ALWAYS_INLINE void _internal_set_url_pattern(const ::std::string& value);
  ::std::string* PROTOBUF_NONNULL _internal_mutable_url_pattern();

  public:
  // optional .url_pattern_index.proto.RuleSemantics semantics = 1;
  bool has_semantics()
      const;
  void clear_semantics() ;
  ::url_pattern_index::proto::RuleSemantics semantics() const;
  void set_semantics(::url_pattern_index::proto::RuleSemantics value);

  private:
  ::url_pattern_index::proto::RuleSemantics _internal_semantics() const;
  void _internal_set_semantics(::url_pattern_index::proto::RuleSemantics value);

  public:
  // optional .url_pattern_index.proto.SourceType source_type = 2;
  bool has_source_type()
      const;
  void clear_source_type() ;
  ::url_pattern_index::proto::SourceType source_type() const;
  void set_source_type(::url_pattern_index::proto::SourceType value);

  private:
  ::url_pattern_index::proto::SourceType _internal_source_type() const;
  void _internal_set_source_type(::url_pattern_index::proto::SourceType value);

  public:
  // optional int32 element_types = 3;
  bool has_element_types()
      const;
  void clear_element_types() ;
  ::int32_t element_types() const;
  void set_element_types(::int32_t value);

  private:
  ::int32_t _internal_element_types() const;
  void _internal_set_element_types(::int32_t value);

  public:
  // optional int32 activation_types = 4;
  bool has_activation_types()
      const;
  void clear_activation_types() ;
  ::int32_t activation_types() const;
  void set_activation_types(::int32_t value);

  private:
  ::int32_t _internal_activation_types() const;
  void _internal_set_activation_types(::int32_t value);

  public:
  // optional .url_pattern_index.proto.UrlPatternType url_pattern_type = 6;
  bool has_url_pattern_type()
      const;
  void clear_url_pattern_type() ;
  ::url_pattern_index::proto::UrlPatternType url_pattern_type() const;
  void set_url_pattern_type(::url_pattern_index::proto::UrlPatternType value);

  private:
  ::url_pattern_index::proto::UrlPatternType _internal_url_pattern_type() const;
  void _internal_set_url_pattern_type(::url_pattern_index::proto::UrlPatternType value);

  public:
  // optional .url_pattern_index.proto.AnchorType anchor_left = 7;
  bool has_anchor_left()
      const;
  void clear_anchor_left() ;
  ::url_pattern_index::proto::AnchorType anchor_left() const;
  void set_anchor_left(::url_pattern_index::proto::AnchorType value);

  private:
  ::url_pattern_index::proto::AnchorType _internal_anchor_left() const;
  void _internal_set_anchor_left(::url_pattern_index::proto::AnchorType value);

  public:
  // optional .url_pattern_index.proto.AnchorType anchor_right = 8;
  bool has_anchor_right()
      const;
  void clear_anchor_right() ;
  ::url_pattern_index::proto::AnchorType anchor_right() const;
  void set_anchor_right(::url_pattern_index::proto::AnchorType value);

  private:
  ::url_pattern_index::proto::AnchorType _internal_anchor_right() const;
  void _internal_set_anchor_right(::url_pattern_index::proto::AnchorType value);

  public:
  // optional bool match_case = 9;
  bool has_match_case()
      const;
  void clear_match_case() ;
  bool match_case() const;
  void set_match_case(bool value);

  private:
  bool _internal_match_case() const;
  void _internal_set_match_case(bool value);

  public:
  // @@protoc_insertion_point(class_scope:url_pattern_index.proto.UrlRule)
 private:
  class _Internal;
  using ParseTableT_ =
      ::google::protobuf::internal::TcParseTable<4, 11,
                          7, 0,
                          2>;
  static constexpr ParseTableT_ InternalGenerateParseTable_(
      const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data);
  friend class ::google::protobuf::internal::TcParser;
  #ifndef PROTOBUF_MESSAGE_GLOBALS
  static const ParseTableT_ _table_;
  #endif

  friend class ::google::protobuf::MessageLite;
  friend class ::google::protobuf::Arena;
  friend ::google::protobuf::internal::PrivateAccess;
  template <typename T>
  friend class ::google::protobuf::Arena::InternalHelper;
  using InternalArenaConstructable_ = void;
  using DestructorSkippable_ = void;
  struct Impl_ {
    inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility,
                                    ::google::protobuf::internal::ConstantInitialized) noexcept;
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
        const UrlRule& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::google::protobuf::RepeatedPtrField< ::url_pattern_index::proto::DomainListItem > initiator_domains_;
    ::google::protobuf::RepeatedPtrField< ::url_pattern_index::proto::DomainListItem > request_domains_;
    ::google::protobuf::internal::ArenaStringPtr url_pattern_;
    int semantics_;
    int source_type_;
    ::int32_t element_types_;
    ::int32_t activation_types_;
    int url_pattern_type_;
    int anchor_left_;
    int anchor_right_;
    bool match_case_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_rules_2eproto;
};
// -------------------------------------------------------------------

class  StyleRule final : public ::google::protobuf::MessageLite
/* @@protoc_insertion_point(class_definition:url_pattern_index.proto.StyleRule) */ {
 public:
  inline StyleRule() : StyleRule(nullptr) {}
  ~StyleRule() PROTOBUF_FINAL;

#if defined(PROTOBUF_CUSTOM_VTABLE)
  void operator delete(StyleRule* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
    SharedDtor(*msg);
    ::google::protobuf::internal::SizedDelete(msg, sizeof(StyleRule));
  }
#endif

  template <typename = void>
  explicit constexpr StyleRule(::google::protobuf::internal::ConstantInitialized,
                           const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
                               class_data);

  inline StyleRule(const StyleRule& from) : StyleRule(nullptr, from) {}
  inline StyleRule(StyleRule&& from) noexcept : StyleRule(nullptr, ::std::move(from)) {}
  inline StyleRule& operator=(const StyleRule& from) {
    CopyFrom(from);
    return *this;
  }
  inline StyleRule& operator=(StyleRule&& from) noexcept {
    if (this == &from) return *this;
    if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  inline const ::std::string& unknown_fields() const
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString);
  }
  inline ::std::string* PROTOBUF_NONNULL
  mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.mutable_unknown_fields<::std::string>();
  }

  static const StyleRule& default_instance() {
    return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<StyleRule>(&StyleRule_globals_);
  }
  static constexpr int kIndexInFileMessages = 2;
  friend void swap(StyleRule& a, StyleRule& b) { a.Swap(&b); }
  PROTOBUF_NOINLINE void Swap(StyleRule* PROTOBUF_NONNULL other) {
    if (other == this) return;
    if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
      InternalSwap(other);
    } else {
      ::google::protobuf::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(StyleRule* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  StyleRule* PROTOBUF_NONNULL
  New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return ::google::protobuf::MessageLite::DefaultConstruct<StyleRule>(arena);
  }
  void CopyFrom(const StyleRule& from);
  void MergeFrom(const StyleRule& from) { StyleRule::MergeImpl(*this, from); }

  private:
  static void MergeImpl(::google::protobuf::MessageLite& to_msg,
                        const ::google::protobuf::MessageLite& from_msg);

  public:
  bool IsInitialized() const {
    return true;
  }
  ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
  #if defined(PROTOBUF_CUSTOM_VTABLE)
  private:
  static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
  static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);

  public:
  ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
  ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
    return _InternalSerialize(*this, target, stream);
  }
  #else   // PROTOBUF_CUSTOM_VTABLE
  ::size_t ByteSizeLong() const final;
  ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
  #endif  // PROTOBUF_CUSTOM_VTABLE
  int GetCachedSize() const {
    return _impl_._cached_size_.Get();
  }

  private:
  void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static void SharedDtor(MessageLite& self);
  void InternalSwap(StyleRule* PROTOBUF_NONNULL other);
 private:
  template <typename T>
  friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
  static ::absl::string_view FullMessageName() { return "url_pattern_index.proto.StyleRule"; }

  explicit StyleRule(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  StyleRule(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const StyleRule& from);
  StyleRule(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, StyleRule&& from) noexcept
      : StyleRule(arena) {
    *this = ::std::move(from);
  }
  const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
  static void* PROTOBUF_NONNULL PlacementNew_(
      const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static constexpr auto InternalNewImpl_();

 public:
  static constexpr auto InternalGenerateClassData_(
      const MessageLite& prototype,
      const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr);

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------
  enum : int {
    kDomainsFieldNumber = 2,
    kClassesFieldNumber = 4,
    kIdsFieldNumber = 5,
    kSelectorFieldNumber = 3,
    kSemanticsFieldNumber = 1,
  };
  // repeated .url_pattern_index.proto.DomainListItem domains = 2;
  int domains_size()
      const;
  private:
  int _internal_domains_size() const;

  public:
  void clear_domains() ;
  const ::url_pattern_index::proto::DomainListItem& domains(int index) const;
  ::url_pattern_index::proto::DomainListItem* PROTOBUF_NONNULL mutable_domains(int index);
  ::url_pattern_index::proto::DomainListItem* PROTOBUF_NONNULL add_domains();
  const ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::DomainListItem>&
  domains() const;
  ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::DomainListItem>* PROTOBUF_NONNULL
  mutable_domains();

  private:
  const ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::DomainListItem>& _internal_domains() const;
  ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::DomainListItem>* PROTOBUF_NONNULL _internal_mutable_domains();

  public:
  // repeated string classes = 4;
  int classes_size()
      const;
  private:
  int _internal_classes_size() const;

  public:
  void clear_classes() ;
  const ::std::string& classes(int index) const;
  ::std::string* PROTOBUF_NONNULL mutable_classes(int index);
  template <typename Arg_ = const ::std::string&, typename... Args_>
  void set_classes(int index, Arg_&& value, Args_... args);
  ::std::string* PROTOBUF_NONNULL add_classes();
  template <typename Arg_ = const ::std::string&, typename... Args_>
  void add_classes(Arg_&& value, Args_... args);
  const
      ::google::protobuf::RepeatedPtrField<::std::string>&
      classes() const;
  ::google::protobuf::RepeatedPtrField<::std::string>*
      PROTOBUF_NONNULL
      mutable_classes();

  private:
  const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_classes() const;
  ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL _internal_mutable_classes();

  public:
  // repeated string ids = 5;
  int ids_size()
      const;
  private:
  int _internal_ids_size() const;

  public:
  void clear_ids() ;
  const ::std::string& ids(int index) const;
  ::std::string* PROTOBUF_NONNULL mutable_ids(int index);
  template <typename Arg_ = const ::std::string&, typename... Args_>
  void set_ids(int index, Arg_&& value, Args_... args);
  ::std::string* PROTOBUF_NONNULL add_ids();
  template <typename Arg_ = const ::std::string&, typename... Args_>
  void add_ids(Arg_&& value, Args_... args);
  const
      ::google::protobuf::RepeatedPtrField<::std::string>&
      ids() const;
  ::google::protobuf::RepeatedPtrField<::std::string>*
      PROTOBUF_NONNULL
      mutable_ids();

  private:
  const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_ids() const;
  ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL _internal_mutable_ids();

  public:
  // optional string selector = 3;
  bool has_selector()
      const;
  void clear_selector() ;
  const ::std::string& selector() const;
  template <typename Arg_ = const ::std::string&, typename... Args_>
  void set_selector(Arg_&& arg, Args_... args);
  ::std::string* PROTOBUF_NONNULL mutable_selector();
  ::std::string* PROTOBUF_NULLABLE release_selector();
  void set_allocated_selector(::std::string* PROTOBUF_NULLABLE value);

  private:
  const ::std::string& _internal_selector() const;
  PROTOBUF_ALWAYS_INLINE void _internal_set_selector(const ::std::string& value);
  ::std::string* PROTOBUF_NONNULL _internal_mutable_selector();

  public:
  // optional .url_pattern_index.proto.RuleSemantics semantics = 1;
  bool has_semantics()
      const;
  void clear_semantics() ;
  ::url_pattern_index::proto::RuleSemantics semantics() const;
  void set_semantics(::url_pattern_index::proto::RuleSemantics value);

  private:
  ::url_pattern_index::proto::RuleSemantics _internal_semantics() const;
  void _internal_set_semantics(::url_pattern_index::proto::RuleSemantics value);

  public:
  // @@protoc_insertion_point(class_scope:url_pattern_index.proto.StyleRule)
 private:
  class _Internal;
  using ParseTableT_ =
      ::google::protobuf::internal::TcParseTable<3, 5,
                          2, 0,
                          2>;
  static constexpr ParseTableT_ InternalGenerateParseTable_(
      const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data);
  friend class ::google::protobuf::internal::TcParser;
  #ifndef PROTOBUF_MESSAGE_GLOBALS
  static const ParseTableT_ _table_;
  #endif

  friend class ::google::protobuf::MessageLite;
  friend class ::google::protobuf::Arena;
  friend ::google::protobuf::internal::PrivateAccess;
  template <typename T>
  friend class ::google::protobuf::Arena::InternalHelper;
  using InternalArenaConstructable_ = void;
  using DestructorSkippable_ = void;
  struct Impl_ {
    inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility,
                                    ::google::protobuf::internal::ConstantInitialized) noexcept;
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
        const StyleRule& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::google::protobuf::RepeatedPtrField< ::url_pattern_index::proto::DomainListItem > domains_;
    ::google::protobuf::RepeatedPtrField<::std::string> classes_;
    ::google::protobuf::RepeatedPtrField<::std::string> ids_;
    ::google::protobuf::internal::ArenaStringPtr selector_;
    int semantics_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_rules_2eproto;
};
// -------------------------------------------------------------------

class  FilteringRules final : public ::google::protobuf::MessageLite
/* @@protoc_insertion_point(class_definition:url_pattern_index.proto.FilteringRules) */ {
 public:
  inline FilteringRules() : FilteringRules(nullptr) {}
  ~FilteringRules() PROTOBUF_FINAL;

#if defined(PROTOBUF_CUSTOM_VTABLE)
  void operator delete(FilteringRules* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
    SharedDtor(*msg);
    ::google::protobuf::internal::SizedDelete(msg, sizeof(FilteringRules));
  }
#endif

  template <typename = void>
  explicit constexpr FilteringRules(::google::protobuf::internal::ConstantInitialized,
                           const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
                               class_data);

  inline FilteringRules(const FilteringRules& from) : FilteringRules(nullptr, from) {}
  inline FilteringRules(FilteringRules&& from) noexcept : FilteringRules(nullptr, ::std::move(from)) {}
  inline FilteringRules& operator=(const FilteringRules& from) {
    CopyFrom(from);
    return *this;
  }
  inline FilteringRules& operator=(FilteringRules&& from) noexcept {
    if (this == &from) return *this;
    if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  inline const ::std::string& unknown_fields() const
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString);
  }
  inline ::std::string* PROTOBUF_NONNULL
  mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.mutable_unknown_fields<::std::string>();
  }

  static const FilteringRules& default_instance() {
    return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<FilteringRules>(&FilteringRules_globals_);
  }
  static constexpr int kIndexInFileMessages = 4;
  friend void swap(FilteringRules& a, FilteringRules& b) { a.Swap(&b); }
  PROTOBUF_NOINLINE void Swap(FilteringRules* PROTOBUF_NONNULL other) {
    if (other == this) return;
    if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
      InternalSwap(other);
    } else {
      ::google::protobuf::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(FilteringRules* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  FilteringRules* PROTOBUF_NONNULL
  New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return ::google::protobuf::MessageLite::DefaultConstruct<FilteringRules>(arena);
  }
  void CopyFrom(const FilteringRules& from);
  void MergeFrom(const FilteringRules& from) { FilteringRules::MergeImpl(*this, from); }

  private:
  static void MergeImpl(::google::protobuf::MessageLite& to_msg,
                        const ::google::protobuf::MessageLite& from_msg);

  public:
  bool IsInitialized() const {
    return true;
  }
  ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
  #if defined(PROTOBUF_CUSTOM_VTABLE)
  private:
  static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
  static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);

  public:
  ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
  ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
    return _InternalSerialize(*this, target, stream);
  }
  #else   // PROTOBUF_CUSTOM_VTABLE
  ::size_t ByteSizeLong() const final;
  ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
  #endif  // PROTOBUF_CUSTOM_VTABLE
  int GetCachedSize() const {
    return _impl_._cached_size_.Get();
  }

  private:
  void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static void SharedDtor(MessageLite& self);
  void InternalSwap(FilteringRules* PROTOBUF_NONNULL other);
 private:
  template <typename T>
  friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
  static ::absl::string_view FullMessageName() { return "url_pattern_index.proto.FilteringRules"; }

  explicit FilteringRules(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  FilteringRules(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const FilteringRules& from);
  FilteringRules(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, FilteringRules&& from) noexcept
      : FilteringRules(arena) {
    *this = ::std::move(from);
  }
  const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
  static void* PROTOBUF_NONNULL PlacementNew_(
      const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static constexpr auto InternalNewImpl_();

 public:
  static constexpr auto InternalGenerateClassData_(
      const MessageLite& prototype,
      const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr);

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------
  enum : int {
    kUrlRulesFieldNumber = 1,
    kStyleRulesFieldNumber = 2,
  };
  // repeated .url_pattern_index.proto.UrlRule url_rules = 1;
  int url_rules_size()
      const;
  private:
  int _internal_url_rules_size() const;

  public:
  void clear_url_rules() ;
  const ::url_pattern_index::proto::UrlRule& url_rules(int index) const;
  ::url_pattern_index::proto::UrlRule* PROTOBUF_NONNULL mutable_url_rules(int index);
  ::url_pattern_index::proto::UrlRule* PROTOBUF_NONNULL add_url_rules();
  const ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::UrlRule>&
  url_rules() const;
  ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::UrlRule>* PROTOBUF_NONNULL
  mutable_url_rules();

  private:
  const ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::UrlRule>& _internal_url_rules() const;
  ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::UrlRule>* PROTOBUF_NONNULL _internal_mutable_url_rules();

  public:
  // repeated .url_pattern_index.proto.StyleRule style_rules = 2;
  int style_rules_size()
      const;
  private:
  int _internal_style_rules_size() const;

  public:
  void clear_style_rules() ;
  const ::url_pattern_index::proto::StyleRule& style_rules(int index) const;
  ::url_pattern_index::proto::StyleRule* PROTOBUF_NONNULL mutable_style_rules(int index);
  ::url_pattern_index::proto::StyleRule* PROTOBUF_NONNULL add_style_rules();
  const ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::StyleRule>&
  style_rules() const;
  ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::StyleRule>* PROTOBUF_NONNULL
  mutable_style_rules();

  private:
  const ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::StyleRule>& _internal_style_rules() const;
  ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::StyleRule>* PROTOBUF_NONNULL _internal_mutable_style_rules();

  public:
  // @@protoc_insertion_point(class_scope:url_pattern_index.proto.FilteringRules)
 private:
  class _Internal;
  using ParseTableT_ =
      ::google::protobuf::internal::TcParseTable<1, 2,
                          2, 0,
                          2>;
  static constexpr ParseTableT_ InternalGenerateParseTable_(
      const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data);
  friend class ::google::protobuf::internal::TcParser;
  #ifndef PROTOBUF_MESSAGE_GLOBALS
  static const ParseTableT_ _table_;
  #endif

  friend class ::google::protobuf::MessageLite;
  friend class ::google::protobuf::Arena;
  friend ::google::protobuf::internal::PrivateAccess;
  template <typename T>
  friend class ::google::protobuf::Arena::InternalHelper;
  using InternalArenaConstructable_ = void;
  using DestructorSkippable_ = void;
  struct Impl_ {
    inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility,
                                    ::google::protobuf::internal::ConstantInitialized) noexcept;
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
        const FilteringRules& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::google::protobuf::RepeatedPtrField< ::url_pattern_index::proto::UrlRule > url_rules_;
    ::google::protobuf::RepeatedPtrField< ::url_pattern_index::proto::StyleRule > style_rules_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_rules_2eproto;
};

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




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


#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif  // __GNUC__
// -------------------------------------------------------------------

// DomainListItem

// optional string domain = 1;
inline bool DomainListItem::has_domain() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U);
  return value;
}
inline void DomainListItem::clear_domain() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.domain_.ClearToEmpty();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
inline const ::std::string& DomainListItem::domain() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:url_pattern_index.proto.DomainListItem.domain)
  return _internal_domain();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void DomainListItem::set_domain(Arg_&& arg, Args_... args) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  _impl_.domain_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:url_pattern_index.proto.DomainListItem.domain)
}
inline ::std::string* PROTOBUF_NONNULL DomainListItem::mutable_domain()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  ::std::string* _s = _internal_mutable_domain();
  // @@protoc_insertion_point(field_mutable:url_pattern_index.proto.DomainListItem.domain)
  return _s;
}
inline const ::std::string& DomainListItem::_internal_domain() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.domain_.Get();
}
inline void DomainListItem::_internal_set_domain(const ::std::string& value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.domain_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL DomainListItem::_internal_mutable_domain() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _impl_.domain_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE DomainListItem::release_domain() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:url_pattern_index.proto.DomainListItem.domain)
  if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) {
    return nullptr;
  }
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
  auto* released = _impl_.domain_.Release();
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
    _impl_.domain_.Set("", GetArena());
  }
  return released;
}
inline void DomainListItem::set_allocated_domain(::std::string* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (value != nullptr) {
    SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
  }
  _impl_.domain_.SetAllocated(value, GetArena());
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.domain_.IsDefault()) {
    _impl_.domain_.Set("", GetArena());
  }
  // @@protoc_insertion_point(field_set_allocated:url_pattern_index.proto.DomainListItem.domain)
}

// optional bool exclude = 2;
inline bool DomainListItem::has_exclude() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
  return value;
}
inline void DomainListItem::clear_exclude() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.exclude_ = false;
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
inline bool DomainListItem::exclude() const {
  // @@protoc_insertion_point(field_get:url_pattern_index.proto.DomainListItem.exclude)
  return _internal_exclude();
}
inline void DomainListItem::set_exclude(bool value) {
  _internal_set_exclude(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  // @@protoc_insertion_point(field_set:url_pattern_index.proto.DomainListItem.exclude)
}
inline bool DomainListItem::_internal_exclude() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.exclude_;
}
inline void DomainListItem::_internal_set_exclude(bool value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.exclude_ = value;
}

// -------------------------------------------------------------------

// UrlRule

// optional .url_pattern_index.proto.RuleSemantics semantics = 1;
inline bool UrlRule::has_semantics() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U);
  return value;
}
inline void UrlRule::clear_semantics() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.semantics_ = 0;
  ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
}
inline ::url_pattern_index::proto::RuleSemantics UrlRule::semantics() const {
  // @@protoc_insertion_point(field_get:url_pattern_index.proto.UrlRule.semantics)
  return _internal_semantics();
}
inline void UrlRule::set_semantics(::url_pattern_index::proto::RuleSemantics value) {
  _internal_set_semantics(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000008U);
  // @@protoc_insertion_point(field_set:url_pattern_index.proto.UrlRule.semantics)
}
inline ::url_pattern_index::proto::RuleSemantics UrlRule::_internal_semantics() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return static_cast<::url_pattern_index::proto::RuleSemantics>(_impl_.semantics_);
}
inline void UrlRule::_internal_set_semantics(::url_pattern_index::proto::RuleSemantics value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);

                                          assert(::google::protobuf::internal::ValidateEnum(
                                              value, ::url_pattern_index::proto::RuleSemantics_internal_data_));
                                          _impl_.semantics_ = value;
}

// optional .url_pattern_index.proto.SourceType source_type = 2;
inline bool UrlRule::has_source_type() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U);
  return value;
}
inline void UrlRule::clear_source_type() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.source_type_ = 0;
  ClearHasBit(_impl_._has_bits_[0], 0x00000010U);
}
inline ::url_pattern_index::proto::SourceType UrlRule::source_type() const {
  // @@protoc_insertion_point(field_get:url_pattern_index.proto.UrlRule.source_type)
  return _internal_source_type();
}
inline void UrlRule::set_source_type(::url_pattern_index::proto::SourceType value) {
  _internal_set_source_type(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000010U);
  // @@protoc_insertion_point(field_set:url_pattern_index.proto.UrlRule.source_type)
}
inline ::url_pattern_index::proto::SourceType UrlRule::_internal_source_type() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return static_cast<::url_pattern_index::proto::SourceType>(_impl_.source_type_);
}
inline void UrlRule::_internal_set_source_type(::url_pattern_index::proto::SourceType value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);

                                          assert(::google::protobuf::internal::ValidateEnum(
                                              value, ::url_pattern_index::proto::SourceType_internal_data_));
                                          _impl_.source_type_ = value;
}

// optional int32 element_types = 3;
inline bool UrlRule::has_element_types() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U);
  return value;
}
inline void UrlRule::clear_element_types() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.element_types_ = 0;
  ClearHasBit(_impl_._has_bits_[0], 0x00000020U);
}
inline ::int32_t UrlRule::element_types() const {
  // @@protoc_insertion_point(field_get:url_pattern_index.proto.UrlRule.element_types)
  return _internal_element_types();
}
inline void UrlRule::set_element_types(::int32_t value) {
  _internal_set_element_types(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000020U);
  // @@protoc_insertion_point(field_set:url_pattern_index.proto.UrlRule.element_types)
}
inline ::int32_t UrlRule::_internal_element_types() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.element_types_;
}
inline void UrlRule::_internal_set_element_types(::int32_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.element_types_ = value;
}

// optional int32 activation_types = 4;
inline bool UrlRule::has_activation_types() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U);
  return value;
}
inline void UrlRule::clear_activation_types() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.activation_types_ = 0;
  ClearHasBit(_impl_._has_bits_[0], 0x00000040U);
}
inline ::int32_t UrlRule::activation_types() const {
  // @@protoc_insertion_point(field_get:url_pattern_index.proto.UrlRule.activation_types)
  return _internal_activation_types();
}
inline void UrlRule::set_activation_types(::int32_t value) {
  _internal_set_activation_types(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000040U);
  // @@protoc_insertion_point(field_set:url_pattern_index.proto.UrlRule.activation_types)
}
inline ::int32_t UrlRule::_internal_activation_types() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.activation_types_;
}
inline void UrlRule::_internal_set_activation_types(::int32_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.activation_types_ = value;
}

// repeated .url_pattern_index.proto.DomainListItem initiator_domains = 5;
inline int UrlRule::_internal_initiator_domains_size() const {
  return _internal_initiator_domains().size();
}
inline int UrlRule::initiator_domains_size() const {
  return _internal_initiator_domains_size();
}
inline void UrlRule::clear_initiator_domains() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.initiator_domains_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
inline const ::url_pattern_index::proto::DomainListItem& UrlRule::initiator_domains(int index) const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:url_pattern_index.proto.UrlRule.initiator_domains)
  return _internal_initiator_domains().Get(index);
}
inline ::url_pattern_index::proto::DomainListItem* PROTOBUF_NONNULL UrlRule::mutable_initiator_domains(int index)
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_mutable:url_pattern_index.proto.UrlRule.initiator_domains)
  return _internal_mutable_initiator_domains()->Mutable(index);
}
inline ::url_pattern_index::proto::DomainListItem* PROTOBUF_NONNULL UrlRule::add_initiator_domains()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::url_pattern_index::proto::DomainListItem* _add =
      _internal_mutable_initiator_domains()->InternalAddWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), GetArena());
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  // @@protoc_insertion_point(field_add:url_pattern_index.proto.UrlRule.initiator_domains)
  return _add;
}
inline const ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::DomainListItem>& UrlRule::initiator_domains() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_list:url_pattern_index.proto.UrlRule.initiator_domains)
  return _internal_initiator_domains();
}
inline ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::DomainListItem>* PROTOBUF_NONNULL
UrlRule::mutable_initiator_domains() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  // @@protoc_insertion_point(field_mutable_list:url_pattern_index.proto.UrlRule.initiator_domains)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _internal_mutable_initiator_domains();
}
inline const ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::DomainListItem>&
UrlRule::_internal_initiator_domains() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.initiator_domains_;
}
inline ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::DomainListItem>* PROTOBUF_NONNULL
UrlRule::_internal_mutable_initiator_domains() {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return &_impl_.initiator_domains_;
}

// optional .url_pattern_index.proto.UrlPatternType url_pattern_type = 6;
inline bool UrlRule::has_url_pattern_type() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U);
  return value;
}
inline void UrlRule::clear_url_pattern_type() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.url_pattern_type_ = 0;
  ClearHasBit(_impl_._has_bits_[0], 0x00000080U);
}
inline ::url_pattern_index::proto::UrlPatternType UrlRule::url_pattern_type() const {
  // @@protoc_insertion_point(field_get:url_pattern_index.proto.UrlRule.url_pattern_type)
  return _internal_url_pattern_type();
}
inline void UrlRule::set_url_pattern_type(::url_pattern_index::proto::UrlPatternType value) {
  _internal_set_url_pattern_type(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000080U);
  // @@protoc_insertion_point(field_set:url_pattern_index.proto.UrlRule.url_pattern_type)
}
inline ::url_pattern_index::proto::UrlPatternType UrlRule::_internal_url_pattern_type() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return static_cast<::url_pattern_index::proto::UrlPatternType>(_impl_.url_pattern_type_);
}
inline void UrlRule::_internal_set_url_pattern_type(::url_pattern_index::proto::UrlPatternType value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);

                                          assert(::google::protobuf::internal::ValidateEnum(
                                              value, ::url_pattern_index::proto::UrlPatternType_internal_data_));
                                          _impl_.url_pattern_type_ = value;
}

// optional .url_pattern_index.proto.AnchorType anchor_left = 7;
inline bool UrlRule::has_anchor_left() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000100U);
  return value;
}
inline void UrlRule::clear_anchor_left() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.anchor_left_ = 0;
  ClearHasBit(_impl_._has_bits_[0], 0x00000100U);
}
inline ::url_pattern_index::proto::AnchorType UrlRule::anchor_left() const {
  // @@protoc_insertion_point(field_get:url_pattern_index.proto.UrlRule.anchor_left)
  return _internal_anchor_left();
}
inline void UrlRule::set_anchor_left(::url_pattern_index::proto::AnchorType value) {
  _internal_set_anchor_left(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000100U);
  // @@protoc_insertion_point(field_set:url_pattern_index.proto.UrlRule.anchor_left)
}
inline ::url_pattern_index::proto::AnchorType UrlRule::_internal_anchor_left() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return static_cast<::url_pattern_index::proto::AnchorType>(_impl_.anchor_left_);
}
inline void UrlRule::_internal_set_anchor_left(::url_pattern_index::proto::AnchorType value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);

                                          assert(::google::protobuf::internal::ValidateEnum(
                                              value, ::url_pattern_index::proto::AnchorType_internal_data_));
                                          _impl_.anchor_left_ = value;
}

// optional .url_pattern_index.proto.AnchorType anchor_right = 8;
inline bool UrlRule::has_anchor_right() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000200U);
  return value;
}
inline void UrlRule::clear_anchor_right() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.anchor_right_ = 0;
  ClearHasBit(_impl_._has_bits_[0], 0x00000200U);
}
inline ::url_pattern_index::proto::AnchorType UrlRule::anchor_right() const {
  // @@protoc_insertion_point(field_get:url_pattern_index.proto.UrlRule.anchor_right)
  return _internal_anchor_right();
}
inline void UrlRule::set_anchor_right(::url_pattern_index::proto::AnchorType value) {
  _internal_set_anchor_right(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000200U);
  // @@protoc_insertion_point(field_set:url_pattern_index.proto.UrlRule.anchor_right)
}
inline ::url_pattern_index::proto::AnchorType UrlRule::_internal_anchor_right() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return static_cast<::url_pattern_index::proto::AnchorType>(_impl_.anchor_right_);
}
inline void UrlRule::_internal_set_anchor_right(::url_pattern_index::proto::AnchorType value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);

                                          assert(::google::protobuf::internal::ValidateEnum(
                                              value, ::url_pattern_index::proto::AnchorType_internal_data_));
                                          _impl_.anchor_right_ = value;
}

// optional bool match_case = 9;
inline bool UrlRule::has_match_case() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000400U);
  return value;
}
inline void UrlRule::clear_match_case() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.match_case_ = false;
  ClearHasBit(_impl_._has_bits_[0], 0x00000400U);
}
inline bool UrlRule::match_case() const {
  // @@protoc_insertion_point(field_get:url_pattern_index.proto.UrlRule.match_case)
  return _internal_match_case();
}
inline void UrlRule::set_match_case(bool value) {
  _internal_set_match_case(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000400U);
  // @@protoc_insertion_point(field_set:url_pattern_index.proto.UrlRule.match_case)
}
inline bool UrlRule::_internal_match_case() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.match_case_;
}
inline void UrlRule::_internal_set_match_case(bool value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.match_case_ = value;
}

// optional string url_pattern = 10;
inline bool UrlRule::has_url_pattern() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U);
  return value;
}
inline void UrlRule::clear_url_pattern() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.url_pattern_.ClearToEmpty();
  ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
}
inline const ::std::string& UrlRule::url_pattern() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:url_pattern_index.proto.UrlRule.url_pattern)
  return _internal_url_pattern();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void UrlRule::set_url_pattern(Arg_&& arg, Args_... args) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  SetHasBit(_impl_._has_bits_[0], 0x00000004U);
  _impl_.url_pattern_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:url_pattern_index.proto.UrlRule.url_pattern)
}
inline ::std::string* PROTOBUF_NONNULL UrlRule::mutable_url_pattern()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000004U);
  ::std::string* _s = _internal_mutable_url_pattern();
  // @@protoc_insertion_point(field_mutable:url_pattern_index.proto.UrlRule.url_pattern)
  return _s;
}
inline const ::std::string& UrlRule::_internal_url_pattern() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.url_pattern_.Get();
}
inline void UrlRule::_internal_set_url_pattern(const ::std::string& value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.url_pattern_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL UrlRule::_internal_mutable_url_pattern() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _impl_.url_pattern_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE UrlRule::release_url_pattern() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:url_pattern_index.proto.UrlRule.url_pattern)
  if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) {
    return nullptr;
  }
  ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
  auto* released = _impl_.url_pattern_.Release();
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
    _impl_.url_pattern_.Set("", GetArena());
  }
  return released;
}
inline void UrlRule::set_allocated_url_pattern(::std::string* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (value != nullptr) {
    SetHasBit(_impl_._has_bits_[0], 0x00000004U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
  }
  _impl_.url_pattern_.SetAllocated(value, GetArena());
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.url_pattern_.IsDefault()) {
    _impl_.url_pattern_.Set("", GetArena());
  }
  // @@protoc_insertion_point(field_set_allocated:url_pattern_index.proto.UrlRule.url_pattern)
}

// repeated .url_pattern_index.proto.DomainListItem request_domains = 11;
inline int UrlRule::_internal_request_domains_size() const {
  return _internal_request_domains().size();
}
inline int UrlRule::request_domains_size() const {
  return _internal_request_domains_size();
}
inline void UrlRule::clear_request_domains() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.request_domains_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
inline const ::url_pattern_index::proto::DomainListItem& UrlRule::request_domains(int index) const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:url_pattern_index.proto.UrlRule.request_domains)
  return _internal_request_domains().Get(index);
}
inline ::url_pattern_index::proto::DomainListItem* PROTOBUF_NONNULL UrlRule::mutable_request_domains(int index)
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_mutable:url_pattern_index.proto.UrlRule.request_domains)
  return _internal_mutable_request_domains()->Mutable(index);
}
inline ::url_pattern_index::proto::DomainListItem* PROTOBUF_NONNULL UrlRule::add_request_domains()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::url_pattern_index::proto::DomainListItem* _add =
      _internal_mutable_request_domains()->InternalAddWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), GetArena());
  SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  // @@protoc_insertion_point(field_add:url_pattern_index.proto.UrlRule.request_domains)
  return _add;
}
inline const ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::DomainListItem>& UrlRule::request_domains() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_list:url_pattern_index.proto.UrlRule.request_domains)
  return _internal_request_domains();
}
inline ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::DomainListItem>* PROTOBUF_NONNULL
UrlRule::mutable_request_domains() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  // @@protoc_insertion_point(field_mutable_list:url_pattern_index.proto.UrlRule.request_domains)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _internal_mutable_request_domains();
}
inline const ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::DomainListItem>&
UrlRule::_internal_request_domains() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.request_domains_;
}
inline ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::DomainListItem>* PROTOBUF_NONNULL
UrlRule::_internal_mutable_request_domains() {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return &_impl_.request_domains_;
}

// -------------------------------------------------------------------

// StyleRule

// optional .url_pattern_index.proto.RuleSemantics semantics = 1;
inline bool StyleRule::has_semantics() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U);
  return value;
}
inline void StyleRule::clear_semantics() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.semantics_ = 0;
  ClearHasBit(_impl_._has_bits_[0], 0x00000010U);
}
inline ::url_pattern_index::proto::RuleSemantics StyleRule::semantics() const {
  // @@protoc_insertion_point(field_get:url_pattern_index.proto.StyleRule.semantics)
  return _internal_semantics();
}
inline void StyleRule::set_semantics(::url_pattern_index::proto::RuleSemantics value) {
  _internal_set_semantics(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000010U);
  // @@protoc_insertion_point(field_set:url_pattern_index.proto.StyleRule.semantics)
}
inline ::url_pattern_index::proto::RuleSemantics StyleRule::_internal_semantics() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return static_cast<::url_pattern_index::proto::RuleSemantics>(_impl_.semantics_);
}
inline void StyleRule::_internal_set_semantics(::url_pattern_index::proto::RuleSemantics value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);

                                          assert(::google::protobuf::internal::ValidateEnum(
                                              value, ::url_pattern_index::proto::RuleSemantics_internal_data_));
                                          _impl_.semantics_ = value;
}

// repeated .url_pattern_index.proto.DomainListItem domains = 2;
inline int StyleRule::_internal_domains_size() const {
  return _internal_domains().size();
}
inline int StyleRule::domains_size() const {
  return _internal_domains_size();
}
inline void StyleRule::clear_domains() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.domains_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
inline const ::url_pattern_index::proto::DomainListItem& StyleRule::domains(int index) const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:url_pattern_index.proto.StyleRule.domains)
  return _internal_domains().Get(index);
}
inline ::url_pattern_index::proto::DomainListItem* PROTOBUF_NONNULL StyleRule::mutable_domains(int index)
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_mutable:url_pattern_index.proto.StyleRule.domains)
  return _internal_mutable_domains()->Mutable(index);
}
inline ::url_pattern_index::proto::DomainListItem* PROTOBUF_NONNULL StyleRule::add_domains()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::url_pattern_index::proto::DomainListItem* _add =
      _internal_mutable_domains()->InternalAddWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), GetArena());
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  // @@protoc_insertion_point(field_add:url_pattern_index.proto.StyleRule.domains)
  return _add;
}
inline const ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::DomainListItem>& StyleRule::domains() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_list:url_pattern_index.proto.StyleRule.domains)
  return _internal_domains();
}
inline ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::DomainListItem>* PROTOBUF_NONNULL
StyleRule::mutable_domains() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  // @@protoc_insertion_point(field_mutable_list:url_pattern_index.proto.StyleRule.domains)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _internal_mutable_domains();
}
inline const ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::DomainListItem>&
StyleRule::_internal_domains() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.domains_;
}
inline ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::DomainListItem>* PROTOBUF_NONNULL
StyleRule::_internal_mutable_domains() {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return &_impl_.domains_;
}

// optional string selector = 3;
inline bool StyleRule::has_selector() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U);
  return value;
}
inline void StyleRule::clear_selector() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.selector_.ClearToEmpty();
  ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
}
inline const ::std::string& StyleRule::selector() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:url_pattern_index.proto.StyleRule.selector)
  return _internal_selector();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void StyleRule::set_selector(Arg_&& arg, Args_... args) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  SetHasBit(_impl_._has_bits_[0], 0x00000008U);
  _impl_.selector_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:url_pattern_index.proto.StyleRule.selector)
}
inline ::std::string* PROTOBUF_NONNULL StyleRule::mutable_selector()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000008U);
  ::std::string* _s = _internal_mutable_selector();
  // @@protoc_insertion_point(field_mutable:url_pattern_index.proto.StyleRule.selector)
  return _s;
}
inline const ::std::string& StyleRule::_internal_selector() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.selector_.Get();
}
inline void StyleRule::_internal_set_selector(const ::std::string& value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.selector_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL StyleRule::_internal_mutable_selector() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _impl_.selector_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE StyleRule::release_selector() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:url_pattern_index.proto.StyleRule.selector)
  if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) {
    return nullptr;
  }
  ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
  auto* released = _impl_.selector_.Release();
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
    _impl_.selector_.Set("", GetArena());
  }
  return released;
}
inline void StyleRule::set_allocated_selector(::std::string* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (value != nullptr) {
    SetHasBit(_impl_._has_bits_[0], 0x00000008U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
  }
  _impl_.selector_.SetAllocated(value, GetArena());
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.selector_.IsDefault()) {
    _impl_.selector_.Set("", GetArena());
  }
  // @@protoc_insertion_point(field_set_allocated:url_pattern_index.proto.StyleRule.selector)
}

// repeated string classes = 4;
inline int StyleRule::_internal_classes_size() const {
  return _internal_classes().size();
}
inline int StyleRule::classes_size() const {
  return _internal_classes_size();
}
inline void StyleRule::clear_classes() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.classes_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
inline ::std::string* PROTOBUF_NONNULL StyleRule::add_classes()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::std::string* _s =
      _internal_mutable_classes()->InternalAddWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), GetArena());
  SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  // @@protoc_insertion_point(field_add_mutable:url_pattern_index.proto.StyleRule.classes)
  return _s;
}
inline const ::std::string& StyleRule::classes(int index) const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:url_pattern_index.proto.StyleRule.classes)
  return _internal_classes().Get(index);
}
inline ::std::string* PROTOBUF_NONNULL StyleRule::mutable_classes(int index)
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_mutable:url_pattern_index.proto.StyleRule.classes)
  return _internal_mutable_classes()->Mutable(index);
}
template <typename Arg_, typename... Args_>
inline void StyleRule::set_classes(int index, Arg_&& value, Args_... args) {
  ::google::protobuf::internal::AssignToString(
      *_internal_mutable_classes()->Mutable(index),
      ::std::forward<Arg_>(value), args... );
  // @@protoc_insertion_point(field_set:url_pattern_index.proto.StyleRule.classes)
}
template <typename Arg_, typename... Args_>
inline void StyleRule::add_classes(Arg_&& value, Args_... args) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::google::protobuf::internal::AddToRepeatedPtrField(
      ::google::protobuf::MessageLite::internal_visibility(), GetArena(),
      *_internal_mutable_classes(), ::std::forward<Arg_>(value),
      args... );
  SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  // @@protoc_insertion_point(field_add:url_pattern_index.proto.StyleRule.classes)
}
inline const ::google::protobuf::RepeatedPtrField<::std::string>& StyleRule::classes()
    const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_list:url_pattern_index.proto.StyleRule.classes)
  return _internal_classes();
}
inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL
StyleRule::mutable_classes() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  // @@protoc_insertion_point(field_mutable_list:url_pattern_index.proto.StyleRule.classes)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _internal_mutable_classes();
}
inline const ::google::protobuf::RepeatedPtrField<::std::string>&
StyleRule::_internal_classes() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.classes_;
}
inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL
StyleRule::_internal_mutable_classes() {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return &_impl_.classes_;
}

// repeated string ids = 5;
inline int StyleRule::_internal_ids_size() const {
  return _internal_ids().size();
}
inline int StyleRule::ids_size() const {
  return _internal_ids_size();
}
inline void StyleRule::clear_ids() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.ids_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
}
inline ::std::string* PROTOBUF_NONNULL StyleRule::add_ids()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::std::string* _s =
      _internal_mutable_ids()->InternalAddWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), GetArena());
  SetHasBit(_impl_._has_bits_[0], 0x00000004U);
  // @@protoc_insertion_point(field_add_mutable:url_pattern_index.proto.StyleRule.ids)
  return _s;
}
inline const ::std::string& StyleRule::ids(int index) const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:url_pattern_index.proto.StyleRule.ids)
  return _internal_ids().Get(index);
}
inline ::std::string* PROTOBUF_NONNULL StyleRule::mutable_ids(int index)
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_mutable:url_pattern_index.proto.StyleRule.ids)
  return _internal_mutable_ids()->Mutable(index);
}
template <typename Arg_, typename... Args_>
inline void StyleRule::set_ids(int index, Arg_&& value, Args_... args) {
  ::google::protobuf::internal::AssignToString(
      *_internal_mutable_ids()->Mutable(index),
      ::std::forward<Arg_>(value), args... );
  // @@protoc_insertion_point(field_set:url_pattern_index.proto.StyleRule.ids)
}
template <typename Arg_, typename... Args_>
inline void StyleRule::add_ids(Arg_&& value, Args_... args) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::google::protobuf::internal::AddToRepeatedPtrField(
      ::google::protobuf::MessageLite::internal_visibility(), GetArena(),
      *_internal_mutable_ids(), ::std::forward<Arg_>(value),
      args... );
  SetHasBit(_impl_._has_bits_[0], 0x00000004U);
  // @@protoc_insertion_point(field_add:url_pattern_index.proto.StyleRule.ids)
}
inline const ::google::protobuf::RepeatedPtrField<::std::string>& StyleRule::ids()
    const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_list:url_pattern_index.proto.StyleRule.ids)
  return _internal_ids();
}
inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL
StyleRule::mutable_ids() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000004U);
  // @@protoc_insertion_point(field_mutable_list:url_pattern_index.proto.StyleRule.ids)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _internal_mutable_ids();
}
inline const ::google::protobuf::RepeatedPtrField<::std::string>&
StyleRule::_internal_ids() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.ids_;
}
inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL
StyleRule::_internal_mutable_ids() {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return &_impl_.ids_;
}

// -------------------------------------------------------------------

// Comment

// optional string text = 1;
inline bool Comment::has_text() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U);
  return value;
}
inline void Comment::clear_text() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.text_.ClearToEmpty();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
inline const ::std::string& Comment::text() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:url_pattern_index.proto.Comment.text)
  return _internal_text();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void Comment::set_text(Arg_&& arg, Args_... args) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  _impl_.text_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:url_pattern_index.proto.Comment.text)
}
inline ::std::string* PROTOBUF_NONNULL Comment::mutable_text()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  ::std::string* _s = _internal_mutable_text();
  // @@protoc_insertion_point(field_mutable:url_pattern_index.proto.Comment.text)
  return _s;
}
inline const ::std::string& Comment::_internal_text() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.text_.Get();
}
inline void Comment::_internal_set_text(const ::std::string& value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.text_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL Comment::_internal_mutable_text() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _impl_.text_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE Comment::release_text() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:url_pattern_index.proto.Comment.text)
  if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) {
    return nullptr;
  }
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
  auto* released = _impl_.text_.Release();
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
    _impl_.text_.Set("", GetArena());
  }
  return released;
}
inline void Comment::set_allocated_text(::std::string* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (value != nullptr) {
    SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
  }
  _impl_.text_.SetAllocated(value, GetArena());
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.text_.IsDefault()) {
    _impl_.text_.Set("", GetArena());
  }
  // @@protoc_insertion_point(field_set_allocated:url_pattern_index.proto.Comment.text)
}

// optional string key = 2;
inline bool Comment::has_key() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
  return value;
}
inline void Comment::clear_key() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.key_.ClearToEmpty();
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
inline const ::std::string& Comment::key() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:url_pattern_index.proto.Comment.key)
  return _internal_key();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void Comment::set_key(Arg_&& arg, Args_... args) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  _impl_.key_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:url_pattern_index.proto.Comment.key)
}
inline ::std::string* PROTOBUF_NONNULL Comment::mutable_key()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  ::std::string* _s = _internal_mutable_key();
  // @@protoc_insertion_point(field_mutable:url_pattern_index.proto.Comment.key)
  return _s;
}
inline const ::std::string& Comment::_internal_key() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.key_.Get();
}
inline void Comment::_internal_set_key(const ::std::string& value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.key_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL Comment::_internal_mutable_key() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _impl_.key_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE Comment::release_key() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:url_pattern_index.proto.Comment.key)
  if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) {
    return nullptr;
  }
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  auto* released = _impl_.key_.Release();
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
    _impl_.key_.Set("", GetArena());
  }
  return released;
}
inline void Comment::set_allocated_key(::std::string* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (value != nullptr) {
    SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  }
  _impl_.key_.SetAllocated(value, GetArena());
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.key_.IsDefault()) {
    _impl_.key_.Set("", GetArena());
  }
  // @@protoc_insertion_point(field_set_allocated:url_pattern_index.proto.Comment.key)
}

// optional string value = 3;
inline bool Comment::has_value() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U);
  return value;
}
inline void Comment::clear_value() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.value_.ClearToEmpty();
  ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
}
inline const ::std::string& Comment::value() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:url_pattern_index.proto.Comment.value)
  return _internal_value();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void Comment::set_value(Arg_&& arg, Args_... args) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  SetHasBit(_impl_._has_bits_[0], 0x00000004U);
  _impl_.value_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:url_pattern_index.proto.Comment.value)
}
inline ::std::string* PROTOBUF_NONNULL Comment::mutable_value()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000004U);
  ::std::string* _s = _internal_mutable_value();
  // @@protoc_insertion_point(field_mutable:url_pattern_index.proto.Comment.value)
  return _s;
}
inline const ::std::string& Comment::_internal_value() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.value_.Get();
}
inline void Comment::_internal_set_value(const ::std::string& value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.value_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL Comment::_internal_mutable_value() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _impl_.value_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE Comment::release_value() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:url_pattern_index.proto.Comment.value)
  if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) {
    return nullptr;
  }
  ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
  auto* released = _impl_.value_.Release();
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
    _impl_.value_.Set("", GetArena());
  }
  return released;
}
inline void Comment::set_allocated_value(::std::string* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (value != nullptr) {
    SetHasBit(_impl_._has_bits_[0], 0x00000004U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
  }
  _impl_.value_.SetAllocated(value, GetArena());
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.value_.IsDefault()) {
    _impl_.value_.Set("", GetArena());
  }
  // @@protoc_insertion_point(field_set_allocated:url_pattern_index.proto.Comment.value)
}

// -------------------------------------------------------------------

// FilteringRules

// repeated .url_pattern_index.proto.UrlRule url_rules = 1;
inline int FilteringRules::_internal_url_rules_size() const {
  return _internal_url_rules().size();
}
inline int FilteringRules::url_rules_size() const {
  return _internal_url_rules_size();
}
inline void FilteringRules::clear_url_rules() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.url_rules_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
inline const ::url_pattern_index::proto::UrlRule& FilteringRules::url_rules(int index) const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:url_pattern_index.proto.FilteringRules.url_rules)
  return _internal_url_rules().Get(index);
}
inline ::url_pattern_index::proto::UrlRule* PROTOBUF_NONNULL FilteringRules::mutable_url_rules(int index)
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_mutable:url_pattern_index.proto.FilteringRules.url_rules)
  return _internal_mutable_url_rules()->Mutable(index);
}
inline ::url_pattern_index::proto::UrlRule* PROTOBUF_NONNULL FilteringRules::add_url_rules()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::url_pattern_index::proto::UrlRule* _add =
      _internal_mutable_url_rules()->InternalAddWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), GetArena());
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  // @@protoc_insertion_point(field_add:url_pattern_index.proto.FilteringRules.url_rules)
  return _add;
}
inline const ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::UrlRule>& FilteringRules::url_rules() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_list:url_pattern_index.proto.FilteringRules.url_rules)
  return _internal_url_rules();
}
inline ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::UrlRule>* PROTOBUF_NONNULL
FilteringRules::mutable_url_rules() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  // @@protoc_insertion_point(field_mutable_list:url_pattern_index.proto.FilteringRules.url_rules)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _internal_mutable_url_rules();
}
inline const ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::UrlRule>&
FilteringRules::_internal_url_rules() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.url_rules_;
}
inline ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::UrlRule>* PROTOBUF_NONNULL
FilteringRules::_internal_mutable_url_rules() {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return &_impl_.url_rules_;
}

// repeated .url_pattern_index.proto.StyleRule style_rules = 2;
inline int FilteringRules::_internal_style_rules_size() const {
  return _internal_style_rules().size();
}
inline int FilteringRules::style_rules_size() const {
  return _internal_style_rules_size();
}
inline void FilteringRules::clear_style_rules() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.style_rules_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
inline const ::url_pattern_index::proto::StyleRule& FilteringRules::style_rules(int index) const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:url_pattern_index.proto.FilteringRules.style_rules)
  return _internal_style_rules().Get(index);
}
inline ::url_pattern_index::proto::StyleRule* PROTOBUF_NONNULL FilteringRules::mutable_style_rules(int index)
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_mutable:url_pattern_index.proto.FilteringRules.style_rules)
  return _internal_mutable_style_rules()->Mutable(index);
}
inline ::url_pattern_index::proto::StyleRule* PROTOBUF_NONNULL FilteringRules::add_style_rules()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::url_pattern_index::proto::StyleRule* _add =
      _internal_mutable_style_rules()->InternalAddWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), GetArena());
  SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  // @@protoc_insertion_point(field_add:url_pattern_index.proto.FilteringRules.style_rules)
  return _add;
}
inline const ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::StyleRule>& FilteringRules::style_rules() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_list:url_pattern_index.proto.FilteringRules.style_rules)
  return _internal_style_rules();
}
inline ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::StyleRule>* PROTOBUF_NONNULL
FilteringRules::mutable_style_rules() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  // @@protoc_insertion_point(field_mutable_list:url_pattern_index.proto.FilteringRules.style_rules)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _internal_mutable_style_rules();
}
inline const ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::StyleRule>&
FilteringRules::_internal_style_rules() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.style_rules_;
}
inline ::google::protobuf::RepeatedPtrField<::url_pattern_index::proto::StyleRule>* PROTOBUF_NONNULL
FilteringRules::_internal_mutable_style_rules() {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return &_impl_.style_rules_;
}

#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif  // __GNUC__

// @@protoc_insertion_point(namespace_scope)
}  // namespace proto
}  // namespace url_pattern_index


namespace google {
namespace protobuf {

template <>
struct is_proto_enum<::url_pattern_index::proto::RuleType> : std::true_type {};
template <>
struct internal::LiteEnumFuncs<::url_pattern_index::proto::RuleType> {
  static constexpr bool kIsDefined = true;
  static constexpr auto kParseFunc = ::url_pattern_index::proto::RuleType_Parse;
  static constexpr auto kNameFunc = ::url_pattern_index::proto::RuleType_Name<int>;
};
template <>
struct is_proto_enum<::url_pattern_index::proto::UrlPatternType> : std::true_type {};
template <>
struct internal::LiteEnumFuncs<::url_pattern_index::proto::UrlPatternType> {
  static constexpr bool kIsDefined = true;
  static constexpr auto kParseFunc = ::url_pattern_index::proto::UrlPatternType_Parse;
  static constexpr auto kNameFunc = ::url_pattern_index::proto::UrlPatternType_Name<int>;
};
template <>
struct is_proto_enum<::url_pattern_index::proto::AnchorType> : std::true_type {};
template <>
struct internal::LiteEnumFuncs<::url_pattern_index::proto::AnchorType> {
  static constexpr bool kIsDefined = true;
  static constexpr auto kParseFunc = ::url_pattern_index::proto::AnchorType_Parse;
  static constexpr auto kNameFunc = ::url_pattern_index::proto::AnchorType_Name<int>;
};
template <>
struct is_proto_enum<::url_pattern_index::proto::ElementType> : std::true_type {};
template <>
struct internal::LiteEnumFuncs<::url_pattern_index::proto::ElementType> {
  static constexpr bool kIsDefined = true;
  static constexpr auto kParseFunc = ::url_pattern_index::proto::ElementType_Parse;
  static constexpr auto kNameFunc = ::url_pattern_index::proto::ElementType_Name<int>;
};
template <>
struct is_proto_enum<::url_pattern_index::proto::ActivationType> : std::true_type {};
template <>
struct internal::LiteEnumFuncs<::url_pattern_index::proto::ActivationType> {
  static constexpr bool kIsDefined = true;
  static constexpr auto kParseFunc = ::url_pattern_index::proto::ActivationType_Parse;
  static constexpr auto kNameFunc = ::url_pattern_index::proto::ActivationType_Name<int>;
};
template <>
struct is_proto_enum<::url_pattern_index::proto::RuleSemantics> : std::true_type {};
template <>
struct internal::LiteEnumFuncs<::url_pattern_index::proto::RuleSemantics> {
  static constexpr bool kIsDefined = true;
  static constexpr auto kParseFunc = ::url_pattern_index::proto::RuleSemantics_Parse;
  static constexpr auto kNameFunc = ::url_pattern_index::proto::RuleSemantics_Name<int>;
};
template <>
struct is_proto_enum<::url_pattern_index::proto::SourceType> : std::true_type {};
template <>
struct internal::LiteEnumFuncs<::url_pattern_index::proto::SourceType> {
  static constexpr bool kIsDefined = true;
  static constexpr auto kParseFunc = ::url_pattern_index::proto::SourceType_Parse;
  static constexpr auto kNameFunc = ::url_pattern_index::proto::SourceType_Name<int>;
};

}  // namespace protobuf
}  // namespace google

// @@protoc_insertion_point(global_scope)

#include "google/protobuf/port_undef.inc"
// clang-format on

#endif  // rules_2eproto_2epb_2eh
