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

#include "motor_manager.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 Motor_manager_proto {
class Motor_manager_parameterDefaultTypeInternal {
 public:
  ::google::protobuf::internal::ExplicitlyConstructed<Motor_manager_parameter>
      _instance;
} _Motor_manager_parameter_default_instance_;
class Motor_manager_parameter_allDefaultTypeInternal {
 public:
  ::google::protobuf::internal::ExplicitlyConstructed<Motor_manager_parameter_all>
      _instance;
} _Motor_manager_parameter_all_default_instance_;
}  // namespace Motor_manager_proto
namespace protobuf_motor_5fmanager_2eproto {
void InitDefaultsMotor_manager_parameterImpl() {
  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 = &::Motor_manager_proto::_Motor_manager_parameter_default_instance_;
    new (ptr) ::Motor_manager_proto::Motor_manager_parameter();
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  }
  ::Motor_manager_proto::Motor_manager_parameter::InitAsDefaultInstance();
}

void InitDefaultsMotor_manager_parameter() {
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsMotor_manager_parameterImpl);
}

void InitDefaultsMotor_manager_parameter_allImpl() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
#else
  ::google::protobuf::internal::InitProtobufDefaults();
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  protobuf_motor_5fmanager_2eproto::InitDefaultsMotor_manager_parameter();
  {
    void* ptr = &::Motor_manager_proto::_Motor_manager_parameter_all_default_instance_;
    new (ptr) ::Motor_manager_proto::Motor_manager_parameter_all();
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  }
  ::Motor_manager_proto::Motor_manager_parameter_all::InitAsDefaultInstance();
}

void InitDefaultsMotor_manager_parameter_all() {
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsMotor_manager_parameter_allImpl);
}

::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(::Motor_manager_proto::Motor_manager_parameter, _has_bits_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Motor_manager_proto::Motor_manager_parameter, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Motor_manager_proto::Motor_manager_parameter, motor_device_id_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Motor_manager_proto::Motor_manager_parameter, can_device_id_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Motor_manager_proto::Motor_manager_parameter, can_port_id_),
  0,
  1,
  2,
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Motor_manager_proto::Motor_manager_parameter_all, _has_bits_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Motor_manager_proto::Motor_manager_parameter_all, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Motor_manager_proto::Motor_manager_parameter_all, motor_manager_parameters_),
  ~0u,
};
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  { 0, 8, sizeof(::Motor_manager_proto::Motor_manager_parameter)},
  { 11, 17, sizeof(::Motor_manager_proto::Motor_manager_parameter_all)},
};

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

void protobuf_AssignDescriptors() {
  AddDescriptors();
  ::google::protobuf::MessageFactory* factory = NULL;
  AssignDescriptors(
      "motor_manager.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\023motor_manager.proto\022\023Motor_manager_pro"
      "to\"^\n\027Motor_manager_parameter\022\027\n\017motor_d"
      "evice_id\030\001 \002(\005\022\025\n\rcan_device_id\030\002 \002(\005\022\023\n"
      "\013can_port_id\030\003 \002(\005\"m\n\033Motor_manager_para"
      "meter_all\022N\n\030motor_manager_parameters\030\001 "
      "\003(\0132,.Motor_manager_proto.Motor_manager_"
      "parameter"
  };
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
      descriptor, 249);
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
    "motor_manager.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_motor_5fmanager_2eproto
namespace Motor_manager_proto {

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

void Motor_manager_parameter::InitAsDefaultInstance() {
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Motor_manager_parameter::kMotorDeviceIdFieldNumber;
const int Motor_manager_parameter::kCanDeviceIdFieldNumber;
const int Motor_manager_parameter::kCanPortIdFieldNumber;
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900

Motor_manager_parameter::Motor_manager_parameter()
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
    ::protobuf_motor_5fmanager_2eproto::InitDefaultsMotor_manager_parameter();
  }
  SharedCtor();
  // @@protoc_insertion_point(constructor:Motor_manager_proto.Motor_manager_parameter)
}
Motor_manager_parameter::Motor_manager_parameter(const Motor_manager_parameter& from)
  : ::google::protobuf::Message(),
      _internal_metadata_(NULL),
      _has_bits_(from._has_bits_),
      _cached_size_(0) {
  _internal_metadata_.MergeFrom(from._internal_metadata_);
  ::memcpy(&motor_device_id_, &from.motor_device_id_,
    static_cast<size_t>(reinterpret_cast<char*>(&can_port_id_) -
    reinterpret_cast<char*>(&motor_device_id_)) + sizeof(can_port_id_));
  // @@protoc_insertion_point(copy_constructor:Motor_manager_proto.Motor_manager_parameter)
}

void Motor_manager_parameter::SharedCtor() {
  _cached_size_ = 0;
  ::memset(&motor_device_id_, 0, static_cast<size_t>(
      reinterpret_cast<char*>(&can_port_id_) -
      reinterpret_cast<char*>(&motor_device_id_)) + sizeof(can_port_id_));
}

Motor_manager_parameter::~Motor_manager_parameter() {
  // @@protoc_insertion_point(destructor:Motor_manager_proto.Motor_manager_parameter)
  SharedDtor();
}

void Motor_manager_parameter::SharedDtor() {
}

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

const Motor_manager_parameter& Motor_manager_parameter::default_instance() {
  ::protobuf_motor_5fmanager_2eproto::InitDefaultsMotor_manager_parameter();
  return *internal_default_instance();
}

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

void Motor_manager_parameter::Clear() {
// @@protoc_insertion_point(message_clear_start:Motor_manager_proto.Motor_manager_parameter)
  ::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) {
    ::memset(&motor_device_id_, 0, static_cast<size_t>(
        reinterpret_cast<char*>(&can_port_id_) -
        reinterpret_cast<char*>(&motor_device_id_)) + sizeof(can_port_id_));
  }
  _has_bits_.Clear();
  _internal_metadata_.Clear();
}

bool Motor_manager_parameter::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:Motor_manager_proto.Motor_manager_parameter)
  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 int32 motor_device_id = 1;
      case 1: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
          set_has_motor_device_id();
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
                 input, &motor_device_id_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // required int32 can_device_id = 2;
      case 2: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
          set_has_can_device_id();
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
                 input, &can_device_id_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // required int32 can_port_id = 3;
      case 3: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
          set_has_can_port_id();
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
                 input, &can_port_id_)));
        } 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:Motor_manager_proto.Motor_manager_parameter)
  return true;
failure:
  // @@protoc_insertion_point(parse_failure:Motor_manager_proto.Motor_manager_parameter)
  return false;
#undef DO_
}

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

  cached_has_bits = _has_bits_[0];
  // required int32 motor_device_id = 1;
  if (cached_has_bits & 0x00000001u) {
    ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->motor_device_id(), output);
  }

  // required int32 can_device_id = 2;
  if (cached_has_bits & 0x00000002u) {
    ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->can_device_id(), output);
  }

  // required int32 can_port_id = 3;
  if (cached_has_bits & 0x00000004u) {
    ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->can_port_id(), output);
  }

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

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

  cached_has_bits = _has_bits_[0];
  // required int32 motor_device_id = 1;
  if (cached_has_bits & 0x00000001u) {
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->motor_device_id(), target);
  }

  // required int32 can_device_id = 2;
  if (cached_has_bits & 0x00000002u) {
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->can_device_id(), target);
  }

  // required int32 can_port_id = 3;
  if (cached_has_bits & 0x00000004u) {
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->can_port_id(), 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:Motor_manager_proto.Motor_manager_parameter)
  return target;
}

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

  if (has_motor_device_id()) {
    // required int32 motor_device_id = 1;
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::Int32Size(
        this->motor_device_id());
  }

  if (has_can_device_id()) {
    // required int32 can_device_id = 2;
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::Int32Size(
        this->can_device_id());
  }

  if (has_can_port_id()) {
    // required int32 can_port_id = 3;
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::Int32Size(
        this->can_port_id());
  }

  return total_size;
}
size_t Motor_manager_parameter::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Motor_manager_proto.Motor_manager_parameter)
  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 int32 motor_device_id = 1;
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::Int32Size(
        this->motor_device_id());

    // required int32 can_device_id = 2;
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::Int32Size(
        this->can_device_id());

    // required int32 can_port_id = 3;
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::Int32Size(
        this->can_port_id());

  } 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 Motor_manager_parameter::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:Motor_manager_proto.Motor_manager_parameter)
  GOOGLE_DCHECK_NE(&from, this);
  const Motor_manager_parameter* source =
      ::google::protobuf::internal::DynamicCastToGenerated<const Motor_manager_parameter>(
          &from);
  if (source == NULL) {
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:Motor_manager_proto.Motor_manager_parameter)
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  } else {
  // @@protoc_insertion_point(generalized_merge_from_cast_success:Motor_manager_proto.Motor_manager_parameter)
    MergeFrom(*source);
  }
}

void Motor_manager_parameter::MergeFrom(const Motor_manager_parameter& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Motor_manager_proto.Motor_manager_parameter)
  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) {
      motor_device_id_ = from.motor_device_id_;
    }
    if (cached_has_bits & 0x00000002u) {
      can_device_id_ = from.can_device_id_;
    }
    if (cached_has_bits & 0x00000004u) {
      can_port_id_ = from.can_port_id_;
    }
    _has_bits_[0] |= cached_has_bits;
  }
}

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

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

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

void Motor_manager_parameter::Swap(Motor_manager_parameter* other) {
  if (other == this) return;
  InternalSwap(other);
}
void Motor_manager_parameter::InternalSwap(Motor_manager_parameter* other) {
  using std::swap;
  swap(motor_device_id_, other->motor_device_id_);
  swap(can_device_id_, other->can_device_id_);
  swap(can_port_id_, other->can_port_id_);
  swap(_has_bits_[0], other->_has_bits_[0]);
  _internal_metadata_.Swap(&other->_internal_metadata_);
  swap(_cached_size_, other->_cached_size_);
}

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


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

void Motor_manager_parameter_all::InitAsDefaultInstance() {
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Motor_manager_parameter_all::kMotorManagerParametersFieldNumber;
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900

Motor_manager_parameter_all::Motor_manager_parameter_all()
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
    ::protobuf_motor_5fmanager_2eproto::InitDefaultsMotor_manager_parameter_all();
  }
  SharedCtor();
  // @@protoc_insertion_point(constructor:Motor_manager_proto.Motor_manager_parameter_all)
}
Motor_manager_parameter_all::Motor_manager_parameter_all(const Motor_manager_parameter_all& from)
  : ::google::protobuf::Message(),
      _internal_metadata_(NULL),
      _has_bits_(from._has_bits_),
      _cached_size_(0),
      motor_manager_parameters_(from.motor_manager_parameters_) {
  _internal_metadata_.MergeFrom(from._internal_metadata_);
  // @@protoc_insertion_point(copy_constructor:Motor_manager_proto.Motor_manager_parameter_all)
}

void Motor_manager_parameter_all::SharedCtor() {
  _cached_size_ = 0;
}

Motor_manager_parameter_all::~Motor_manager_parameter_all() {
  // @@protoc_insertion_point(destructor:Motor_manager_proto.Motor_manager_parameter_all)
  SharedDtor();
}

void Motor_manager_parameter_all::SharedDtor() {
}

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

const Motor_manager_parameter_all& Motor_manager_parameter_all::default_instance() {
  ::protobuf_motor_5fmanager_2eproto::InitDefaultsMotor_manager_parameter_all();
  return *internal_default_instance();
}

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

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

  motor_manager_parameters_.Clear();
  _has_bits_.Clear();
  _internal_metadata_.Clear();
}

bool Motor_manager_parameter_all::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:Motor_manager_proto.Motor_manager_parameter_all)
  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)) {
      // repeated .Motor_manager_proto.Motor_manager_parameter motor_manager_parameters = 1;
      case 1: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_motor_manager_parameters()));
        } 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:Motor_manager_proto.Motor_manager_parameter_all)
  return true;
failure:
  // @@protoc_insertion_point(parse_failure:Motor_manager_proto.Motor_manager_parameter_all)
  return false;
#undef DO_
}

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

  // repeated .Motor_manager_proto.Motor_manager_parameter motor_manager_parameters = 1;
  for (unsigned int i = 0,
      n = static_cast<unsigned int>(this->motor_manager_parameters_size()); i < n; i++) {
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
      1, this->motor_manager_parameters(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:Motor_manager_proto.Motor_manager_parameter_all)
}

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

  // repeated .Motor_manager_proto.Motor_manager_parameter motor_manager_parameters = 1;
  for (unsigned int i = 0,
      n = static_cast<unsigned int>(this->motor_manager_parameters_size()); i < n; i++) {
    target = ::google::protobuf::internal::WireFormatLite::
      InternalWriteMessageToArray(
        1, this->motor_manager_parameters(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:Motor_manager_proto.Motor_manager_parameter_all)
  return target;
}

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

  if (_internal_metadata_.have_unknown_fields()) {
    total_size +=
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
        _internal_metadata_.unknown_fields());
  }
  // repeated .Motor_manager_proto.Motor_manager_parameter motor_manager_parameters = 1;
  {
    unsigned int count = static_cast<unsigned int>(this->motor_manager_parameters_size());
    total_size += 1UL * count;
    for (unsigned int i = 0; i < count; i++) {
      total_size +=
        ::google::protobuf::internal::WireFormatLite::MessageSize(
          this->motor_manager_parameters(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 Motor_manager_parameter_all::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:Motor_manager_proto.Motor_manager_parameter_all)
  GOOGLE_DCHECK_NE(&from, this);
  const Motor_manager_parameter_all* source =
      ::google::protobuf::internal::DynamicCastToGenerated<const Motor_manager_parameter_all>(
          &from);
  if (source == NULL) {
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:Motor_manager_proto.Motor_manager_parameter_all)
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  } else {
  // @@protoc_insertion_point(generalized_merge_from_cast_success:Motor_manager_proto.Motor_manager_parameter_all)
    MergeFrom(*source);
  }
}

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

  motor_manager_parameters_.MergeFrom(from.motor_manager_parameters_);
}

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

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

bool Motor_manager_parameter_all::IsInitialized() const {
  if (!::google::protobuf::internal::AllAreInitialized(this->motor_manager_parameters())) return false;
  return true;
}

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

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


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

// @@protoc_insertion_point(global_scope)
