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

#ifndef components_2foptimization_5fguide_2fproto_2ffieldwise_5fparser_5fconfig_2eproto_2epb_2eh
#define components_2foptimization_5fguide_2fproto_2ffieldwise_5fparser_5fconfig_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/map.h"  // IWYU pragma: export
#include "google/protobuf/map_type_handler.h"  // IWYU pragma: export
#include "google/protobuf/map_field_lite.h"
#include "components/optimization_guide/proto/descriptors.pb.h"
// @@protoc_insertion_point(includes)

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

#define PROTOBUF_INTERNAL_EXPORT_components_2foptimization_5fguide_2fproto_2ffieldwise_5fparser_5fconfig_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_components_2foptimization_5fguide_2fproto_2ffieldwise_5fparser_5fconfig_2eproto {
  static const ::uint32_t offsets[];
};
namespace optimization_guide {
namespace proto {
class FieldExtractor;
struct FieldExtractorGlobalsTypeInternal;
#ifndef PROTOBUF_MESSAGE_GLOBALS
extern FieldExtractorGlobalsTypeInternal FieldExtractor_globals_;
extern const ::google::protobuf::internal::ClassDataLite FieldExtractor_class_data_;
#else
extern const FieldExtractorGlobalsTypeInternal FieldExtractor_globals_;
#endif  // PROTOBUF_MESSAGE_GLOBALS
class FieldwiseParserConfig;
struct FieldwiseParserConfigGlobalsTypeInternal;
#ifndef PROTOBUF_MESSAGE_GLOBALS
extern FieldwiseParserConfigGlobalsTypeInternal FieldwiseParserConfig_globals_;
extern const ::google::protobuf::internal::ClassDataLite FieldwiseParserConfig_class_data_;
#else
extern const FieldwiseParserConfigGlobalsTypeInternal FieldwiseParserConfig_globals_;
#endif  // PROTOBUF_MESSAGE_GLOBALS
}  // namespace proto
}  // namespace optimization_guide
namespace google {
namespace protobuf {
}  // namespace protobuf
}  // namespace google

namespace optimization_guide {
namespace proto {

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


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

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

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

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

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

  inline FieldExtractor(const FieldExtractor& from) : FieldExtractor(nullptr, from) {}
  inline FieldExtractor(FieldExtractor&& from) noexcept : FieldExtractor(nullptr, ::std::move(from)) {}
  inline FieldExtractor& operator=(const FieldExtractor& from) {
    CopyFrom(from);
    return *this;
  }
  inline FieldExtractor& operator=(FieldExtractor&& 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 FieldExtractor& default_instance() {
    return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<FieldExtractor>(&FieldExtractor_globals_);
  }
  static constexpr int kIndexInFileMessages = 1;
  friend void swap(FieldExtractor& a, FieldExtractor& b) { a.Swap(&b); }
  PROTOBUF_NOINLINE void Swap(FieldExtractor* 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(FieldExtractor* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

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

  FieldExtractor* PROTOBUF_NONNULL
  New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return ::google::protobuf::MessageLite::DefaultConstruct<FieldExtractor>(arena);
  }
  void CopyFrom(const FieldExtractor& from);
  void MergeFrom(const FieldExtractor& from) { FieldExtractor::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(FieldExtractor* PROTOBUF_NONNULL other);
 private:
  template <typename T>
  friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
  static ::absl::string_view FullMessageName() { return "optimization_guide.proto.FieldExtractor"; }

  explicit FieldExtractor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  FieldExtractor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const FieldExtractor& from);
  FieldExtractor(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, FieldExtractor&& from) noexcept
      : FieldExtractor(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 {
    kCapturingRegexFieldNumber = 2,
    kOutputFieldFieldNumber = 1,
    kTranslationMapFieldNumber = 3,
  };
  // optional string capturing_regex = 2;
  bool has_capturing_regex()
      const;
  void clear_capturing_regex() ;
  const ::std::string& capturing_regex() const;
  template <typename Arg_ = const ::std::string&, typename... Args_>
  void set_capturing_regex(Arg_&& arg, Args_... args);
  ::std::string* PROTOBUF_NONNULL mutable_capturing_regex();
  ::std::string* PROTOBUF_NULLABLE release_capturing_regex();
  void set_allocated_capturing_regex(::std::string* PROTOBUF_NULLABLE value);

  private:
  const ::std::string& _internal_capturing_regex() const;
  PROTOBUF_ALWAYS_INLINE void _internal_set_capturing_regex(const ::std::string& value);
  ::std::string* PROTOBUF_NONNULL _internal_mutable_capturing_regex();

  public:
  // optional .optimization_guide.proto.ProtoField output_field = 1;
  bool has_output_field()
      const;
  void clear_output_field() ;
  const ::optimization_guide::proto::ProtoField& output_field() const;
  ::optimization_guide::proto::ProtoField* PROTOBUF_NULLABLE release_output_field();
  ::optimization_guide::proto::ProtoField* PROTOBUF_NONNULL mutable_output_field();
  void set_allocated_output_field(::optimization_guide::proto::ProtoField* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_output_field(::optimization_guide::proto::ProtoField* PROTOBUF_NULLABLE value);
  ::optimization_guide::proto::ProtoField* PROTOBUF_NULLABLE unsafe_arena_release_output_field();

  private:
  const ::optimization_guide::proto::ProtoField& _internal_output_field() const;
  ::optimization_guide::proto::ProtoField* PROTOBUF_NONNULL _internal_mutable_output_field();

  public:
  // map<string, string> translation_map = 3;
  int translation_map_size()
      const;
  private:
  int _internal_translation_map_size() const;

  public:
  void clear_translation_map() ;
  const ::google::protobuf::Map<::std::string, ::std::string>& translation_map() const;
  ::google::protobuf::Map<::std::string, ::std::string>* PROTOBUF_NONNULL mutable_translation_map();

  private:
  const ::google::protobuf::Map<::std::string, ::std::string>& _internal_translation_map() const;
  ::google::protobuf::Map<::std::string, ::std::string>* PROTOBUF_NONNULL _internal_mutable_translation_map();

  public:
  // @@protoc_insertion_point(class_scope:optimization_guide.proto.FieldExtractor)
 private:
  class _Internal;
  using ParseTableT_ =
      ::google::protobuf::internal::TcParseTable<1, 3,
                          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 FieldExtractor& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::google::protobuf::internal::ArenaStringPtr capturing_regex_;
    ::optimization_guide::proto::ProtoField* PROTOBUF_NULLABLE output_field_;
    ::google::protobuf::internal::MapFieldLite<::std::string, ::std::string> translation_map_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_components_2foptimization_5fguide_2fproto_2ffieldwise_5fparser_5fconfig_2eproto;
};
// -------------------------------------------------------------------

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

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

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

  inline FieldwiseParserConfig(const FieldwiseParserConfig& from) : FieldwiseParserConfig(nullptr, from) {}
  inline FieldwiseParserConfig(FieldwiseParserConfig&& from) noexcept : FieldwiseParserConfig(nullptr, ::std::move(from)) {}
  inline FieldwiseParserConfig& operator=(const FieldwiseParserConfig& from) {
    CopyFrom(from);
    return *this;
  }
  inline FieldwiseParserConfig& operator=(FieldwiseParserConfig&& 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 FieldwiseParserConfig& default_instance() {
    return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<FieldwiseParserConfig>(&FieldwiseParserConfig_globals_);
  }
  static constexpr int kIndexInFileMessages = 2;
  friend void swap(FieldwiseParserConfig& a, FieldwiseParserConfig& b) { a.Swap(&b); }
  PROTOBUF_NOINLINE void Swap(FieldwiseParserConfig* 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(FieldwiseParserConfig* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

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

  FieldwiseParserConfig* PROTOBUF_NONNULL
  New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return ::google::protobuf::MessageLite::DefaultConstruct<FieldwiseParserConfig>(arena);
  }
  void CopyFrom(const FieldwiseParserConfig& from);
  void MergeFrom(const FieldwiseParserConfig& from) { FieldwiseParserConfig::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(FieldwiseParserConfig* PROTOBUF_NONNULL other);
 private:
  template <typename T>
  friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
  static ::absl::string_view FullMessageName() { return "optimization_guide.proto.FieldwiseParserConfig"; }

  explicit FieldwiseParserConfig(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  FieldwiseParserConfig(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const FieldwiseParserConfig& from);
  FieldwiseParserConfig(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, FieldwiseParserConfig&& from) noexcept
      : FieldwiseParserConfig(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 {
    kFieldExtractorsFieldNumber = 1,
  };
  // repeated .optimization_guide.proto.FieldExtractor field_extractors = 1;
  int field_extractors_size()
      const;
  private:
  int _internal_field_extractors_size() const;

  public:
  void clear_field_extractors() ;
  const ::optimization_guide::proto::FieldExtractor& field_extractors(int index) const;
  ::optimization_guide::proto::FieldExtractor* PROTOBUF_NONNULL mutable_field_extractors(int index);
  ::optimization_guide::proto::FieldExtractor* PROTOBUF_NONNULL add_field_extractors();
  const ::google::protobuf::RepeatedPtrField<::optimization_guide::proto::FieldExtractor>&
  field_extractors() const;
  ::google::protobuf::RepeatedPtrField<::optimization_guide::proto::FieldExtractor>* PROTOBUF_NONNULL
  mutable_field_extractors();

  private:
  const ::google::protobuf::RepeatedPtrField<::optimization_guide::proto::FieldExtractor>& _internal_field_extractors() const;
  ::google::protobuf::RepeatedPtrField<::optimization_guide::proto::FieldExtractor>* PROTOBUF_NONNULL _internal_mutable_field_extractors();

  public:
  // @@protoc_insertion_point(class_scope:optimization_guide.proto.FieldwiseParserConfig)
 private:
  class _Internal;
  using ParseTableT_ =
      ::google::protobuf::internal::TcParseTable<0, 1,
                          1, 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 FieldwiseParserConfig& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::google::protobuf::RepeatedPtrField< ::optimization_guide::proto::FieldExtractor > field_extractors_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_components_2foptimization_5fguide_2fproto_2ffieldwise_5fparser_5fconfig_2eproto;
};

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




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


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

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

// FieldExtractor

// optional .optimization_guide.proto.ProtoField output_field = 1;
inline bool FieldExtractor::has_output_field() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
  PROTOBUF_ASSUME(!value || _impl_.output_field_ != nullptr);
  return value;
}
inline const ::optimization_guide::proto::ProtoField& FieldExtractor::_internal_output_field() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::optimization_guide::proto::ProtoField* p = _impl_.output_field_;
  return p != nullptr ? *p : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::optimization_guide::proto::ProtoField>(&::optimization_guide::proto::ProtoField_globals_);
}
inline const ::optimization_guide::proto::ProtoField& FieldExtractor::output_field() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:optimization_guide.proto.FieldExtractor.output_field)
  return _internal_output_field();
}
inline void FieldExtractor::unsafe_arena_set_allocated_output_field(
    ::optimization_guide::proto::ProtoField* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.output_field_);
  }
  _impl_.output_field_ = reinterpret_cast<::optimization_guide::proto::ProtoField*>(value);
  if (value != nullptr) {
    SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:optimization_guide.proto.FieldExtractor.output_field)
}
inline ::optimization_guide::proto::ProtoField* PROTOBUF_NULLABLE FieldExtractor::release_output_field() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  ::optimization_guide::proto::ProtoField* released = _impl_.output_field_;
  _impl_.output_field_ = nullptr;
  if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
    auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
    released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    if (GetArena() == nullptr) {
      delete old;
    }
  } else {
    if (GetArena() != nullptr) {
      released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    }
  }
  return released;
}
inline ::optimization_guide::proto::ProtoField* PROTOBUF_NULLABLE FieldExtractor::unsafe_arena_release_output_field() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:optimization_guide.proto.FieldExtractor.output_field)

  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  ::optimization_guide::proto::ProtoField* temp = _impl_.output_field_;
  _impl_.output_field_ = nullptr;
  return temp;
}
inline ::optimization_guide::proto::ProtoField* PROTOBUF_NONNULL FieldExtractor::_internal_mutable_output_field() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.output_field_ == nullptr) {
    auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::optimization_guide::proto::ProtoField>(GetArena());
    _impl_.output_field_ = reinterpret_cast<::optimization_guide::proto::ProtoField*>(p);
  }
  return _impl_.output_field_;
}
inline ::optimization_guide::proto::ProtoField* PROTOBUF_NONNULL FieldExtractor::mutable_output_field()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  ::optimization_guide::proto::ProtoField* _msg = _internal_mutable_output_field();
  // @@protoc_insertion_point(field_mutable:optimization_guide.proto.FieldExtractor.output_field)
  return _msg;
}
inline void FieldExtractor::set_allocated_output_field(::optimization_guide::proto::ProtoField* PROTOBUF_NULLABLE value) {
  ::google::protobuf::Arena* message_arena = GetArena();
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (message_arena == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.output_field_);
  }

  if (value != nullptr) {
    ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
    if (message_arena != submessage_arena) {
      value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
    }
    SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  }

  _impl_.output_field_ = reinterpret_cast<::optimization_guide::proto::ProtoField*>(value);
  // @@protoc_insertion_point(field_set_allocated:optimization_guide.proto.FieldExtractor.output_field)
}

// optional string capturing_regex = 2;
inline bool FieldExtractor::has_capturing_regex() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U);
  return value;
}
inline void FieldExtractor::clear_capturing_regex() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.capturing_regex_.ClearToEmpty();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
inline const ::std::string& FieldExtractor::capturing_regex() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:optimization_guide.proto.FieldExtractor.capturing_regex)
  return _internal_capturing_regex();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void FieldExtractor::set_capturing_regex(Arg_&& arg, Args_... args) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  _impl_.capturing_regex_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:optimization_guide.proto.FieldExtractor.capturing_regex)
}
inline ::std::string* PROTOBUF_NONNULL FieldExtractor::mutable_capturing_regex()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  ::std::string* _s = _internal_mutable_capturing_regex();
  // @@protoc_insertion_point(field_mutable:optimization_guide.proto.FieldExtractor.capturing_regex)
  return _s;
}
inline const ::std::string& FieldExtractor::_internal_capturing_regex() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.capturing_regex_.Get();
}
inline void FieldExtractor::_internal_set_capturing_regex(const ::std::string& value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.capturing_regex_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL FieldExtractor::_internal_mutable_capturing_regex() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _impl_.capturing_regex_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE FieldExtractor::release_capturing_regex() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:optimization_guide.proto.FieldExtractor.capturing_regex)
  if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) {
    return nullptr;
  }
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
  auto* released = _impl_.capturing_regex_.Release();
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
    _impl_.capturing_regex_.Set("", GetArena());
  }
  return released;
}
inline void FieldExtractor::set_allocated_capturing_regex(::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_.capturing_regex_.SetAllocated(value, GetArena());
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.capturing_regex_.IsDefault()) {
    _impl_.capturing_regex_.Set("", GetArena());
  }
  // @@protoc_insertion_point(field_set_allocated:optimization_guide.proto.FieldExtractor.capturing_regex)
}

// map<string, string> translation_map = 3;
inline int FieldExtractor::_internal_translation_map_size() const {
  return _internal_translation_map().size();
}
inline int FieldExtractor::translation_map_size() const {
  return _internal_translation_map_size();
}
inline void FieldExtractor::clear_translation_map() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.translation_map_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
}
inline const ::google::protobuf::Map<::std::string, ::std::string>& FieldExtractor::_internal_translation_map() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.translation_map_.GetMap();
}
inline const ::google::protobuf::Map<::std::string, ::std::string>& FieldExtractor::translation_map() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_map:optimization_guide.proto.FieldExtractor.translation_map)
  return _internal_translation_map();
}
inline ::google::protobuf::Map<::std::string, ::std::string>* PROTOBUF_NONNULL FieldExtractor::_internal_mutable_translation_map() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _impl_.translation_map_.MutableMap();
}
inline ::google::protobuf::Map<::std::string, ::std::string>* PROTOBUF_NONNULL FieldExtractor::mutable_translation_map()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000004U);
  // @@protoc_insertion_point(field_mutable_map:optimization_guide.proto.FieldExtractor.translation_map)
  return _internal_mutable_translation_map();
}

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

// FieldwiseParserConfig

// repeated .optimization_guide.proto.FieldExtractor field_extractors = 1;
inline int FieldwiseParserConfig::_internal_field_extractors_size() const {
  return _internal_field_extractors().size();
}
inline int FieldwiseParserConfig::field_extractors_size() const {
  return _internal_field_extractors_size();
}
inline void FieldwiseParserConfig::clear_field_extractors() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.field_extractors_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
inline const ::optimization_guide::proto::FieldExtractor& FieldwiseParserConfig::field_extractors(int index) const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:optimization_guide.proto.FieldwiseParserConfig.field_extractors)
  return _internal_field_extractors().Get(index);
}
inline ::optimization_guide::proto::FieldExtractor* PROTOBUF_NONNULL FieldwiseParserConfig::mutable_field_extractors(int index)
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_mutable:optimization_guide.proto.FieldwiseParserConfig.field_extractors)
  return _internal_mutable_field_extractors()->Mutable(index);
}
inline ::optimization_guide::proto::FieldExtractor* PROTOBUF_NONNULL FieldwiseParserConfig::add_field_extractors()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::optimization_guide::proto::FieldExtractor* _add =
      _internal_mutable_field_extractors()->InternalAddWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), GetArena());
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  // @@protoc_insertion_point(field_add:optimization_guide.proto.FieldwiseParserConfig.field_extractors)
  return _add;
}
inline const ::google::protobuf::RepeatedPtrField<::optimization_guide::proto::FieldExtractor>& FieldwiseParserConfig::field_extractors() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_list:optimization_guide.proto.FieldwiseParserConfig.field_extractors)
  return _internal_field_extractors();
}
inline ::google::protobuf::RepeatedPtrField<::optimization_guide::proto::FieldExtractor>* PROTOBUF_NONNULL
FieldwiseParserConfig::mutable_field_extractors() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  // @@protoc_insertion_point(field_mutable_list:optimization_guide.proto.FieldwiseParserConfig.field_extractors)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _internal_mutable_field_extractors();
}
inline const ::google::protobuf::RepeatedPtrField<::optimization_guide::proto::FieldExtractor>&
FieldwiseParserConfig::_internal_field_extractors() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.field_extractors_;
}
inline ::google::protobuf::RepeatedPtrField<::optimization_guide::proto::FieldExtractor>* PROTOBUF_NONNULL
FieldwiseParserConfig::_internal_mutable_field_extractors() {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return &_impl_.field_extractors_;
}

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

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


// @@protoc_insertion_point(global_scope)

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

#endif  // components_2foptimization_5fguide_2fproto_2ffieldwise_5fparser_5fconfig_2eproto_2epb_2eh
