// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: caffe2/proto/predictor_consts.proto

#include "caffe2/proto/predictor_consts.pb.h"

#include <algorithm>

#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/wire_format_lite_inl.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
// This is a temporary google only hack
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
#include "third_party/protobuf/version.h"
#endif
// @@protoc_insertion_point(includes)

namespace caffe2 {
class PredictorConstsDefaultTypeInternal {
 public:
  ::google::protobuf::internal::ExplicitlyConstructed<PredictorConsts>
      _instance;
} _PredictorConsts_default_instance_;
}  // namespace caffe2
namespace protobuf_caffe2_2fproto_2fpredictor_5fconsts_2eproto {
static void InitDefaultsPredictorConsts() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  ::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_meta_net_def_.DefaultConstruct();
  *::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_meta_net_def_.get_mutable() = ::std::string("!!META_NET_DEF", 14);
  ::google::protobuf::internal::OnShutdownDestroyString(
      ::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_meta_net_def_.get_mutable());
  ::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_predictor_dbreader_.DefaultConstruct();
  *::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_predictor_dbreader_.get_mutable() = ::std::string("!!PREDICTOR_DBREADER", 20);
  ::google::protobuf::internal::OnShutdownDestroyString(
      ::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_predictor_dbreader_.get_mutable());
  ::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_parameters_blob_type_.DefaultConstruct();
  *::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_parameters_blob_type_.get_mutable() = ::std::string("PARAMETERS_BLOB_TYPE", 20);
  ::google::protobuf::internal::OnShutdownDestroyString(
      ::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_parameters_blob_type_.get_mutable());
  ::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_inputs_blob_type_.DefaultConstruct();
  *::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_inputs_blob_type_.get_mutable() = ::std::string("INPUTS_BLOB_TYPE", 16);
  ::google::protobuf::internal::OnShutdownDestroyString(
      ::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_inputs_blob_type_.get_mutable());
  ::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_outputs_blob_type_.DefaultConstruct();
  *::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_outputs_blob_type_.get_mutable() = ::std::string("OUTPUTS_BLOB_TYPE", 17);
  ::google::protobuf::internal::OnShutdownDestroyString(
      ::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_outputs_blob_type_.get_mutable());
  ::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_global_init_net_type_.DefaultConstruct();
  *::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_global_init_net_type_.get_mutable() = ::std::string("GLOBAL_INIT_NET_TYPE", 20);
  ::google::protobuf::internal::OnShutdownDestroyString(
      ::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_global_init_net_type_.get_mutable());
  ::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_predict_init_net_type_.DefaultConstruct();
  *::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_predict_init_net_type_.get_mutable() = ::std::string("PREDICT_INIT_NET_TYPE", 21);
  ::google::protobuf::internal::OnShutdownDestroyString(
      ::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_predict_init_net_type_.get_mutable());
  ::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_predict_net_type_.DefaultConstruct();
  *::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_predict_net_type_.get_mutable() = ::std::string("PREDICT_NET_TYPE", 16);
  ::google::protobuf::internal::OnShutdownDestroyString(
      ::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_predict_net_type_.get_mutable());
  ::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_single_predictor_.DefaultConstruct();
  *::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_single_predictor_.get_mutable() = ::std::string("SINGLE_PREDICTOR", 16);
  ::google::protobuf::internal::OnShutdownDestroyString(
      ::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_single_predictor_.get_mutable());
  ::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_multi_predictor_.DefaultConstruct();
  *::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_multi_predictor_.get_mutable() = ::std::string("MULTI_PREDICTOR", 15);
  ::google::protobuf::internal::OnShutdownDestroyString(
      ::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_multi_predictor_.get_mutable());
  ::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_train_init_plan_type_.DefaultConstruct();
  *::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_train_init_plan_type_.get_mutable() = ::std::string("TRAIN_INIT_PLAN_TYPE", 20);
  ::google::protobuf::internal::OnShutdownDestroyString(
      ::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_train_init_plan_type_.get_mutable());
  ::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_train_plan_type_.DefaultConstruct();
  *::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_train_plan_type_.get_mutable() = ::std::string("TRAIN_PLAN_TYPE", 15);
  ::google::protobuf::internal::OnShutdownDestroyString(
      ::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_train_plan_type_.get_mutable());
  {
    void* ptr = &::caffe2::_PredictorConsts_default_instance_;
    new (ptr) ::caffe2::PredictorConsts();
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  }
  ::caffe2::PredictorConsts::InitAsDefaultInstance();
}

CAFFE2_API ::google::protobuf::internal::SCCInfo<0> scc_info_PredictorConsts =
    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPredictorConsts}, {}};

void InitDefaults() {
  ::google::protobuf::internal::InitSCC(&scc_info_PredictorConsts.base);
}

::google::protobuf::Metadata file_level_metadata[1];

const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::caffe2::PredictorConsts, _has_bits_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::caffe2::PredictorConsts, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::caffe2::PredictorConsts, meta_net_def_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::caffe2::PredictorConsts, predictor_dbreader_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::caffe2::PredictorConsts, parameters_blob_type_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::caffe2::PredictorConsts, inputs_blob_type_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::caffe2::PredictorConsts, outputs_blob_type_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::caffe2::PredictorConsts, global_init_net_type_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::caffe2::PredictorConsts, predict_init_net_type_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::caffe2::PredictorConsts, predict_net_type_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::caffe2::PredictorConsts, single_predictor_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::caffe2::PredictorConsts, multi_predictor_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::caffe2::PredictorConsts, train_init_plan_type_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::caffe2::PredictorConsts, train_plan_type_),
  0,
  1,
  2,
  3,
  4,
  5,
  6,
  7,
  8,
  9,
  10,
  11,
};
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  { 0, 17, sizeof(::caffe2::PredictorConsts)},
};

static ::google::protobuf::Message const * const file_default_instances[] = {
  reinterpret_cast<const ::google::protobuf::Message*>(&::caffe2::_PredictorConsts_default_instance_),
};

void protobuf_AssignDescriptors() {
  AddDescriptors();
  AssignDescriptors(
      "caffe2/proto/predictor_consts.proto", schemas, file_default_instances, TableStruct::offsets,
      file_level_metadata, NULL, NULL);
}

void protobuf_AssignDescriptorsOnce() {
  static ::google::protobuf::internal::once_flag once;
  ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
}

void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
void protobuf_RegisterTypes(const ::std::string&) {
  protobuf_AssignDescriptorsOnce();
  ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1);
}

void AddDescriptorsImpl() {
  InitDefaults();
  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
      "\n#caffe2/proto/predictor_consts.proto\022\006c"
      "affe2\"\301\004\n\017PredictorConsts\022$\n\014META_NET_DE"
      "F\030\001 \001(\t:\016!!META_NET_DEF\0220\n\022PREDICTOR_DBR"
      "EADER\030\002 \001(\t:\024!!PREDICTOR_DBREADER\0222\n\024PAR"
      "AMETERS_BLOB_TYPE\030\003 \001(\t:\024PARAMETERS_BLOB"
      "_TYPE\022*\n\020INPUTS_BLOB_TYPE\030\004 \001(\t:\020INPUTS_"
      "BLOB_TYPE\022,\n\021OUTPUTS_BLOB_TYPE\030\005 \001(\t:\021OU"
      "TPUTS_BLOB_TYPE\0222\n\024GLOBAL_INIT_NET_TYPE\030"
      "\006 \001(\t:\024GLOBAL_INIT_NET_TYPE\0224\n\025PREDICT_I"
      "NIT_NET_TYPE\030\007 \001(\t:\025PREDICT_INIT_NET_TYP"
      "E\022*\n\020PREDICT_NET_TYPE\030\010 \001(\t:\020PREDICT_NET"
      "_TYPE\022*\n\020SINGLE_PREDICTOR\030\t \001(\t:\020SINGLE_"
      "PREDICTOR\022(\n\017MULTI_PREDICTOR\030\n \001(\t:\017MULT"
      "I_PREDICTOR\0222\n\024TRAIN_INIT_PLAN_TYPE\030\013 \001("
      "\t:\024TRAIN_INIT_PLAN_TYPE\022(\n\017TRAIN_PLAN_TY"
      "PE\030\014 \001(\t:\017TRAIN_PLAN_TYPE"
  };
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
      descriptor, 625);
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
    "caffe2/proto/predictor_consts.proto", &protobuf_RegisterTypes);
}

void AddDescriptors() {
  static ::google::protobuf::internal::once_flag once;
  ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
}
// Force AddDescriptors() to be called at dynamic initialization time.
struct StaticDescriptorInitializer {
  StaticDescriptorInitializer() {
    AddDescriptors();
  }
} static_descriptor_initializer;
}  // namespace protobuf_caffe2_2fproto_2fpredictor_5fconsts_2eproto
namespace caffe2 {

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

void PredictorConsts::InitAsDefaultInstance() {
}
::google::protobuf::internal::ExplicitlyConstructed<::std::string> PredictorConsts::_i_give_permission_to_break_this_code_default_meta_net_def_;
::google::protobuf::internal::ExplicitlyConstructed<::std::string> PredictorConsts::_i_give_permission_to_break_this_code_default_predictor_dbreader_;
::google::protobuf::internal::ExplicitlyConstructed<::std::string> PredictorConsts::_i_give_permission_to_break_this_code_default_parameters_blob_type_;
::google::protobuf::internal::ExplicitlyConstructed<::std::string> PredictorConsts::_i_give_permission_to_break_this_code_default_inputs_blob_type_;
::google::protobuf::internal::ExplicitlyConstructed<::std::string> PredictorConsts::_i_give_permission_to_break_this_code_default_outputs_blob_type_;
::google::protobuf::internal::ExplicitlyConstructed<::std::string> PredictorConsts::_i_give_permission_to_break_this_code_default_global_init_net_type_;
::google::protobuf::internal::ExplicitlyConstructed<::std::string> PredictorConsts::_i_give_permission_to_break_this_code_default_predict_init_net_type_;
::google::protobuf::internal::ExplicitlyConstructed<::std::string> PredictorConsts::_i_give_permission_to_break_this_code_default_predict_net_type_;
::google::protobuf::internal::ExplicitlyConstructed<::std::string> PredictorConsts::_i_give_permission_to_break_this_code_default_single_predictor_;
::google::protobuf::internal::ExplicitlyConstructed<::std::string> PredictorConsts::_i_give_permission_to_break_this_code_default_multi_predictor_;
::google::protobuf::internal::ExplicitlyConstructed<::std::string> PredictorConsts::_i_give_permission_to_break_this_code_default_train_init_plan_type_;
::google::protobuf::internal::ExplicitlyConstructed<::std::string> PredictorConsts::_i_give_permission_to_break_this_code_default_train_plan_type_;
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int PredictorConsts::kMETANETDEFFieldNumber;
const int PredictorConsts::kPREDICTORDBREADERFieldNumber;
const int PredictorConsts::kPARAMETERSBLOBTYPEFieldNumber;
const int PredictorConsts::kINPUTSBLOBTYPEFieldNumber;
const int PredictorConsts::kOUTPUTSBLOBTYPEFieldNumber;
const int PredictorConsts::kGLOBALINITNETTYPEFieldNumber;
const int PredictorConsts::kPREDICTINITNETTYPEFieldNumber;
const int PredictorConsts::kPREDICTNETTYPEFieldNumber;
const int PredictorConsts::kSINGLEPREDICTORFieldNumber;
const int PredictorConsts::kMULTIPREDICTORFieldNumber;
const int PredictorConsts::kTRAININITPLANTYPEFieldNumber;
const int PredictorConsts::kTRAINPLANTYPEFieldNumber;
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900

PredictorConsts::PredictorConsts()
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  ::google::protobuf::internal::InitSCC(
      &protobuf_caffe2_2fproto_2fpredictor_5fconsts_2eproto::scc_info_PredictorConsts.base);
  SharedCtor();
  // @@protoc_insertion_point(constructor:caffe2.PredictorConsts)
}
PredictorConsts::PredictorConsts(const PredictorConsts& from)
  : ::google::protobuf::Message(),
      _internal_metadata_(NULL),
      _has_bits_(from._has_bits_) {
  _internal_metadata_.MergeFrom(from._internal_metadata_);
  meta_net_def_.UnsafeSetDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_meta_net_def_.get());
  if (from.has_meta_net_def()) {
    meta_net_def_.AssignWithDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_meta_net_def_.get(), from.meta_net_def_);
  }
  predictor_dbreader_.UnsafeSetDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_predictor_dbreader_.get());
  if (from.has_predictor_dbreader()) {
    predictor_dbreader_.AssignWithDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_predictor_dbreader_.get(), from.predictor_dbreader_);
  }
  parameters_blob_type_.UnsafeSetDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_parameters_blob_type_.get());
  if (from.has_parameters_blob_type()) {
    parameters_blob_type_.AssignWithDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_parameters_blob_type_.get(), from.parameters_blob_type_);
  }
  inputs_blob_type_.UnsafeSetDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_inputs_blob_type_.get());
  if (from.has_inputs_blob_type()) {
    inputs_blob_type_.AssignWithDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_inputs_blob_type_.get(), from.inputs_blob_type_);
  }
  outputs_blob_type_.UnsafeSetDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_outputs_blob_type_.get());
  if (from.has_outputs_blob_type()) {
    outputs_blob_type_.AssignWithDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_outputs_blob_type_.get(), from.outputs_blob_type_);
  }
  global_init_net_type_.UnsafeSetDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_global_init_net_type_.get());
  if (from.has_global_init_net_type()) {
    global_init_net_type_.AssignWithDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_global_init_net_type_.get(), from.global_init_net_type_);
  }
  predict_init_net_type_.UnsafeSetDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_predict_init_net_type_.get());
  if (from.has_predict_init_net_type()) {
    predict_init_net_type_.AssignWithDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_predict_init_net_type_.get(), from.predict_init_net_type_);
  }
  predict_net_type_.UnsafeSetDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_predict_net_type_.get());
  if (from.has_predict_net_type()) {
    predict_net_type_.AssignWithDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_predict_net_type_.get(), from.predict_net_type_);
  }
  single_predictor_.UnsafeSetDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_single_predictor_.get());
  if (from.has_single_predictor()) {
    single_predictor_.AssignWithDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_single_predictor_.get(), from.single_predictor_);
  }
  multi_predictor_.UnsafeSetDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_multi_predictor_.get());
  if (from.has_multi_predictor()) {
    multi_predictor_.AssignWithDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_multi_predictor_.get(), from.multi_predictor_);
  }
  train_init_plan_type_.UnsafeSetDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_train_init_plan_type_.get());
  if (from.has_train_init_plan_type()) {
    train_init_plan_type_.AssignWithDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_train_init_plan_type_.get(), from.train_init_plan_type_);
  }
  train_plan_type_.UnsafeSetDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_train_plan_type_.get());
  if (from.has_train_plan_type()) {
    train_plan_type_.AssignWithDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_train_plan_type_.get(), from.train_plan_type_);
  }
  // @@protoc_insertion_point(copy_constructor:caffe2.PredictorConsts)
}

void PredictorConsts::SharedCtor() {
  meta_net_def_.UnsafeSetDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_meta_net_def_.get());
  predictor_dbreader_.UnsafeSetDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_predictor_dbreader_.get());
  parameters_blob_type_.UnsafeSetDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_parameters_blob_type_.get());
  inputs_blob_type_.UnsafeSetDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_inputs_blob_type_.get());
  outputs_blob_type_.UnsafeSetDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_outputs_blob_type_.get());
  global_init_net_type_.UnsafeSetDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_global_init_net_type_.get());
  predict_init_net_type_.UnsafeSetDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_predict_init_net_type_.get());
  predict_net_type_.UnsafeSetDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_predict_net_type_.get());
  single_predictor_.UnsafeSetDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_single_predictor_.get());
  multi_predictor_.UnsafeSetDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_multi_predictor_.get());
  train_init_plan_type_.UnsafeSetDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_train_init_plan_type_.get());
  train_plan_type_.UnsafeSetDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_train_plan_type_.get());
}

PredictorConsts::~PredictorConsts() {
  // @@protoc_insertion_point(destructor:caffe2.PredictorConsts)
  SharedDtor();
}

void PredictorConsts::SharedDtor() {
  meta_net_def_.DestroyNoArena(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_meta_net_def_.get());
  predictor_dbreader_.DestroyNoArena(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_predictor_dbreader_.get());
  parameters_blob_type_.DestroyNoArena(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_parameters_blob_type_.get());
  inputs_blob_type_.DestroyNoArena(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_inputs_blob_type_.get());
  outputs_blob_type_.DestroyNoArena(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_outputs_blob_type_.get());
  global_init_net_type_.DestroyNoArena(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_global_init_net_type_.get());
  predict_init_net_type_.DestroyNoArena(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_predict_init_net_type_.get());
  predict_net_type_.DestroyNoArena(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_predict_net_type_.get());
  single_predictor_.DestroyNoArena(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_single_predictor_.get());
  multi_predictor_.DestroyNoArena(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_multi_predictor_.get());
  train_init_plan_type_.DestroyNoArena(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_train_init_plan_type_.get());
  train_plan_type_.DestroyNoArena(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_train_plan_type_.get());
}

void PredictorConsts::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* PredictorConsts::descriptor() {
  ::protobuf_caffe2_2fproto_2fpredictor_5fconsts_2eproto::protobuf_AssignDescriptorsOnce();
  return ::protobuf_caffe2_2fproto_2fpredictor_5fconsts_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}

const PredictorConsts& PredictorConsts::default_instance() {
  ::google::protobuf::internal::InitSCC(&protobuf_caffe2_2fproto_2fpredictor_5fconsts_2eproto::scc_info_PredictorConsts.base);
  return *internal_default_instance();
}


void PredictorConsts::Clear() {
// @@protoc_insertion_point(message_clear_start:caffe2.PredictorConsts)
  ::google::protobuf::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  cached_has_bits = _has_bits_[0];
  if (cached_has_bits & 255u) {
    if (cached_has_bits & 0x00000001u) {
      meta_net_def_.UnsafeMutablePointer()->assign(*&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_meta_net_def_.get());
    }
    if (cached_has_bits & 0x00000002u) {
      predictor_dbreader_.UnsafeMutablePointer()->assign(*&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_predictor_dbreader_.get());
    }
    if (cached_has_bits & 0x00000004u) {
      parameters_blob_type_.UnsafeMutablePointer()->assign(*&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_parameters_blob_type_.get());
    }
    if (cached_has_bits & 0x00000008u) {
      inputs_blob_type_.UnsafeMutablePointer()->assign(*&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_inputs_blob_type_.get());
    }
    if (cached_has_bits & 0x00000010u) {
      outputs_blob_type_.UnsafeMutablePointer()->assign(*&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_outputs_blob_type_.get());
    }
    if (cached_has_bits & 0x00000020u) {
      global_init_net_type_.UnsafeMutablePointer()->assign(*&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_global_init_net_type_.get());
    }
    if (cached_has_bits & 0x00000040u) {
      predict_init_net_type_.UnsafeMutablePointer()->assign(*&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_predict_init_net_type_.get());
    }
    if (cached_has_bits & 0x00000080u) {
      predict_net_type_.UnsafeMutablePointer()->assign(*&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_predict_net_type_.get());
    }
  }
  if (cached_has_bits & 3840u) {
    if (cached_has_bits & 0x00000100u) {
      single_predictor_.UnsafeMutablePointer()->assign(*&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_single_predictor_.get());
    }
    if (cached_has_bits & 0x00000200u) {
      multi_predictor_.UnsafeMutablePointer()->assign(*&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_multi_predictor_.get());
    }
    if (cached_has_bits & 0x00000400u) {
      train_init_plan_type_.UnsafeMutablePointer()->assign(*&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_train_init_plan_type_.get());
    }
    if (cached_has_bits & 0x00000800u) {
      train_plan_type_.UnsafeMutablePointer()->assign(*&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_train_plan_type_.get());
    }
  }
  _has_bits_.Clear();
  _internal_metadata_.Clear();
}

bool PredictorConsts::MergePartialFromCodedStream(
    ::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  ::google::protobuf::uint32 tag;
  // @@protoc_insertion_point(parse_start:caffe2.PredictorConsts)
  for (;;) {
    ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
    tag = p.first;
    if (!p.second) goto handle_unusual;
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
      // optional string META_NET_DEF = 1 [default = "!!META_NET_DEF"];
      case 1: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->mutable_meta_net_def()));
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
            this->meta_net_def().data(), static_cast<int>(this->meta_net_def().length()),
            ::google::protobuf::internal::WireFormat::PARSE,
            "caffe2.PredictorConsts.META_NET_DEF");
        } else {
          goto handle_unusual;
        }
        break;
      }

      // optional string PREDICTOR_DBREADER = 2 [default = "!!PREDICTOR_DBREADER"];
      case 2: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->mutable_predictor_dbreader()));
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
            this->predictor_dbreader().data(), static_cast<int>(this->predictor_dbreader().length()),
            ::google::protobuf::internal::WireFormat::PARSE,
            "caffe2.PredictorConsts.PREDICTOR_DBREADER");
        } else {
          goto handle_unusual;
        }
        break;
      }

      // optional string PARAMETERS_BLOB_TYPE = 3 [default = "PARAMETERS_BLOB_TYPE"];
      case 3: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->mutable_parameters_blob_type()));
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
            this->parameters_blob_type().data(), static_cast<int>(this->parameters_blob_type().length()),
            ::google::protobuf::internal::WireFormat::PARSE,
            "caffe2.PredictorConsts.PARAMETERS_BLOB_TYPE");
        } else {
          goto handle_unusual;
        }
        break;
      }

      // optional string INPUTS_BLOB_TYPE = 4 [default = "INPUTS_BLOB_TYPE"];
      case 4: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->mutable_inputs_blob_type()));
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
            this->inputs_blob_type().data(), static_cast<int>(this->inputs_blob_type().length()),
            ::google::protobuf::internal::WireFormat::PARSE,
            "caffe2.PredictorConsts.INPUTS_BLOB_TYPE");
        } else {
          goto handle_unusual;
        }
        break;
      }

      // optional string OUTPUTS_BLOB_TYPE = 5 [default = "OUTPUTS_BLOB_TYPE"];
      case 5: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->mutable_outputs_blob_type()));
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
            this->outputs_blob_type().data(), static_cast<int>(this->outputs_blob_type().length()),
            ::google::protobuf::internal::WireFormat::PARSE,
            "caffe2.PredictorConsts.OUTPUTS_BLOB_TYPE");
        } else {
          goto handle_unusual;
        }
        break;
      }

      // optional string GLOBAL_INIT_NET_TYPE = 6 [default = "GLOBAL_INIT_NET_TYPE"];
      case 6: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->mutable_global_init_net_type()));
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
            this->global_init_net_type().data(), static_cast<int>(this->global_init_net_type().length()),
            ::google::protobuf::internal::WireFormat::PARSE,
            "caffe2.PredictorConsts.GLOBAL_INIT_NET_TYPE");
        } else {
          goto handle_unusual;
        }
        break;
      }

      // optional string PREDICT_INIT_NET_TYPE = 7 [default = "PREDICT_INIT_NET_TYPE"];
      case 7: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->mutable_predict_init_net_type()));
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
            this->predict_init_net_type().data(), static_cast<int>(this->predict_init_net_type().length()),
            ::google::protobuf::internal::WireFormat::PARSE,
            "caffe2.PredictorConsts.PREDICT_INIT_NET_TYPE");
        } else {
          goto handle_unusual;
        }
        break;
      }

      // optional string PREDICT_NET_TYPE = 8 [default = "PREDICT_NET_TYPE"];
      case 8: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->mutable_predict_net_type()));
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
            this->predict_net_type().data(), static_cast<int>(this->predict_net_type().length()),
            ::google::protobuf::internal::WireFormat::PARSE,
            "caffe2.PredictorConsts.PREDICT_NET_TYPE");
        } else {
          goto handle_unusual;
        }
        break;
      }

      // optional string SINGLE_PREDICTOR = 9 [default = "SINGLE_PREDICTOR"];
      case 9: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->mutable_single_predictor()));
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
            this->single_predictor().data(), static_cast<int>(this->single_predictor().length()),
            ::google::protobuf::internal::WireFormat::PARSE,
            "caffe2.PredictorConsts.SINGLE_PREDICTOR");
        } else {
          goto handle_unusual;
        }
        break;
      }

      // optional string MULTI_PREDICTOR = 10 [default = "MULTI_PREDICTOR"];
      case 10: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->mutable_multi_predictor()));
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
            this->multi_predictor().data(), static_cast<int>(this->multi_predictor().length()),
            ::google::protobuf::internal::WireFormat::PARSE,
            "caffe2.PredictorConsts.MULTI_PREDICTOR");
        } else {
          goto handle_unusual;
        }
        break;
      }

      // optional string TRAIN_INIT_PLAN_TYPE = 11 [default = "TRAIN_INIT_PLAN_TYPE"];
      case 11: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->mutable_train_init_plan_type()));
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
            this->train_init_plan_type().data(), static_cast<int>(this->train_init_plan_type().length()),
            ::google::protobuf::internal::WireFormat::PARSE,
            "caffe2.PredictorConsts.TRAIN_INIT_PLAN_TYPE");
        } else {
          goto handle_unusual;
        }
        break;
      }

      // optional string TRAIN_PLAN_TYPE = 12 [default = "TRAIN_PLAN_TYPE"];
      case 12: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->mutable_train_plan_type()));
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
            this->train_plan_type().data(), static_cast<int>(this->train_plan_type().length()),
            ::google::protobuf::internal::WireFormat::PARSE,
            "caffe2.PredictorConsts.TRAIN_PLAN_TYPE");
        } else {
          goto handle_unusual;
        }
        break;
      }

      default: {
      handle_unusual:
        if (tag == 0) {
          goto success;
        }
        DO_(::google::protobuf::internal::WireFormat::SkipField(
              input, tag, _internal_metadata_.mutable_unknown_fields()));
        break;
      }
    }
  }
success:
  // @@protoc_insertion_point(parse_success:caffe2.PredictorConsts)
  return true;
failure:
  // @@protoc_insertion_point(parse_failure:caffe2.PredictorConsts)
  return false;
#undef DO_
}

void PredictorConsts::SerializeWithCachedSizes(
    ::google::protobuf::io::CodedOutputStream* output) const {
  // @@protoc_insertion_point(serialize_start:caffe2.PredictorConsts)
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = _has_bits_[0];
  // optional string META_NET_DEF = 1 [default = "!!META_NET_DEF"];
  if (cached_has_bits & 0x00000001u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->meta_net_def().data(), static_cast<int>(this->meta_net_def().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "caffe2.PredictorConsts.META_NET_DEF");
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
      1, this->meta_net_def(), output);
  }

  // optional string PREDICTOR_DBREADER = 2 [default = "!!PREDICTOR_DBREADER"];
  if (cached_has_bits & 0x00000002u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->predictor_dbreader().data(), static_cast<int>(this->predictor_dbreader().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "caffe2.PredictorConsts.PREDICTOR_DBREADER");
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
      2, this->predictor_dbreader(), output);
  }

  // optional string PARAMETERS_BLOB_TYPE = 3 [default = "PARAMETERS_BLOB_TYPE"];
  if (cached_has_bits & 0x00000004u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->parameters_blob_type().data(), static_cast<int>(this->parameters_blob_type().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "caffe2.PredictorConsts.PARAMETERS_BLOB_TYPE");
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
      3, this->parameters_blob_type(), output);
  }

  // optional string INPUTS_BLOB_TYPE = 4 [default = "INPUTS_BLOB_TYPE"];
  if (cached_has_bits & 0x00000008u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->inputs_blob_type().data(), static_cast<int>(this->inputs_blob_type().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "caffe2.PredictorConsts.INPUTS_BLOB_TYPE");
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
      4, this->inputs_blob_type(), output);
  }

  // optional string OUTPUTS_BLOB_TYPE = 5 [default = "OUTPUTS_BLOB_TYPE"];
  if (cached_has_bits & 0x00000010u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->outputs_blob_type().data(), static_cast<int>(this->outputs_blob_type().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "caffe2.PredictorConsts.OUTPUTS_BLOB_TYPE");
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
      5, this->outputs_blob_type(), output);
  }

  // optional string GLOBAL_INIT_NET_TYPE = 6 [default = "GLOBAL_INIT_NET_TYPE"];
  if (cached_has_bits & 0x00000020u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->global_init_net_type().data(), static_cast<int>(this->global_init_net_type().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "caffe2.PredictorConsts.GLOBAL_INIT_NET_TYPE");
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
      6, this->global_init_net_type(), output);
  }

  // optional string PREDICT_INIT_NET_TYPE = 7 [default = "PREDICT_INIT_NET_TYPE"];
  if (cached_has_bits & 0x00000040u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->predict_init_net_type().data(), static_cast<int>(this->predict_init_net_type().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "caffe2.PredictorConsts.PREDICT_INIT_NET_TYPE");
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
      7, this->predict_init_net_type(), output);
  }

  // optional string PREDICT_NET_TYPE = 8 [default = "PREDICT_NET_TYPE"];
  if (cached_has_bits & 0x00000080u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->predict_net_type().data(), static_cast<int>(this->predict_net_type().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "caffe2.PredictorConsts.PREDICT_NET_TYPE");
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
      8, this->predict_net_type(), output);
  }

  // optional string SINGLE_PREDICTOR = 9 [default = "SINGLE_PREDICTOR"];
  if (cached_has_bits & 0x00000100u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->single_predictor().data(), static_cast<int>(this->single_predictor().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "caffe2.PredictorConsts.SINGLE_PREDICTOR");
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
      9, this->single_predictor(), output);
  }

  // optional string MULTI_PREDICTOR = 10 [default = "MULTI_PREDICTOR"];
  if (cached_has_bits & 0x00000200u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->multi_predictor().data(), static_cast<int>(this->multi_predictor().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "caffe2.PredictorConsts.MULTI_PREDICTOR");
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
      10, this->multi_predictor(), output);
  }

  // optional string TRAIN_INIT_PLAN_TYPE = 11 [default = "TRAIN_INIT_PLAN_TYPE"];
  if (cached_has_bits & 0x00000400u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->train_init_plan_type().data(), static_cast<int>(this->train_init_plan_type().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "caffe2.PredictorConsts.TRAIN_INIT_PLAN_TYPE");
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
      11, this->train_init_plan_type(), output);
  }

  // optional string TRAIN_PLAN_TYPE = 12 [default = "TRAIN_PLAN_TYPE"];
  if (cached_has_bits & 0x00000800u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->train_plan_type().data(), static_cast<int>(this->train_plan_type().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "caffe2.PredictorConsts.TRAIN_PLAN_TYPE");
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
      12, this->train_plan_type(), output);
  }

  if (_internal_metadata_.have_unknown_fields()) {
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
        _internal_metadata_.unknown_fields(), output);
  }
  // @@protoc_insertion_point(serialize_end:caffe2.PredictorConsts)
}

::google::protobuf::uint8* PredictorConsts::InternalSerializeWithCachedSizesToArray(
    bool deterministic, ::google::protobuf::uint8* target) const {
  (void)deterministic; // Unused
  // @@protoc_insertion_point(serialize_to_array_start:caffe2.PredictorConsts)
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = _has_bits_[0];
  // optional string META_NET_DEF = 1 [default = "!!META_NET_DEF"];
  if (cached_has_bits & 0x00000001u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->meta_net_def().data(), static_cast<int>(this->meta_net_def().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "caffe2.PredictorConsts.META_NET_DEF");
    target =
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
        1, this->meta_net_def(), target);
  }

  // optional string PREDICTOR_DBREADER = 2 [default = "!!PREDICTOR_DBREADER"];
  if (cached_has_bits & 0x00000002u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->predictor_dbreader().data(), static_cast<int>(this->predictor_dbreader().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "caffe2.PredictorConsts.PREDICTOR_DBREADER");
    target =
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
        2, this->predictor_dbreader(), target);
  }

  // optional string PARAMETERS_BLOB_TYPE = 3 [default = "PARAMETERS_BLOB_TYPE"];
  if (cached_has_bits & 0x00000004u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->parameters_blob_type().data(), static_cast<int>(this->parameters_blob_type().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "caffe2.PredictorConsts.PARAMETERS_BLOB_TYPE");
    target =
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
        3, this->parameters_blob_type(), target);
  }

  // optional string INPUTS_BLOB_TYPE = 4 [default = "INPUTS_BLOB_TYPE"];
  if (cached_has_bits & 0x00000008u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->inputs_blob_type().data(), static_cast<int>(this->inputs_blob_type().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "caffe2.PredictorConsts.INPUTS_BLOB_TYPE");
    target =
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
        4, this->inputs_blob_type(), target);
  }

  // optional string OUTPUTS_BLOB_TYPE = 5 [default = "OUTPUTS_BLOB_TYPE"];
  if (cached_has_bits & 0x00000010u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->outputs_blob_type().data(), static_cast<int>(this->outputs_blob_type().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "caffe2.PredictorConsts.OUTPUTS_BLOB_TYPE");
    target =
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
        5, this->outputs_blob_type(), target);
  }

  // optional string GLOBAL_INIT_NET_TYPE = 6 [default = "GLOBAL_INIT_NET_TYPE"];
  if (cached_has_bits & 0x00000020u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->global_init_net_type().data(), static_cast<int>(this->global_init_net_type().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "caffe2.PredictorConsts.GLOBAL_INIT_NET_TYPE");
    target =
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
        6, this->global_init_net_type(), target);
  }

  // optional string PREDICT_INIT_NET_TYPE = 7 [default = "PREDICT_INIT_NET_TYPE"];
  if (cached_has_bits & 0x00000040u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->predict_init_net_type().data(), static_cast<int>(this->predict_init_net_type().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "caffe2.PredictorConsts.PREDICT_INIT_NET_TYPE");
    target =
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
        7, this->predict_init_net_type(), target);
  }

  // optional string PREDICT_NET_TYPE = 8 [default = "PREDICT_NET_TYPE"];
  if (cached_has_bits & 0x00000080u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->predict_net_type().data(), static_cast<int>(this->predict_net_type().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "caffe2.PredictorConsts.PREDICT_NET_TYPE");
    target =
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
        8, this->predict_net_type(), target);
  }

  // optional string SINGLE_PREDICTOR = 9 [default = "SINGLE_PREDICTOR"];
  if (cached_has_bits & 0x00000100u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->single_predictor().data(), static_cast<int>(this->single_predictor().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "caffe2.PredictorConsts.SINGLE_PREDICTOR");
    target =
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
        9, this->single_predictor(), target);
  }

  // optional string MULTI_PREDICTOR = 10 [default = "MULTI_PREDICTOR"];
  if (cached_has_bits & 0x00000200u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->multi_predictor().data(), static_cast<int>(this->multi_predictor().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "caffe2.PredictorConsts.MULTI_PREDICTOR");
    target =
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
        10, this->multi_predictor(), target);
  }

  // optional string TRAIN_INIT_PLAN_TYPE = 11 [default = "TRAIN_INIT_PLAN_TYPE"];
  if (cached_has_bits & 0x00000400u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->train_init_plan_type().data(), static_cast<int>(this->train_init_plan_type().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "caffe2.PredictorConsts.TRAIN_INIT_PLAN_TYPE");
    target =
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
        11, this->train_init_plan_type(), target);
  }

  // optional string TRAIN_PLAN_TYPE = 12 [default = "TRAIN_PLAN_TYPE"];
  if (cached_has_bits & 0x00000800u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->train_plan_type().data(), static_cast<int>(this->train_plan_type().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "caffe2.PredictorConsts.TRAIN_PLAN_TYPE");
    target =
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
        12, this->train_plan_type(), target);
  }

  if (_internal_metadata_.have_unknown_fields()) {
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields(), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:caffe2.PredictorConsts)
  return target;
}

size_t PredictorConsts::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:caffe2.PredictorConsts)
  size_t total_size = 0;

  if (_internal_metadata_.have_unknown_fields()) {
    total_size +=
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
        _internal_metadata_.unknown_fields());
  }
  if (_has_bits_[0 / 32] & 255u) {
    // optional string META_NET_DEF = 1 [default = "!!META_NET_DEF"];
    if (has_meta_net_def()) {
      total_size += 1 +
        ::google::protobuf::internal::WireFormatLite::StringSize(
          this->meta_net_def());
    }

    // optional string PREDICTOR_DBREADER = 2 [default = "!!PREDICTOR_DBREADER"];
    if (has_predictor_dbreader()) {
      total_size += 1 +
        ::google::protobuf::internal::WireFormatLite::StringSize(
          this->predictor_dbreader());
    }

    // optional string PARAMETERS_BLOB_TYPE = 3 [default = "PARAMETERS_BLOB_TYPE"];
    if (has_parameters_blob_type()) {
      total_size += 1 +
        ::google::protobuf::internal::WireFormatLite::StringSize(
          this->parameters_blob_type());
    }

    // optional string INPUTS_BLOB_TYPE = 4 [default = "INPUTS_BLOB_TYPE"];
    if (has_inputs_blob_type()) {
      total_size += 1 +
        ::google::protobuf::internal::WireFormatLite::StringSize(
          this->inputs_blob_type());
    }

    // optional string OUTPUTS_BLOB_TYPE = 5 [default = "OUTPUTS_BLOB_TYPE"];
    if (has_outputs_blob_type()) {
      total_size += 1 +
        ::google::protobuf::internal::WireFormatLite::StringSize(
          this->outputs_blob_type());
    }

    // optional string GLOBAL_INIT_NET_TYPE = 6 [default = "GLOBAL_INIT_NET_TYPE"];
    if (has_global_init_net_type()) {
      total_size += 1 +
        ::google::protobuf::internal::WireFormatLite::StringSize(
          this->global_init_net_type());
    }

    // optional string PREDICT_INIT_NET_TYPE = 7 [default = "PREDICT_INIT_NET_TYPE"];
    if (has_predict_init_net_type()) {
      total_size += 1 +
        ::google::protobuf::internal::WireFormatLite::StringSize(
          this->predict_init_net_type());
    }

    // optional string PREDICT_NET_TYPE = 8 [default = "PREDICT_NET_TYPE"];
    if (has_predict_net_type()) {
      total_size += 1 +
        ::google::protobuf::internal::WireFormatLite::StringSize(
          this->predict_net_type());
    }

  }
  if (_has_bits_[8 / 32] & 3840u) {
    // optional string SINGLE_PREDICTOR = 9 [default = "SINGLE_PREDICTOR"];
    if (has_single_predictor()) {
      total_size += 1 +
        ::google::protobuf::internal::WireFormatLite::StringSize(
          this->single_predictor());
    }

    // optional string MULTI_PREDICTOR = 10 [default = "MULTI_PREDICTOR"];
    if (has_multi_predictor()) {
      total_size += 1 +
        ::google::protobuf::internal::WireFormatLite::StringSize(
          this->multi_predictor());
    }

    // optional string TRAIN_INIT_PLAN_TYPE = 11 [default = "TRAIN_INIT_PLAN_TYPE"];
    if (has_train_init_plan_type()) {
      total_size += 1 +
        ::google::protobuf::internal::WireFormatLite::StringSize(
          this->train_init_plan_type());
    }

    // optional string TRAIN_PLAN_TYPE = 12 [default = "TRAIN_PLAN_TYPE"];
    if (has_train_plan_type()) {
      total_size += 1 +
        ::google::protobuf::internal::WireFormatLite::StringSize(
          this->train_plan_type());
    }

  }
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void PredictorConsts::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:caffe2.PredictorConsts)
  GOOGLE_DCHECK_NE(&from, this);
  const PredictorConsts* source =
      ::google::protobuf::internal::DynamicCastToGenerated<const PredictorConsts>(
          &from);
  if (source == NULL) {
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:caffe2.PredictorConsts)
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  } else {
  // @@protoc_insertion_point(generalized_merge_from_cast_success:caffe2.PredictorConsts)
    MergeFrom(*source);
  }
}

void PredictorConsts::MergeFrom(const PredictorConsts& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:caffe2.PredictorConsts)
  GOOGLE_DCHECK_NE(&from, this);
  _internal_metadata_.MergeFrom(from._internal_metadata_);
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = from._has_bits_[0];
  if (cached_has_bits & 255u) {
    if (cached_has_bits & 0x00000001u) {
      set_has_meta_net_def();
      meta_net_def_.AssignWithDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_meta_net_def_.get(), from.meta_net_def_);
    }
    if (cached_has_bits & 0x00000002u) {
      set_has_predictor_dbreader();
      predictor_dbreader_.AssignWithDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_predictor_dbreader_.get(), from.predictor_dbreader_);
    }
    if (cached_has_bits & 0x00000004u) {
      set_has_parameters_blob_type();
      parameters_blob_type_.AssignWithDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_parameters_blob_type_.get(), from.parameters_blob_type_);
    }
    if (cached_has_bits & 0x00000008u) {
      set_has_inputs_blob_type();
      inputs_blob_type_.AssignWithDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_inputs_blob_type_.get(), from.inputs_blob_type_);
    }
    if (cached_has_bits & 0x00000010u) {
      set_has_outputs_blob_type();
      outputs_blob_type_.AssignWithDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_outputs_blob_type_.get(), from.outputs_blob_type_);
    }
    if (cached_has_bits & 0x00000020u) {
      set_has_global_init_net_type();
      global_init_net_type_.AssignWithDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_global_init_net_type_.get(), from.global_init_net_type_);
    }
    if (cached_has_bits & 0x00000040u) {
      set_has_predict_init_net_type();
      predict_init_net_type_.AssignWithDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_predict_init_net_type_.get(), from.predict_init_net_type_);
    }
    if (cached_has_bits & 0x00000080u) {
      set_has_predict_net_type();
      predict_net_type_.AssignWithDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_predict_net_type_.get(), from.predict_net_type_);
    }
  }
  if (cached_has_bits & 3840u) {
    if (cached_has_bits & 0x00000100u) {
      set_has_single_predictor();
      single_predictor_.AssignWithDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_single_predictor_.get(), from.single_predictor_);
    }
    if (cached_has_bits & 0x00000200u) {
      set_has_multi_predictor();
      multi_predictor_.AssignWithDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_multi_predictor_.get(), from.multi_predictor_);
    }
    if (cached_has_bits & 0x00000400u) {
      set_has_train_init_plan_type();
      train_init_plan_type_.AssignWithDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_train_init_plan_type_.get(), from.train_init_plan_type_);
    }
    if (cached_has_bits & 0x00000800u) {
      set_has_train_plan_type();
      train_plan_type_.AssignWithDefault(&::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_train_plan_type_.get(), from.train_plan_type_);
    }
  }
}

void PredictorConsts::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:caffe2.PredictorConsts)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

void PredictorConsts::CopyFrom(const PredictorConsts& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:caffe2.PredictorConsts)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool PredictorConsts::IsInitialized() const {
  return true;
}

void PredictorConsts::Swap(PredictorConsts* other) {
  if (other == this) return;
  InternalSwap(other);
}
void PredictorConsts::InternalSwap(PredictorConsts* other) {
  using std::swap;
  meta_net_def_.Swap(&other->meta_net_def_, &::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_meta_net_def_.get(),
    GetArenaNoVirtual());
  predictor_dbreader_.Swap(&other->predictor_dbreader_, &::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_predictor_dbreader_.get(),
    GetArenaNoVirtual());
  parameters_blob_type_.Swap(&other->parameters_blob_type_, &::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_parameters_blob_type_.get(),
    GetArenaNoVirtual());
  inputs_blob_type_.Swap(&other->inputs_blob_type_, &::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_inputs_blob_type_.get(),
    GetArenaNoVirtual());
  outputs_blob_type_.Swap(&other->outputs_blob_type_, &::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_outputs_blob_type_.get(),
    GetArenaNoVirtual());
  global_init_net_type_.Swap(&other->global_init_net_type_, &::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_global_init_net_type_.get(),
    GetArenaNoVirtual());
  predict_init_net_type_.Swap(&other->predict_init_net_type_, &::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_predict_init_net_type_.get(),
    GetArenaNoVirtual());
  predict_net_type_.Swap(&other->predict_net_type_, &::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_predict_net_type_.get(),
    GetArenaNoVirtual());
  single_predictor_.Swap(&other->single_predictor_, &::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_single_predictor_.get(),
    GetArenaNoVirtual());
  multi_predictor_.Swap(&other->multi_predictor_, &::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_multi_predictor_.get(),
    GetArenaNoVirtual());
  train_init_plan_type_.Swap(&other->train_init_plan_type_, &::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_train_init_plan_type_.get(),
    GetArenaNoVirtual());
  train_plan_type_.Swap(&other->train_plan_type_, &::caffe2::PredictorConsts::_i_give_permission_to_break_this_code_default_train_plan_type_.get(),
    GetArenaNoVirtual());
  swap(_has_bits_[0], other->_has_bits_[0]);
  _internal_metadata_.Swap(&other->_internal_metadata_);
}

::google::protobuf::Metadata PredictorConsts::GetMetadata() const {
  protobuf_caffe2_2fproto_2fpredictor_5fconsts_2eproto::protobuf_AssignDescriptorsOnce();
  return ::protobuf_caffe2_2fproto_2fpredictor_5fconsts_2eproto::file_level_metadata[kIndexInFileMessages];
}


// @@protoc_insertion_point(namespace_scope)
}  // namespace caffe2
namespace google {
namespace protobuf {
template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::caffe2::PredictorConsts* Arena::CreateMaybeMessage< ::caffe2::PredictorConsts >(Arena* arena) {
  return Arena::CreateInternal< ::caffe2::PredictorConsts >(arena);
}
}  // namespace protobuf
}  // namespace google

// @@protoc_insertion_point(global_scope)
