// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/protobuf/unittest_import.proto

#ifndef PROTOBUF_INCLUDED_google_2fprotobuf_2funittest_5fimport_2eproto
#define PROTOBUF_INCLUDED_google_2fprotobuf_2funittest_5fimport_2eproto

#include <string>

#include <google/protobuf/stubs/common.h>

#if GOOGLE_PROTOBUF_VERSION < 3006001
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers.  Please update
#error your headers.
#endif
#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers.  Please
#error regenerate this file with a newer version of protoc.
#endif

#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_table_driven.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/inlined_string_field.h>
#include <google/protobuf/metadata.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h>  // IWYU pragma: export
#include <google/protobuf/extension_set.h>  // IWYU pragma: export
#include <google/protobuf/generated_enum_reflection.h>
#include <google/protobuf/unknown_field_set.h>
#include <google/protobuf/unittest_import_public.pb.h>  // IWYU pragma: export
// @@protoc_insertion_point(includes)
#define PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2funittest_5fimport_2eproto 

namespace protobuf_google_2fprotobuf_2funittest_5fimport_2eproto {
// Internal implementation detail -- do not use these members.
struct TableStruct {
  static const ::google::protobuf::internal::ParseTableField entries[];
  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  static const ::google::protobuf::internal::ParseTable schema[1];
  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  static const ::google::protobuf::internal::SerializationTable serialization_table[];
  static const ::google::protobuf::uint32 offsets[];
};
void AddDescriptors();
}  // namespace protobuf_google_2fprotobuf_2funittest_5fimport_2eproto
namespace protobuf_unittest_import {
class ImportMessage;
class ImportMessageDefaultTypeInternal;
extern ImportMessageDefaultTypeInternal _ImportMessage_default_instance_;
}  // namespace protobuf_unittest_import
namespace google {
namespace protobuf {
template<> ::protobuf_unittest_import::ImportMessage* Arena::CreateMaybeMessage<::protobuf_unittest_import::ImportMessage>(Arena*);
}  // namespace protobuf
}  // namespace google
namespace protobuf_unittest_import {

enum ImportEnum {
  IMPORT_FOO = 7,
  IMPORT_BAR = 8,
  IMPORT_BAZ = 9
};
bool ImportEnum_IsValid(int value);
const ImportEnum ImportEnum_MIN = IMPORT_FOO;
const ImportEnum ImportEnum_MAX = IMPORT_BAZ;
const int ImportEnum_ARRAYSIZE = ImportEnum_MAX + 1;

const ::google::protobuf::EnumDescriptor* ImportEnum_descriptor();
inline const ::std::string& ImportEnum_Name(ImportEnum value) {
  return ::google::protobuf::internal::NameOfEnum(
    ImportEnum_descriptor(), value);
}
inline bool ImportEnum_Parse(
    const ::std::string& name, ImportEnum* value) {
  return ::google::protobuf::internal::ParseNamedEnum<ImportEnum>(
    ImportEnum_descriptor(), name, value);
}
enum ImportEnumForMap {
  UNKNOWN = 0,
  FOO = 1,
  BAR = 2
};
bool ImportEnumForMap_IsValid(int value);
const ImportEnumForMap ImportEnumForMap_MIN = UNKNOWN;
const ImportEnumForMap ImportEnumForMap_MAX = BAR;
const int ImportEnumForMap_ARRAYSIZE = ImportEnumForMap_MAX + 1;

const ::google::protobuf::EnumDescriptor* ImportEnumForMap_descriptor();
inline const ::std::string& ImportEnumForMap_Name(ImportEnumForMap value) {
  return ::google::protobuf::internal::NameOfEnum(
    ImportEnumForMap_descriptor(), value);
}
inline bool ImportEnumForMap_Parse(
    const ::std::string& name, ImportEnumForMap* value) {
  return ::google::protobuf::internal::ParseNamedEnum<ImportEnumForMap>(
    ImportEnumForMap_descriptor(), name, value);
}
// ===================================================================

class ImportMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest_import.ImportMessage) */ {
 public:
  ImportMessage();
  virtual ~ImportMessage();

  ImportMessage(const ImportMessage& from);

  inline ImportMessage& operator=(const ImportMessage& from) {
    CopyFrom(from);
    return *this;
  }
  #if LANG_CXX11
  ImportMessage(ImportMessage&& from) noexcept
    : ImportMessage() {
    *this = ::std::move(from);
  }

  inline ImportMessage& operator=(ImportMessage&& from) noexcept {
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
      if (this != &from) InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }
  #endif
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
    return _internal_metadata_.unknown_fields();
  }
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
    return _internal_metadata_.mutable_unknown_fields();
  }

  inline ::google::protobuf::Arena* GetArena() const final {
    return GetArenaNoVirtual();
  }
  inline void* GetMaybeArenaPointer() const final {
    return MaybeArenaPtr();
  }
  static const ::google::protobuf::Descriptor* descriptor();
  static const ImportMessage& default_instance();

  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
  static inline const ImportMessage* internal_default_instance() {
    return reinterpret_cast<const ImportMessage*>(
               &_ImportMessage_default_instance_);
  }
  static constexpr int kIndexInFileMessages =
    0;

  void UnsafeArenaSwap(ImportMessage* other);
  void Swap(ImportMessage* other);
  friend void swap(ImportMessage& a, ImportMessage& b) {
    a.Swap(&b);
  }

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

  inline ImportMessage* New() const final {
    return CreateMaybeMessage<ImportMessage>(NULL);
  }

  ImportMessage* New(::google::protobuf::Arena* arena) const final {
    return CreateMaybeMessage<ImportMessage>(arena);
  }
  void CopyFrom(const ::google::protobuf::Message& from) final;
  void MergeFrom(const ::google::protobuf::Message& from) final;
  void CopyFrom(const ImportMessage& from);
  void MergeFrom(const ImportMessage& from);
  void Clear() final;
  bool IsInitialized() const final;

  size_t ByteSizeLong() const final;
  bool MergePartialFromCodedStream(
      ::google::protobuf::io::CodedInputStream* input) final;
  void SerializeWithCachedSizes(
      ::google::protobuf::io::CodedOutputStream* output) const final;
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
      bool deterministic, ::google::protobuf::uint8* target) const final;
  int GetCachedSize() const final { return _cached_size_.Get(); }

  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const final;
  void InternalSwap(ImportMessage* other);
  protected:
  explicit ImportMessage(::google::protobuf::Arena* arena);
  private:
  static void ArenaDtor(void* object);
  inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  private:
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
    return _internal_metadata_.arena();
  }
  inline void* MaybeArenaPtr() const {
    return _internal_metadata_.raw_arena_ptr();
  }
  public:

  ::google::protobuf::Metadata GetMetadata() const final;

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

  // accessors -------------------------------------------------------

  // optional int32 d = 1;
  bool has_d() const;
  void clear_d();
  static const int kDFieldNumber = 1;
  ::google::protobuf::int32 d() const;
  void set_d(::google::protobuf::int32 value);

  // @@protoc_insertion_point(class_scope:protobuf_unittest_import.ImportMessage)
 private:
  void set_has_d();
  void clear_has_d();

  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  typedef void InternalArenaConstructable_;
  typedef void DestructorSkippable_;
  ::google::protobuf::internal::HasBits<1> _has_bits_;
  mutable ::google::protobuf::internal::CachedSize _cached_size_;
  ::google::protobuf::int32 d_;
  friend struct ::protobuf_google_2fprotobuf_2funittest_5fimport_2eproto::TableStruct;
};
// ===================================================================


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

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

// optional int32 d = 1;
inline bool ImportMessage::has_d() const {
  return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void ImportMessage::set_has_d() {
  _has_bits_[0] |= 0x00000001u;
}
inline void ImportMessage::clear_has_d() {
  _has_bits_[0] &= ~0x00000001u;
}
inline void ImportMessage::clear_d() {
  d_ = 0;
  clear_has_d();
}
inline ::google::protobuf::int32 ImportMessage::d() const {
  // @@protoc_insertion_point(field_get:protobuf_unittest_import.ImportMessage.d)
  return d_;
}
inline void ImportMessage::set_d(::google::protobuf::int32 value) {
  set_has_d();
  d_ = value;
  // @@protoc_insertion_point(field_set:protobuf_unittest_import.ImportMessage.d)
}

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

// @@protoc_insertion_point(namespace_scope)

}  // namespace protobuf_unittest_import

namespace google {
namespace protobuf {

template <> struct is_proto_enum< ::protobuf_unittest_import::ImportEnum> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::protobuf_unittest_import::ImportEnum>() {
  return ::protobuf_unittest_import::ImportEnum_descriptor();
}
template <> struct is_proto_enum< ::protobuf_unittest_import::ImportEnumForMap> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::protobuf_unittest_import::ImportEnumForMap>() {
  return ::protobuf_unittest_import::ImportEnumForMap_descriptor();
}

}  // namespace protobuf
}  // namespace google

// @@protoc_insertion_point(global_scope)

#endif  // PROTOBUF_INCLUDED_google_2fprotobuf_2funittest_5fimport_2eproto
