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

#include "grapher_cfg.pb.h"

#include <algorithm>

#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#include <google/protobuf/stubs/once.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 grapher {
class locatefuncDefaultTypeInternal {
 public:
  ::google::protobuf::internal::ExplicitlyConstructed<locatefunc>
      _instance;
} _locatefunc_default_instance_;
class grapherCfgDefaultTypeInternal {
 public:
  ::google::protobuf::internal::ExplicitlyConstructed<grapherCfg>
      _instance;
} _grapherCfg_default_instance_;
}  // namespace grapher
namespace protobuf_grapher_5fcfg_2eproto {
void InitDefaultslocatefuncImpl() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
#else
  ::google::protobuf::internal::InitProtobufDefaults();
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  {
    void* ptr = &::grapher::_locatefunc_default_instance_;
    new (ptr) ::grapher::locatefunc();
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  }
  ::grapher::locatefunc::InitAsDefaultInstance();
}

void InitDefaultslocatefunc() {
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultslocatefuncImpl);
}

void InitDefaultsgrapherCfgImpl() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
#else
  ::google::protobuf::internal::InitProtobufDefaults();
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  protobuf_grapher_5fcfg_2eproto::InitDefaultslocatefunc();
  {
    void* ptr = &::grapher::_grapherCfg_default_instance_;
    new (ptr) ::grapher::grapherCfg();
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  }
  ::grapher::grapherCfg::InitAsDefaultInstance();
}

void InitDefaultsgrapherCfg() {
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsgrapherCfgImpl);
}

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

const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::grapher::locatefunc, _has_bits_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::grapher::locatefunc, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::grapher::locatefunc, type_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::grapher::locatefunc, tfheaderid_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::grapher::locatefunc, tfid_),
  0,
  1,
  2,
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::grapher::grapherCfg, _has_bits_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::grapher::grapherCfg, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::grapher::grapherCfg, scanid_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::grapher::grapherCfg, grapher_functions_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::grapher::grapherCfg, locate_functions_),
  0,
  ~0u,
  ~0u,
};
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  { 0, 8, sizeof(::grapher::locatefunc)},
  { 11, 19, sizeof(::grapher::grapherCfg)},
};

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

void protobuf_AssignDescriptors() {
  AddDescriptors();
  ::google::protobuf::MessageFactory* factory = NULL;
  AssignDescriptors(
      "grapher_cfg.proto", schemas, file_default_instances, TableStruct::offsets, factory,
      file_level_metadata, NULL, NULL);
}

void protobuf_AssignDescriptorsOnce() {
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  ::google::protobuf::GoogleOnceInit(&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, 2);
}

void AddDescriptorsImpl() {
  InitDefaults();
  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
      "\n\021grapher_cfg.proto\022\007grapher\"<\n\nlocatefu"
      "nc\022\014\n\004type\030\001 \002(\t\022\022\n\ntfHeaderID\030\002 \002(\t\022\014\n\004"
      "tfID\030\003 \002(\t\"{\n\ngrapherCfg\022\016\n\006scanID\030\001 \002(\t"
      "\022.\n\021grapher_functions\030\002 \003(\0132\023.grapher.lo"
      "catefunc\022-\n\020locate_functions\030\003 \003(\0132\023.gra"
      "pher.locatefunc"
  };
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
      descriptor, 215);
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
    "grapher_cfg.proto", &protobuf_RegisterTypes);
}

void AddDescriptors() {
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
}
// Force AddDescriptors() to be called at dynamic initialization time.
struct StaticDescriptorInitializer {
  StaticDescriptorInitializer() {
    AddDescriptors();
  }
} static_descriptor_initializer;
}  // namespace protobuf_grapher_5fcfg_2eproto
namespace grapher {

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

void locatefunc::InitAsDefaultInstance() {
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int locatefunc::kTypeFieldNumber;
const int locatefunc::kTfHeaderIDFieldNumber;
const int locatefunc::kTfIDFieldNumber;
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900

locatefunc::locatefunc()
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
    ::protobuf_grapher_5fcfg_2eproto::InitDefaultslocatefunc();
  }
  SharedCtor();
  // @@protoc_insertion_point(constructor:grapher.locatefunc)
}
locatefunc::locatefunc(const locatefunc& from)
  : ::google::protobuf::Message(),
      _internal_metadata_(NULL),
      _has_bits_(from._has_bits_),
      _cached_size_(0) {
  _internal_metadata_.MergeFrom(from._internal_metadata_);
  type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  if (from.has_type()) {
    type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_);
  }
  tfheaderid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  if (from.has_tfheaderid()) {
    tfheaderid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tfheaderid_);
  }
  tfid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  if (from.has_tfid()) {
    tfid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tfid_);
  }
  // @@protoc_insertion_point(copy_constructor:grapher.locatefunc)
}

void locatefunc::SharedCtor() {
  _cached_size_ = 0;
  type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  tfheaderid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  tfid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}

locatefunc::~locatefunc() {
  // @@protoc_insertion_point(destructor:grapher.locatefunc)
  SharedDtor();
}

void locatefunc::SharedDtor() {
  type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  tfheaderid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  tfid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}

void locatefunc::SetCachedSize(int size) const {
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  _cached_size_ = size;
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* locatefunc::descriptor() {
  ::protobuf_grapher_5fcfg_2eproto::protobuf_AssignDescriptorsOnce();
  return ::protobuf_grapher_5fcfg_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}

const locatefunc& locatefunc::default_instance() {
  ::protobuf_grapher_5fcfg_2eproto::InitDefaultslocatefunc();
  return *internal_default_instance();
}

locatefunc* locatefunc::New(::google::protobuf::Arena* arena) const {
  locatefunc* n = new locatefunc;
  if (arena != NULL) {
    arena->Own(n);
  }
  return n;
}

void locatefunc::Clear() {
// @@protoc_insertion_point(message_clear_start:grapher.locatefunc)
  ::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 & 7u) {
    if (cached_has_bits & 0x00000001u) {
      GOOGLE_DCHECK(!type_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
      (*type_.UnsafeRawStringPointer())->clear();
    }
    if (cached_has_bits & 0x00000002u) {
      GOOGLE_DCHECK(!tfheaderid_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
      (*tfheaderid_.UnsafeRawStringPointer())->clear();
    }
    if (cached_has_bits & 0x00000004u) {
      GOOGLE_DCHECK(!tfid_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
      (*tfid_.UnsafeRawStringPointer())->clear();
    }
  }
  _has_bits_.Clear();
  _internal_metadata_.Clear();
}

bool locatefunc::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:grapher.locatefunc)
  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)) {
      // required string type = 1;
      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_type()));
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
            this->type().data(), static_cast<int>(this->type().length()),
            ::google::protobuf::internal::WireFormat::PARSE,
            "grapher.locatefunc.type");
        } else {
          goto handle_unusual;
        }
        break;
      }

      // required string tfHeaderID = 2;
      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_tfheaderid()));
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
            this->tfheaderid().data(), static_cast<int>(this->tfheaderid().length()),
            ::google::protobuf::internal::WireFormat::PARSE,
            "grapher.locatefunc.tfHeaderID");
        } else {
          goto handle_unusual;
        }
        break;
      }

      // required string tfID = 3;
      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_tfid()));
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
            this->tfid().data(), static_cast<int>(this->tfid().length()),
            ::google::protobuf::internal::WireFormat::PARSE,
            "grapher.locatefunc.tfID");
        } 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:grapher.locatefunc)
  return true;
failure:
  // @@protoc_insertion_point(parse_failure:grapher.locatefunc)
  return false;
#undef DO_
}

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

  cached_has_bits = _has_bits_[0];
  // required string type = 1;
  if (cached_has_bits & 0x00000001u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->type().data(), static_cast<int>(this->type().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "grapher.locatefunc.type");
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
      1, this->type(), output);
  }

  // required string tfHeaderID = 2;
  if (cached_has_bits & 0x00000002u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->tfheaderid().data(), static_cast<int>(this->tfheaderid().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "grapher.locatefunc.tfHeaderID");
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
      2, this->tfheaderid(), output);
  }

  // required string tfID = 3;
  if (cached_has_bits & 0x00000004u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->tfid().data(), static_cast<int>(this->tfid().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "grapher.locatefunc.tfID");
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
      3, this->tfid(), output);
  }

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

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

  cached_has_bits = _has_bits_[0];
  // required string type = 1;
  if (cached_has_bits & 0x00000001u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->type().data(), static_cast<int>(this->type().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "grapher.locatefunc.type");
    target =
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
        1, this->type(), target);
  }

  // required string tfHeaderID = 2;
  if (cached_has_bits & 0x00000002u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->tfheaderid().data(), static_cast<int>(this->tfheaderid().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "grapher.locatefunc.tfHeaderID");
    target =
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
        2, this->tfheaderid(), target);
  }

  // required string tfID = 3;
  if (cached_has_bits & 0x00000004u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->tfid().data(), static_cast<int>(this->tfid().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "grapher.locatefunc.tfID");
    target =
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
        3, this->tfid(), 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:grapher.locatefunc)
  return target;
}

size_t locatefunc::RequiredFieldsByteSizeFallback() const {
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:grapher.locatefunc)
  size_t total_size = 0;

  if (has_type()) {
    // required string type = 1;
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::StringSize(
        this->type());
  }

  if (has_tfheaderid()) {
    // required string tfHeaderID = 2;
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::StringSize(
        this->tfheaderid());
  }

  if (has_tfid()) {
    // required string tfID = 3;
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::StringSize(
        this->tfid());
  }

  return total_size;
}
size_t locatefunc::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:grapher.locatefunc)
  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] & 0x00000007) ^ 0x00000007) == 0) {  // All required fields are present.
    // required string type = 1;
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::StringSize(
        this->type());

    // required string tfHeaderID = 2;
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::StringSize(
        this->tfheaderid());

    // required string tfID = 3;
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::StringSize(
        this->tfid());

  } else {
    total_size += RequiredFieldsByteSizeFallback();
  }
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  _cached_size_ = cached_size;
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
  return total_size;
}

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

void locatefunc::MergeFrom(const locatefunc& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:grapher.locatefunc)
  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 & 7u) {
    if (cached_has_bits & 0x00000001u) {
      set_has_type();
      type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_);
    }
    if (cached_has_bits & 0x00000002u) {
      set_has_tfheaderid();
      tfheaderid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tfheaderid_);
    }
    if (cached_has_bits & 0x00000004u) {
      set_has_tfid();
      tfid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tfid_);
    }
  }
}

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

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

bool locatefunc::IsInitialized() const {
  if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
  return true;
}

void locatefunc::Swap(locatefunc* other) {
  if (other == this) return;
  InternalSwap(other);
}
void locatefunc::InternalSwap(locatefunc* other) {
  using std::swap;
  type_.Swap(&other->type_);
  tfheaderid_.Swap(&other->tfheaderid_);
  tfid_.Swap(&other->tfid_);
  swap(_has_bits_[0], other->_has_bits_[0]);
  _internal_metadata_.Swap(&other->_internal_metadata_);
  swap(_cached_size_, other->_cached_size_);
}

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


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

void grapherCfg::InitAsDefaultInstance() {
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int grapherCfg::kScanIDFieldNumber;
const int grapherCfg::kGrapherFunctionsFieldNumber;
const int grapherCfg::kLocateFunctionsFieldNumber;
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900

grapherCfg::grapherCfg()
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
    ::protobuf_grapher_5fcfg_2eproto::InitDefaultsgrapherCfg();
  }
  SharedCtor();
  // @@protoc_insertion_point(constructor:grapher.grapherCfg)
}
grapherCfg::grapherCfg(const grapherCfg& from)
  : ::google::protobuf::Message(),
      _internal_metadata_(NULL),
      _has_bits_(from._has_bits_),
      _cached_size_(0),
      grapher_functions_(from.grapher_functions_),
      locate_functions_(from.locate_functions_) {
  _internal_metadata_.MergeFrom(from._internal_metadata_);
  scanid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  if (from.has_scanid()) {
    scanid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.scanid_);
  }
  // @@protoc_insertion_point(copy_constructor:grapher.grapherCfg)
}

void grapherCfg::SharedCtor() {
  _cached_size_ = 0;
  scanid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}

grapherCfg::~grapherCfg() {
  // @@protoc_insertion_point(destructor:grapher.grapherCfg)
  SharedDtor();
}

void grapherCfg::SharedDtor() {
  scanid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}

void grapherCfg::SetCachedSize(int size) const {
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  _cached_size_ = size;
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* grapherCfg::descriptor() {
  ::protobuf_grapher_5fcfg_2eproto::protobuf_AssignDescriptorsOnce();
  return ::protobuf_grapher_5fcfg_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}

const grapherCfg& grapherCfg::default_instance() {
  ::protobuf_grapher_5fcfg_2eproto::InitDefaultsgrapherCfg();
  return *internal_default_instance();
}

grapherCfg* grapherCfg::New(::google::protobuf::Arena* arena) const {
  grapherCfg* n = new grapherCfg;
  if (arena != NULL) {
    arena->Own(n);
  }
  return n;
}

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

  grapher_functions_.Clear();
  locate_functions_.Clear();
  cached_has_bits = _has_bits_[0];
  if (cached_has_bits & 0x00000001u) {
    GOOGLE_DCHECK(!scanid_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
    (*scanid_.UnsafeRawStringPointer())->clear();
  }
  _has_bits_.Clear();
  _internal_metadata_.Clear();
}

bool grapherCfg::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:grapher.grapherCfg)
  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)) {
      // required string scanID = 1;
      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_scanid()));
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
            this->scanid().data(), static_cast<int>(this->scanid().length()),
            ::google::protobuf::internal::WireFormat::PARSE,
            "grapher.grapherCfg.scanID");
        } else {
          goto handle_unusual;
        }
        break;
      }

      // repeated .grapher.locatefunc grapher_functions = 2;
      case 2: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_grapher_functions()));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // repeated .grapher.locatefunc locate_functions = 3;
      case 3: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_locate_functions()));
        } 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:grapher.grapherCfg)
  return true;
failure:
  // @@protoc_insertion_point(parse_failure:grapher.grapherCfg)
  return false;
#undef DO_
}

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

  cached_has_bits = _has_bits_[0];
  // required string scanID = 1;
  if (cached_has_bits & 0x00000001u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->scanid().data(), static_cast<int>(this->scanid().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "grapher.grapherCfg.scanID");
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
      1, this->scanid(), output);
  }

  // repeated .grapher.locatefunc grapher_functions = 2;
  for (unsigned int i = 0,
      n = static_cast<unsigned int>(this->grapher_functions_size()); i < n; i++) {
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
      2, this->grapher_functions(static_cast<int>(i)), output);
  }

  // repeated .grapher.locatefunc locate_functions = 3;
  for (unsigned int i = 0,
      n = static_cast<unsigned int>(this->locate_functions_size()); i < n; i++) {
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
      3, this->locate_functions(static_cast<int>(i)), output);
  }

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

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

  cached_has_bits = _has_bits_[0];
  // required string scanID = 1;
  if (cached_has_bits & 0x00000001u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->scanid().data(), static_cast<int>(this->scanid().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "grapher.grapherCfg.scanID");
    target =
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
        1, this->scanid(), target);
  }

  // repeated .grapher.locatefunc grapher_functions = 2;
  for (unsigned int i = 0,
      n = static_cast<unsigned int>(this->grapher_functions_size()); i < n; i++) {
    target = ::google::protobuf::internal::WireFormatLite::
      InternalWriteMessageToArray(
        2, this->grapher_functions(static_cast<int>(i)), deterministic, target);
  }

  // repeated .grapher.locatefunc locate_functions = 3;
  for (unsigned int i = 0,
      n = static_cast<unsigned int>(this->locate_functions_size()); i < n; i++) {
    target = ::google::protobuf::internal::WireFormatLite::
      InternalWriteMessageToArray(
        3, this->locate_functions(static_cast<int>(i)), deterministic, 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:grapher.grapherCfg)
  return target;
}

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

  if (_internal_metadata_.have_unknown_fields()) {
    total_size +=
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
        _internal_metadata_.unknown_fields());
  }
  // required string scanID = 1;
  if (has_scanid()) {
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::StringSize(
        this->scanid());
  }
  // repeated .grapher.locatefunc grapher_functions = 2;
  {
    unsigned int count = static_cast<unsigned int>(this->grapher_functions_size());
    total_size += 1UL * count;
    for (unsigned int i = 0; i < count; i++) {
      total_size +=
        ::google::protobuf::internal::WireFormatLite::MessageSize(
          this->grapher_functions(static_cast<int>(i)));
    }
  }

  // repeated .grapher.locatefunc locate_functions = 3;
  {
    unsigned int count = static_cast<unsigned int>(this->locate_functions_size());
    total_size += 1UL * count;
    for (unsigned int i = 0; i < count; i++) {
      total_size +=
        ::google::protobuf::internal::WireFormatLite::MessageSize(
          this->locate_functions(static_cast<int>(i)));
    }
  }

  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  _cached_size_ = cached_size;
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
  return total_size;
}

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

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

  grapher_functions_.MergeFrom(from.grapher_functions_);
  locate_functions_.MergeFrom(from.locate_functions_);
  if (from.has_scanid()) {
    set_has_scanid();
    scanid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.scanid_);
  }
}

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

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

bool grapherCfg::IsInitialized() const {
  if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
  if (!::google::protobuf::internal::AllAreInitialized(this->grapher_functions())) return false;
  if (!::google::protobuf::internal::AllAreInitialized(this->locate_functions())) return false;
  return true;
}

void grapherCfg::Swap(grapherCfg* other) {
  if (other == this) return;
  InternalSwap(other);
}
void grapherCfg::InternalSwap(grapherCfg* other) {
  using std::swap;
  grapher_functions_.InternalSwap(&other->grapher_functions_);
  locate_functions_.InternalSwap(&other->locate_functions_);
  scanid_.Swap(&other->scanid_);
  swap(_has_bits_[0], other->_has_bits_[0]);
  _internal_metadata_.Swap(&other->_internal_metadata_);
  swap(_cached_size_, other->_cached_size_);
}

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


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

// @@protoc_insertion_point(global_scope)
