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

#ifndef rich_5fsuggest_5ftemplate_2eproto_2epb_2eh
#define rich_5fsuggest_5ftemplate_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 "rich_answer_template.pb.h"
// @@protoc_insertion_point(includes)

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

#define PROTOBUF_INTERNAL_EXPORT_rich_5fsuggest_5ftemplate_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_rich_5fsuggest_5ftemplate_2eproto {
  static const ::uint32_t offsets[];
};
namespace omnibox {
class RichSuggestTemplate;
struct RichSuggestTemplateGlobalsTypeInternal;
#ifndef PROTOBUF_MESSAGE_GLOBALS
extern RichSuggestTemplateGlobalsTypeInternal RichSuggestTemplate_globals_;
extern const ::google::protobuf::internal::ClassDataLite RichSuggestTemplate_class_data_;
#else
extern const RichSuggestTemplateGlobalsTypeInternal RichSuggestTemplate_globals_;
#endif  // PROTOBUF_MESSAGE_GLOBALS
}  // namespace omnibox
namespace google {
namespace protobuf {
}  // namespace protobuf
}  // namespace google

namespace omnibox {

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


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

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

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

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

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

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

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

  explicit RichSuggestTemplate(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  RichSuggestTemplate(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RichSuggestTemplate& from);
  RichSuggestTemplate(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RichSuggestTemplate&& from) noexcept
      : RichSuggestTemplate(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 {
    kRichAnswerTemplateFieldNumber = 1,
  };
  // .omnibox.RichAnswerTemplate rich_answer_template = 1;
  bool has_rich_answer_template()
      const;
  private:
  bool _internal_has_rich_answer_template() const;

  public:
  void clear_rich_answer_template() ;
  const ::omnibox::RichAnswerTemplate& rich_answer_template() const;
  ::omnibox::RichAnswerTemplate* PROTOBUF_NULLABLE release_rich_answer_template();
  ::omnibox::RichAnswerTemplate* PROTOBUF_NONNULL mutable_rich_answer_template();
  void set_allocated_rich_answer_template(::omnibox::RichAnswerTemplate* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_rich_answer_template(::omnibox::RichAnswerTemplate* PROTOBUF_NULLABLE value);
  ::omnibox::RichAnswerTemplate* PROTOBUF_NULLABLE unsafe_arena_release_rich_answer_template();

  private:
  const ::omnibox::RichAnswerTemplate& _internal_rich_answer_template() const;
  ::omnibox::RichAnswerTemplate* PROTOBUF_NONNULL _internal_mutable_rich_answer_template();

  public:
  void clear_template();
  TemplateCase template_case() const;
  // @@protoc_insertion_point(class_scope:omnibox.RichSuggestTemplate)
 private:
  class _Internal;
  void set_has_rich_answer_template();
  inline bool has_template() const;
  inline void clear_has_template();
  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 RichSuggestTemplate& from_msg);
    union TemplateUnion {
      constexpr TemplateUnion() : _constinit_{} {}
      ::google::protobuf::internal::ConstantInitialized _constinit_;
      ::omnibox::RichAnswerTemplate* PROTOBUF_NULLABLE rich_answer_template_;
    } template_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::uint32_t _oneof_case_[1];
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_rich_5fsuggest_5ftemplate_2eproto;
};

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




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


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

// RichSuggestTemplate

// .omnibox.RichAnswerTemplate rich_answer_template = 1;
inline bool RichSuggestTemplate::has_rich_answer_template() const {
  return template_case() == kRichAnswerTemplate;
}
inline bool RichSuggestTemplate::_internal_has_rich_answer_template() const {
  return template_case() == kRichAnswerTemplate;
}
inline void RichSuggestTemplate::set_has_rich_answer_template() {
  _impl_._oneof_case_[0] = kRichAnswerTemplate;
}
inline ::omnibox::RichAnswerTemplate* PROTOBUF_NULLABLE RichSuggestTemplate::release_rich_answer_template() {
  // @@protoc_insertion_point(field_release:omnibox.RichSuggestTemplate.rich_answer_template)
  if (template_case() == kRichAnswerTemplate) {
    clear_has_template();
    auto* temp = _impl_.template_.rich_answer_template_;
    if (GetArena() != nullptr) {
      temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
    }
    _impl_.template_.rich_answer_template_ = nullptr;
    return temp;
  } else {
    return nullptr;
  }
}
inline const ::omnibox::RichAnswerTemplate& RichSuggestTemplate::_internal_rich_answer_template() const {
  return template_case() == kRichAnswerTemplate ? static_cast<const ::omnibox::RichAnswerTemplate&>(*_impl_.template_.rich_answer_template_)
                     : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::omnibox::RichAnswerTemplate>(&::omnibox::RichAnswerTemplate_globals_);
}
inline const ::omnibox::RichAnswerTemplate& RichSuggestTemplate::rich_answer_template() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:omnibox.RichSuggestTemplate.rich_answer_template)
  return _internal_rich_answer_template();
}
inline ::omnibox::RichAnswerTemplate* PROTOBUF_NULLABLE RichSuggestTemplate::unsafe_arena_release_rich_answer_template() {
  // @@protoc_insertion_point(field_unsafe_arena_release:omnibox.RichSuggestTemplate.rich_answer_template)
  if (template_case() == kRichAnswerTemplate) {
    clear_has_template();
    auto* temp = _impl_.template_.rich_answer_template_;
    _impl_.template_.rich_answer_template_ = nullptr;
    return temp;
  } else {
    return nullptr;
  }
}
inline void RichSuggestTemplate::unsafe_arena_set_allocated_rich_answer_template(
    ::omnibox::RichAnswerTemplate* PROTOBUF_NULLABLE value) {
  // We rely on the oneof clear method to free the earlier contents
  // of this oneof. We can directly use the pointer we're given to
  // set the new value.
  clear_template();
  if (value) {
    set_has_rich_answer_template();
    _impl_.template_.rich_answer_template_ = value;
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:omnibox.RichSuggestTemplate.rich_answer_template)
}
inline ::omnibox::RichAnswerTemplate* PROTOBUF_NONNULL RichSuggestTemplate::_internal_mutable_rich_answer_template() {
  if (template_case() != kRichAnswerTemplate) {
    clear_template();
    set_has_rich_answer_template();
    _impl_.template_.rich_answer_template_ = 
        ::google::protobuf::MessageLite::DefaultConstruct<::omnibox::RichAnswerTemplate>(GetArena());
  }
  return _impl_.template_.rich_answer_template_;
}
inline ::omnibox::RichAnswerTemplate* PROTOBUF_NONNULL RichSuggestTemplate::mutable_rich_answer_template()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  ::omnibox::RichAnswerTemplate* _msg = _internal_mutable_rich_answer_template();
  // @@protoc_insertion_point(field_mutable:omnibox.RichSuggestTemplate.rich_answer_template)
  return _msg;
}

inline bool RichSuggestTemplate::has_template() const {
  return template_case() != TEMPLATE_NOT_SET;
}
inline void RichSuggestTemplate::clear_has_template() {
  _impl_._oneof_case_[0] = TEMPLATE_NOT_SET;
}
inline RichSuggestTemplate::TemplateCase RichSuggestTemplate::template_case() const {
  return RichSuggestTemplate::TemplateCase(_impl_._oneof_case_[0]);
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif  // __GNUC__

// @@protoc_insertion_point(namespace_scope)
}  // namespace omnibox


// @@protoc_insertion_point(global_scope)

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

#endif  // rich_5fsuggest_5ftemplate_2eproto_2epb_2eh
