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

#ifndef PROTOBUF_google_2fprotobuf_2funittest_5fimport_2eproto__INCLUDED
#define PROTOBUF_google_2fprotobuf_2funittest_5fimport_2eproto__INCLUDED

#include <string>

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

#if GOOGLE_PROTOBUF_VERSION < 2004000
#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 2004001 < 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/generated_message_util.h>
#include <google/protobuf/repeated_field.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/generated_message_reflection.h>
// @@protoc_insertion_point(includes)

namespace protobuf_unittest_import {

// Internal implementation detail -- do not call these.
void  protobuf_AddDesc_google_2fprotobuf_2funittest_5fimport_2eproto();
void protobuf_AssignDesc_google_2fprotobuf_2funittest_5fimport_2eproto();
void protobuf_ShutdownFile_google_2fprotobuf_2funittest_5fimport_2eproto();

class ImportMessage;

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);
}
// ===================================================================

class ImportMessage : public ::google::protobuf::Message {
 public:
  ImportMessage();
  virtual ~ImportMessage();
  
  ImportMessage(const ImportMessage& from);
  
  inline ImportMessage& operator=(const ImportMessage& from) {
    CopyFrom(from);
    return *this;
  }
  
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
    return _unknown_fields_;
  }
  
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
    return &_unknown_fields_;
  }
  
  static const ::google::protobuf::Descriptor* descriptor();
  static const ImportMessage& default_instance();
  
  void Swap(ImportMessage* other);
  
  // implements Message ----------------------------------------------
  
  ImportMessage* New() const;
  void CopyFrom(const ::google::protobuf::Message& from);
  void MergeFrom(const ::google::protobuf::Message& from);
  void CopyFrom(const ImportMessage& from);
  void MergeFrom(const ImportMessage& from);
  void Clear();
  bool IsInitialized() const;
  
  int ByteSize() const;
  bool MergePartialFromCodedStream(
      ::google::protobuf::io::CodedInputStream* input);
  void SerializeWithCachedSizes(
      ::google::protobuf::io::CodedOutputStream* output) const;
  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  int GetCachedSize() const { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const;
  public:
  
  ::google::protobuf::Metadata GetMetadata() const;
  
  // nested types ----------------------------------------------------
  
  // accessors -------------------------------------------------------
  
  // optional int32 d = 1;
  inline bool has_d() const;
  inline void clear_d();
  static const int kDFieldNumber = 1;
  inline ::google::protobuf::int32 d() const;
  inline void set_d(::google::protobuf::int32 value);
  
  // @@protoc_insertion_point(class_scope:protobuf_unittest_import.ImportMessage)
 private:
  inline void set_has_d();
  inline void clear_has_d();
  
  ::google::protobuf::UnknownFieldSet _unknown_fields_;
  
  ::google::protobuf::int32 d_;
  
  mutable int _cached_size_;
  ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
  
  friend void  protobuf_AddDesc_google_2fprotobuf_2funittest_5fimport_2eproto();
  friend void protobuf_AssignDesc_google_2fprotobuf_2funittest_5fimport_2eproto();
  friend void protobuf_ShutdownFile_google_2fprotobuf_2funittest_5fimport_2eproto();
  
  void InitAsDefaultInstance();
  static ImportMessage* default_instance_;
};
// ===================================================================


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

// 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 {
  return d_;
}
inline void ImportMessage::set_d(::google::protobuf::int32 value) {
  set_has_d();
  d_ = value;
}


// @@protoc_insertion_point(namespace_scope)

}  // namespace protobuf_unittest_import

#ifndef SWIG
namespace google {
namespace protobuf {

template <>
inline const EnumDescriptor* GetEnumDescriptor< protobuf_unittest_import::ImportEnum>() {
  return protobuf_unittest_import::ImportEnum_descriptor();
}

}  // namespace google
}  // namespace protobuf
#endif  // SWIG

// @@protoc_insertion_point(global_scope)

#endif  // PROTOBUF_google_2fprotobuf_2funittest_5fimport_2eproto__INCLUDED
