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

#include "communication_can.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 Communication_can_proto {
class Communication_can_parameterDefaultTypeInternal {
 public:
  ::google::protobuf::internal::ExplicitlyConstructed<Communication_can_parameter>
      _instance;
} _Communication_can_parameter_default_instance_;
class Communication_can_parameter_allDefaultTypeInternal {
 public:
  ::google::protobuf::internal::ExplicitlyConstructed<Communication_can_parameter_all>
      _instance;
} _Communication_can_parameter_all_default_instance_;
}  // namespace Communication_can_proto
namespace protobuf_communication_5fcan_2eproto {
void InitDefaultsCommunication_can_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 = &::Communication_can_proto::_Communication_can_parameter_default_instance_;
    new (ptr) ::Communication_can_proto::Communication_can_parameter();
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  }
  ::Communication_can_proto::Communication_can_parameter::InitAsDefaultInstance();
}

void InitDefaultsCommunication_can_parameter() {
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCommunication_can_parameterImpl);
}

void InitDefaultsCommunication_can_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_communication_5fcan_2eproto::InitDefaultsCommunication_can_parameter();
  {
    void* ptr = &::Communication_can_proto::_Communication_can_parameter_all_default_instance_;
    new (ptr) ::Communication_can_proto::Communication_can_parameter_all();
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  }
  ::Communication_can_proto::Communication_can_parameter_all::InitAsDefaultInstance();
}

void InitDefaultsCommunication_can_parameter_all() {
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCommunication_can_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(::Communication_can_proto::Communication_can_parameter, _has_bits_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Communication_can_proto::Communication_can_parameter, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Communication_can_proto::Communication_can_parameter, can_device_id_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Communication_can_proto::Communication_can_parameter, can_serial_number_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Communication_can_proto::Communication_can_parameter, can_device_type_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Communication_can_proto::Communication_can_parameter, can_port_id_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Communication_can_proto::Communication_can_parameter, can_baud_rate_),
  1,
  0,
  3,
  4,
  2,
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Communication_can_proto::Communication_can_parameter_all, _has_bits_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Communication_can_proto::Communication_can_parameter_all, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Communication_can_proto::Communication_can_parameter_all, communication_can_parameters_),
  ~0u,
};
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  { 0, 10, sizeof(::Communication_can_proto::Communication_can_parameter)},
  { 15, 21, sizeof(::Communication_can_proto::Communication_can_parameter_all)},
};

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

void protobuf_AssignDescriptors() {
  AddDescriptors();
  ::google::protobuf::MessageFactory* factory = NULL;
  AssignDescriptors(
      "communication_can.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\027communication_can.proto\022\027Communication"
      "_can_proto\"\240\001\n\033Communication_can_paramet"
      "er\022\025\n\rcan_device_id\030\001 \002(\005\022\031\n\021can_serial_"
      "number\030\002 \002(\t\022\032\n\017can_device_type\030\003 \002(\005:\0014"
      "\022\026\n\013can_port_id\030\004 \002(\005:\0012\022\033\n\rcan_baud_rat"
      "e\030\005 \002(\005:\0041000\"}\n\037Communication_can_param"
      "eter_all\022Z\n\034communication_can_parameters"
      "\030\001 \003(\01324.Communication_can_proto.Communi"
      "cation_can_parameter"
  };
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
      descriptor, 340);
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
    "communication_can.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_communication_5fcan_2eproto
namespace Communication_can_proto {

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

void Communication_can_parameter::InitAsDefaultInstance() {
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Communication_can_parameter::kCanDeviceIdFieldNumber;
const int Communication_can_parameter::kCanSerialNumberFieldNumber;
const int Communication_can_parameter::kCanDeviceTypeFieldNumber;
const int Communication_can_parameter::kCanPortIdFieldNumber;
const int Communication_can_parameter::kCanBaudRateFieldNumber;
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900

Communication_can_parameter::Communication_can_parameter()
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
    ::protobuf_communication_5fcan_2eproto::InitDefaultsCommunication_can_parameter();
  }
  SharedCtor();
  // @@protoc_insertion_point(constructor:Communication_can_proto.Communication_can_parameter)
}
Communication_can_parameter::Communication_can_parameter(const Communication_can_parameter& from)
  : ::google::protobuf::Message(),
      _internal_metadata_(NULL),
      _has_bits_(from._has_bits_),
      _cached_size_(0) {
  _internal_metadata_.MergeFrom(from._internal_metadata_);
  can_serial_number_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  if (from.has_can_serial_number()) {
    can_serial_number_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.can_serial_number_);
  }
  ::memcpy(&can_device_id_, &from.can_device_id_,
    static_cast<size_t>(reinterpret_cast<char*>(&can_port_id_) -
    reinterpret_cast<char*>(&can_device_id_)) + sizeof(can_port_id_));
  // @@protoc_insertion_point(copy_constructor:Communication_can_proto.Communication_can_parameter)
}

void Communication_can_parameter::SharedCtor() {
  _cached_size_ = 0;
  can_serial_number_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  can_device_id_ = 0;
  can_baud_rate_ = 1000;
  can_device_type_ = 4;
  can_port_id_ = 2;
}

Communication_can_parameter::~Communication_can_parameter() {
  // @@protoc_insertion_point(destructor:Communication_can_proto.Communication_can_parameter)
  SharedDtor();
}

void Communication_can_parameter::SharedDtor() {
  can_serial_number_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}

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

const Communication_can_parameter& Communication_can_parameter::default_instance() {
  ::protobuf_communication_5fcan_2eproto::InitDefaultsCommunication_can_parameter();
  return *internal_default_instance();
}

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

void Communication_can_parameter::Clear() {
// @@protoc_insertion_point(message_clear_start:Communication_can_proto.Communication_can_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 & 0x00000001u) {
    GOOGLE_DCHECK(!can_serial_number_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
    (*can_serial_number_.UnsafeRawStringPointer())->clear();
  }
  if (cached_has_bits & 30u) {
    can_device_id_ = 0;
    can_baud_rate_ = 1000;
    can_device_type_ = 4;
    can_port_id_ = 2;
  }
  _has_bits_.Clear();
  _internal_metadata_.Clear();
}

bool Communication_can_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:Communication_can_proto.Communication_can_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 can_device_id = 1;
      case 1: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 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 string can_serial_number = 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_can_serial_number()));
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
            this->can_serial_number().data(), static_cast<int>(this->can_serial_number().length()),
            ::google::protobuf::internal::WireFormat::PARSE,
            "Communication_can_proto.Communication_can_parameter.can_serial_number");
        } else {
          goto handle_unusual;
        }
        break;
      }

      // required int32 can_device_type = 3 [default = 4];
      case 3: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
          set_has_can_device_type();
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
                 input, &can_device_type_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // required int32 can_port_id = 4 [default = 2];
      case 4: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 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;
      }

      // required int32 can_baud_rate = 5 [default = 1000];
      case 5: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
          set_has_can_baud_rate();
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
                 input, &can_baud_rate_)));
        } 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:Communication_can_proto.Communication_can_parameter)
  return true;
failure:
  // @@protoc_insertion_point(parse_failure:Communication_can_proto.Communication_can_parameter)
  return false;
#undef DO_
}

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

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

  // required string can_serial_number = 2;
  if (cached_has_bits & 0x00000001u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->can_serial_number().data(), static_cast<int>(this->can_serial_number().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "Communication_can_proto.Communication_can_parameter.can_serial_number");
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
      2, this->can_serial_number(), output);
  }

  // required int32 can_device_type = 3 [default = 4];
  if (cached_has_bits & 0x00000008u) {
    ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->can_device_type(), output);
  }

  // required int32 can_port_id = 4 [default = 2];
  if (cached_has_bits & 0x00000010u) {
    ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->can_port_id(), output);
  }

  // required int32 can_baud_rate = 5 [default = 1000];
  if (cached_has_bits & 0x00000004u) {
    ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->can_baud_rate(), output);
  }

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

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

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

  // required string can_serial_number = 2;
  if (cached_has_bits & 0x00000001u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->can_serial_number().data(), static_cast<int>(this->can_serial_number().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "Communication_can_proto.Communication_can_parameter.can_serial_number");
    target =
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
        2, this->can_serial_number(), target);
  }

  // required int32 can_device_type = 3 [default = 4];
  if (cached_has_bits & 0x00000008u) {
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->can_device_type(), target);
  }

  // required int32 can_port_id = 4 [default = 2];
  if (cached_has_bits & 0x00000010u) {
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->can_port_id(), target);
  }

  // required int32 can_baud_rate = 5 [default = 1000];
  if (cached_has_bits & 0x00000004u) {
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->can_baud_rate(), 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:Communication_can_proto.Communication_can_parameter)
  return target;
}

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

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

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

  if (has_can_baud_rate()) {
    // required int32 can_baud_rate = 5 [default = 1000];
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::Int32Size(
        this->can_baud_rate());
  }

  if (has_can_device_type()) {
    // required int32 can_device_type = 3 [default = 4];
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::Int32Size(
        this->can_device_type());
  }

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

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

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

    // required int32 can_baud_rate = 5 [default = 1000];
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::Int32Size(
        this->can_baud_rate());

    // required int32 can_device_type = 3 [default = 4];
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::Int32Size(
        this->can_device_type());

    // required int32 can_port_id = 4 [default = 2];
    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 Communication_can_parameter::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:Communication_can_proto.Communication_can_parameter)
  GOOGLE_DCHECK_NE(&from, this);
  const Communication_can_parameter* source =
      ::google::protobuf::internal::DynamicCastToGenerated<const Communication_can_parameter>(
          &from);
  if (source == NULL) {
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:Communication_can_proto.Communication_can_parameter)
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  } else {
  // @@protoc_insertion_point(generalized_merge_from_cast_success:Communication_can_proto.Communication_can_parameter)
    MergeFrom(*source);
  }
}

void Communication_can_parameter::MergeFrom(const Communication_can_parameter& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Communication_can_proto.Communication_can_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 & 31u) {
    if (cached_has_bits & 0x00000001u) {
      set_has_can_serial_number();
      can_serial_number_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.can_serial_number_);
    }
    if (cached_has_bits & 0x00000002u) {
      can_device_id_ = from.can_device_id_;
    }
    if (cached_has_bits & 0x00000004u) {
      can_baud_rate_ = from.can_baud_rate_;
    }
    if (cached_has_bits & 0x00000008u) {
      can_device_type_ = from.can_device_type_;
    }
    if (cached_has_bits & 0x00000010u) {
      can_port_id_ = from.can_port_id_;
    }
    _has_bits_[0] |= cached_has_bits;
  }
}

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

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

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

void Communication_can_parameter::Swap(Communication_can_parameter* other) {
  if (other == this) return;
  InternalSwap(other);
}
void Communication_can_parameter::InternalSwap(Communication_can_parameter* other) {
  using std::swap;
  can_serial_number_.Swap(&other->can_serial_number_);
  swap(can_device_id_, other->can_device_id_);
  swap(can_baud_rate_, other->can_baud_rate_);
  swap(can_device_type_, other->can_device_type_);
  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 Communication_can_parameter::GetMetadata() const {
  protobuf_communication_5fcan_2eproto::protobuf_AssignDescriptorsOnce();
  return ::protobuf_communication_5fcan_2eproto::file_level_metadata[kIndexInFileMessages];
}


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

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

Communication_can_parameter_all::Communication_can_parameter_all()
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
    ::protobuf_communication_5fcan_2eproto::InitDefaultsCommunication_can_parameter_all();
  }
  SharedCtor();
  // @@protoc_insertion_point(constructor:Communication_can_proto.Communication_can_parameter_all)
}
Communication_can_parameter_all::Communication_can_parameter_all(const Communication_can_parameter_all& from)
  : ::google::protobuf::Message(),
      _internal_metadata_(NULL),
      _has_bits_(from._has_bits_),
      _cached_size_(0),
      communication_can_parameters_(from.communication_can_parameters_) {
  _internal_metadata_.MergeFrom(from._internal_metadata_);
  // @@protoc_insertion_point(copy_constructor:Communication_can_proto.Communication_can_parameter_all)
}

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

Communication_can_parameter_all::~Communication_can_parameter_all() {
  // @@protoc_insertion_point(destructor:Communication_can_proto.Communication_can_parameter_all)
  SharedDtor();
}

void Communication_can_parameter_all::SharedDtor() {
}

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

const Communication_can_parameter_all& Communication_can_parameter_all::default_instance() {
  ::protobuf_communication_5fcan_2eproto::InitDefaultsCommunication_can_parameter_all();
  return *internal_default_instance();
}

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

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

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

bool Communication_can_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:Communication_can_proto.Communication_can_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 .Communication_can_proto.Communication_can_parameter communication_can_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_communication_can_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:Communication_can_proto.Communication_can_parameter_all)
  return true;
failure:
  // @@protoc_insertion_point(parse_failure:Communication_can_proto.Communication_can_parameter_all)
  return false;
#undef DO_
}

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

  // repeated .Communication_can_proto.Communication_can_parameter communication_can_parameters = 1;
  for (unsigned int i = 0,
      n = static_cast<unsigned int>(this->communication_can_parameters_size()); i < n; i++) {
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
      1, this->communication_can_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:Communication_can_proto.Communication_can_parameter_all)
}

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

  // repeated .Communication_can_proto.Communication_can_parameter communication_can_parameters = 1;
  for (unsigned int i = 0,
      n = static_cast<unsigned int>(this->communication_can_parameters_size()); i < n; i++) {
    target = ::google::protobuf::internal::WireFormatLite::
      InternalWriteMessageToArray(
        1, this->communication_can_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:Communication_can_proto.Communication_can_parameter_all)
  return target;
}

size_t Communication_can_parameter_all::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Communication_can_proto.Communication_can_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 .Communication_can_proto.Communication_can_parameter communication_can_parameters = 1;
  {
    unsigned int count = static_cast<unsigned int>(this->communication_can_parameters_size());
    total_size += 1UL * count;
    for (unsigned int i = 0; i < count; i++) {
      total_size +=
        ::google::protobuf::internal::WireFormatLite::MessageSize(
          this->communication_can_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 Communication_can_parameter_all::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:Communication_can_proto.Communication_can_parameter_all)
  GOOGLE_DCHECK_NE(&from, this);
  const Communication_can_parameter_all* source =
      ::google::protobuf::internal::DynamicCastToGenerated<const Communication_can_parameter_all>(
          &from);
  if (source == NULL) {
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:Communication_can_proto.Communication_can_parameter_all)
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  } else {
  // @@protoc_insertion_point(generalized_merge_from_cast_success:Communication_can_proto.Communication_can_parameter_all)
    MergeFrom(*source);
  }
}

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

  communication_can_parameters_.MergeFrom(from.communication_can_parameters_);
}

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

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

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

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

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


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

// @@protoc_insertion_point(global_scope)
