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

#ifndef PROTOBUF_communication_5fcan_2eproto__INCLUDED
#define PROTOBUF_communication_5fcan_2eproto__INCLUDED

#include <string>

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

#if GOOGLE_PROTOBUF_VERSION < 3005000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers.  Please update
#error your headers.
#endif
#if 3005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers.  Please
#error regenerate this file with a newer version of protoc.
#endif

#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_table_driven.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/metadata.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h>  // IWYU pragma: export
#include <google/protobuf/extension_set.h>  // IWYU pragma: export
#include <google/protobuf/unknown_field_set.h>
// @@protoc_insertion_point(includes)

namespace protobuf_communication_5fcan_2eproto {
// Internal implementation detail -- do not use these members.
struct TableStruct {
  static const ::google::protobuf::internal::ParseTableField entries[];
  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  static const ::google::protobuf::internal::ParseTable schema[2];
  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  static const ::google::protobuf::internal::SerializationTable serialization_table[];
  static const ::google::protobuf::uint32 offsets[];
};
void AddDescriptors();
void InitDefaultsCommunication_can_parameterImpl();
void InitDefaultsCommunication_can_parameter();
void InitDefaultsCommunication_can_parameter_allImpl();
void InitDefaultsCommunication_can_parameter_all();
inline void InitDefaults() {
  InitDefaultsCommunication_can_parameter();
  InitDefaultsCommunication_can_parameter_all();
}
}  // namespace protobuf_communication_5fcan_2eproto
namespace Communication_can_proto {
class Communication_can_parameter;
class Communication_can_parameterDefaultTypeInternal;
extern Communication_can_parameterDefaultTypeInternal _Communication_can_parameter_default_instance_;
class Communication_can_parameter_all;
class Communication_can_parameter_allDefaultTypeInternal;
extern Communication_can_parameter_allDefaultTypeInternal _Communication_can_parameter_all_default_instance_;
}  // namespace Communication_can_proto
namespace Communication_can_proto {

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

class Communication_can_parameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Communication_can_proto.Communication_can_parameter) */ {
 public:
  Communication_can_parameter();
  virtual ~Communication_can_parameter();

  Communication_can_parameter(const Communication_can_parameter& from);

  inline Communication_can_parameter& operator=(const Communication_can_parameter& from) {
    CopyFrom(from);
    return *this;
  }
  #if LANG_CXX11
  Communication_can_parameter(Communication_can_parameter&& from) noexcept
    : Communication_can_parameter() {
    *this = ::std::move(from);
  }

  inline Communication_can_parameter& operator=(Communication_can_parameter&& from) noexcept {
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
      if (this != &from) InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }
  #endif
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
    return _internal_metadata_.unknown_fields();
  }
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
    return _internal_metadata_.mutable_unknown_fields();
  }

  static const ::google::protobuf::Descriptor* descriptor();
  static const Communication_can_parameter& default_instance();

  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
  static inline const Communication_can_parameter* internal_default_instance() {
    return reinterpret_cast<const Communication_can_parameter*>(
               &_Communication_can_parameter_default_instance_);
  }
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
    0;

  void Swap(Communication_can_parameter* other);
  friend void swap(Communication_can_parameter& a, Communication_can_parameter& b) {
    a.Swap(&b);
  }

  // implements Message ----------------------------------------------

  inline Communication_can_parameter* New() const PROTOBUF_FINAL { return New(NULL); }

  Communication_can_parameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  void CopyFrom(const Communication_can_parameter& from);
  void MergeFrom(const Communication_can_parameter& from);
  void Clear() PROTOBUF_FINAL;
  bool IsInitialized() const PROTOBUF_FINAL;

  size_t ByteSizeLong() const PROTOBUF_FINAL;
  bool MergePartialFromCodedStream(
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  void SerializeWithCachedSizes(
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const PROTOBUF_FINAL;
  void InternalSwap(Communication_can_parameter* other);
  private:
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
    return NULL;
  }
  inline void* MaybeArenaPtr() const {
    return NULL;
  }
  public:

  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  // required string can_serial_number = 2;
  bool has_can_serial_number() const;
  void clear_can_serial_number();
  static const int kCanSerialNumberFieldNumber = 2;
  const ::std::string& can_serial_number() const;
  void set_can_serial_number(const ::std::string& value);
  #if LANG_CXX11
  void set_can_serial_number(::std::string&& value);
  #endif
  void set_can_serial_number(const char* value);
  void set_can_serial_number(const char* value, size_t size);
  ::std::string* mutable_can_serial_number();
  ::std::string* release_can_serial_number();
  void set_allocated_can_serial_number(::std::string* can_serial_number);

  // required int32 can_device_id = 1;
  bool has_can_device_id() const;
  void clear_can_device_id();
  static const int kCanDeviceIdFieldNumber = 1;
  ::google::protobuf::int32 can_device_id() const;
  void set_can_device_id(::google::protobuf::int32 value);

  // required int32 can_baud_rate = 5 [default = 1000];
  bool has_can_baud_rate() const;
  void clear_can_baud_rate();
  static const int kCanBaudRateFieldNumber = 5;
  ::google::protobuf::int32 can_baud_rate() const;
  void set_can_baud_rate(::google::protobuf::int32 value);

  // required int32 can_device_type = 3 [default = 4];
  bool has_can_device_type() const;
  void clear_can_device_type();
  static const int kCanDeviceTypeFieldNumber = 3;
  ::google::protobuf::int32 can_device_type() const;
  void set_can_device_type(::google::protobuf::int32 value);

  // required int32 can_port_id = 4 [default = 2];
  bool has_can_port_id() const;
  void clear_can_port_id();
  static const int kCanPortIdFieldNumber = 4;
  ::google::protobuf::int32 can_port_id() const;
  void set_can_port_id(::google::protobuf::int32 value);

  // @@protoc_insertion_point(class_scope:Communication_can_proto.Communication_can_parameter)
 private:
  void set_has_can_device_id();
  void clear_has_can_device_id();
  void set_has_can_serial_number();
  void clear_has_can_serial_number();
  void set_has_can_device_type();
  void clear_has_can_device_type();
  void set_has_can_port_id();
  void clear_has_can_port_id();
  void set_has_can_baud_rate();
  void clear_has_can_baud_rate();

  // helper for ByteSizeLong()
  size_t RequiredFieldsByteSizeFallback() const;

  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  ::google::protobuf::internal::HasBits<1> _has_bits_;
  mutable int _cached_size_;
  ::google::protobuf::internal::ArenaStringPtr can_serial_number_;
  ::google::protobuf::int32 can_device_id_;
  ::google::protobuf::int32 can_baud_rate_;
  ::google::protobuf::int32 can_device_type_;
  ::google::protobuf::int32 can_port_id_;
  friend struct ::protobuf_communication_5fcan_2eproto::TableStruct;
  friend void ::protobuf_communication_5fcan_2eproto::InitDefaultsCommunication_can_parameterImpl();
};
// -------------------------------------------------------------------

class Communication_can_parameter_all : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Communication_can_proto.Communication_can_parameter_all) */ {
 public:
  Communication_can_parameter_all();
  virtual ~Communication_can_parameter_all();

  Communication_can_parameter_all(const Communication_can_parameter_all& from);

  inline Communication_can_parameter_all& operator=(const Communication_can_parameter_all& from) {
    CopyFrom(from);
    return *this;
  }
  #if LANG_CXX11
  Communication_can_parameter_all(Communication_can_parameter_all&& from) noexcept
    : Communication_can_parameter_all() {
    *this = ::std::move(from);
  }

  inline Communication_can_parameter_all& operator=(Communication_can_parameter_all&& from) noexcept {
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
      if (this != &from) InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }
  #endif
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
    return _internal_metadata_.unknown_fields();
  }
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
    return _internal_metadata_.mutable_unknown_fields();
  }

  static const ::google::protobuf::Descriptor* descriptor();
  static const Communication_can_parameter_all& default_instance();

  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
  static inline const Communication_can_parameter_all* internal_default_instance() {
    return reinterpret_cast<const Communication_can_parameter_all*>(
               &_Communication_can_parameter_all_default_instance_);
  }
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
    1;

  void Swap(Communication_can_parameter_all* other);
  friend void swap(Communication_can_parameter_all& a, Communication_can_parameter_all& b) {
    a.Swap(&b);
  }

  // implements Message ----------------------------------------------

  inline Communication_can_parameter_all* New() const PROTOBUF_FINAL { return New(NULL); }

  Communication_can_parameter_all* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  void CopyFrom(const Communication_can_parameter_all& from);
  void MergeFrom(const Communication_can_parameter_all& from);
  void Clear() PROTOBUF_FINAL;
  bool IsInitialized() const PROTOBUF_FINAL;

  size_t ByteSizeLong() const PROTOBUF_FINAL;
  bool MergePartialFromCodedStream(
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  void SerializeWithCachedSizes(
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const PROTOBUF_FINAL;
  void InternalSwap(Communication_can_parameter_all* other);
  private:
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
    return NULL;
  }
  inline void* MaybeArenaPtr() const {
    return NULL;
  }
  public:

  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  // repeated .Communication_can_proto.Communication_can_parameter communication_can_parameters = 1;
  int communication_can_parameters_size() const;
  void clear_communication_can_parameters();
  static const int kCommunicationCanParametersFieldNumber = 1;
  const ::Communication_can_proto::Communication_can_parameter& communication_can_parameters(int index) const;
  ::Communication_can_proto::Communication_can_parameter* mutable_communication_can_parameters(int index);
  ::Communication_can_proto::Communication_can_parameter* add_communication_can_parameters();
  ::google::protobuf::RepeatedPtrField< ::Communication_can_proto::Communication_can_parameter >*
      mutable_communication_can_parameters();
  const ::google::protobuf::RepeatedPtrField< ::Communication_can_proto::Communication_can_parameter >&
      communication_can_parameters() const;

  // @@protoc_insertion_point(class_scope:Communication_can_proto.Communication_can_parameter_all)
 private:

  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  ::google::protobuf::internal::HasBits<1> _has_bits_;
  mutable int _cached_size_;
  ::google::protobuf::RepeatedPtrField< ::Communication_can_proto::Communication_can_parameter > communication_can_parameters_;
  friend struct ::protobuf_communication_5fcan_2eproto::TableStruct;
  friend void ::protobuf_communication_5fcan_2eproto::InitDefaultsCommunication_can_parameter_allImpl();
};
// ===================================================================


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

#ifdef __GNUC__
  #pragma GCC diagnostic push
  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif  // __GNUC__
// Communication_can_parameter

// required int32 can_device_id = 1;
inline bool Communication_can_parameter::has_can_device_id() const {
  return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void Communication_can_parameter::set_has_can_device_id() {
  _has_bits_[0] |= 0x00000002u;
}
inline void Communication_can_parameter::clear_has_can_device_id() {
  _has_bits_[0] &= ~0x00000002u;
}
inline void Communication_can_parameter::clear_can_device_id() {
  can_device_id_ = 0;
  clear_has_can_device_id();
}
inline ::google::protobuf::int32 Communication_can_parameter::can_device_id() const {
  // @@protoc_insertion_point(field_get:Communication_can_proto.Communication_can_parameter.can_device_id)
  return can_device_id_;
}
inline void Communication_can_parameter::set_can_device_id(::google::protobuf::int32 value) {
  set_has_can_device_id();
  can_device_id_ = value;
  // @@protoc_insertion_point(field_set:Communication_can_proto.Communication_can_parameter.can_device_id)
}

// required string can_serial_number = 2;
inline bool Communication_can_parameter::has_can_serial_number() const {
  return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void Communication_can_parameter::set_has_can_serial_number() {
  _has_bits_[0] |= 0x00000001u;
}
inline void Communication_can_parameter::clear_has_can_serial_number() {
  _has_bits_[0] &= ~0x00000001u;
}
inline void Communication_can_parameter::clear_can_serial_number() {
  can_serial_number_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  clear_has_can_serial_number();
}
inline const ::std::string& Communication_can_parameter::can_serial_number() const {
  // @@protoc_insertion_point(field_get:Communication_can_proto.Communication_can_parameter.can_serial_number)
  return can_serial_number_.GetNoArena();
}
inline void Communication_can_parameter::set_can_serial_number(const ::std::string& value) {
  set_has_can_serial_number();
  can_serial_number_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:Communication_can_proto.Communication_can_parameter.can_serial_number)
}
#if LANG_CXX11
inline void Communication_can_parameter::set_can_serial_number(::std::string&& value) {
  set_has_can_serial_number();
  can_serial_number_.SetNoArena(
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  // @@protoc_insertion_point(field_set_rvalue:Communication_can_proto.Communication_can_parameter.can_serial_number)
}
#endif
inline void Communication_can_parameter::set_can_serial_number(const char* value) {
  GOOGLE_DCHECK(value != NULL);
  set_has_can_serial_number();
  can_serial_number_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:Communication_can_proto.Communication_can_parameter.can_serial_number)
}
inline void Communication_can_parameter::set_can_serial_number(const char* value, size_t size) {
  set_has_can_serial_number();
  can_serial_number_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:Communication_can_proto.Communication_can_parameter.can_serial_number)
}
inline ::std::string* Communication_can_parameter::mutable_can_serial_number() {
  set_has_can_serial_number();
  // @@protoc_insertion_point(field_mutable:Communication_can_proto.Communication_can_parameter.can_serial_number)
  return can_serial_number_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* Communication_can_parameter::release_can_serial_number() {
  // @@protoc_insertion_point(field_release:Communication_can_proto.Communication_can_parameter.can_serial_number)
  clear_has_can_serial_number();
  return can_serial_number_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void Communication_can_parameter::set_allocated_can_serial_number(::std::string* can_serial_number) {
  if (can_serial_number != NULL) {
    set_has_can_serial_number();
  } else {
    clear_has_can_serial_number();
  }
  can_serial_number_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), can_serial_number);
  // @@protoc_insertion_point(field_set_allocated:Communication_can_proto.Communication_can_parameter.can_serial_number)
}

// required int32 can_device_type = 3 [default = 4];
inline bool Communication_can_parameter::has_can_device_type() const {
  return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void Communication_can_parameter::set_has_can_device_type() {
  _has_bits_[0] |= 0x00000008u;
}
inline void Communication_can_parameter::clear_has_can_device_type() {
  _has_bits_[0] &= ~0x00000008u;
}
inline void Communication_can_parameter::clear_can_device_type() {
  can_device_type_ = 4;
  clear_has_can_device_type();
}
inline ::google::protobuf::int32 Communication_can_parameter::can_device_type() const {
  // @@protoc_insertion_point(field_get:Communication_can_proto.Communication_can_parameter.can_device_type)
  return can_device_type_;
}
inline void Communication_can_parameter::set_can_device_type(::google::protobuf::int32 value) {
  set_has_can_device_type();
  can_device_type_ = value;
  // @@protoc_insertion_point(field_set:Communication_can_proto.Communication_can_parameter.can_device_type)
}

// required int32 can_port_id = 4 [default = 2];
inline bool Communication_can_parameter::has_can_port_id() const {
  return (_has_bits_[0] & 0x00000010u) != 0;
}
inline void Communication_can_parameter::set_has_can_port_id() {
  _has_bits_[0] |= 0x00000010u;
}
inline void Communication_can_parameter::clear_has_can_port_id() {
  _has_bits_[0] &= ~0x00000010u;
}
inline void Communication_can_parameter::clear_can_port_id() {
  can_port_id_ = 2;
  clear_has_can_port_id();
}
inline ::google::protobuf::int32 Communication_can_parameter::can_port_id() const {
  // @@protoc_insertion_point(field_get:Communication_can_proto.Communication_can_parameter.can_port_id)
  return can_port_id_;
}
inline void Communication_can_parameter::set_can_port_id(::google::protobuf::int32 value) {
  set_has_can_port_id();
  can_port_id_ = value;
  // @@protoc_insertion_point(field_set:Communication_can_proto.Communication_can_parameter.can_port_id)
}

// required int32 can_baud_rate = 5 [default = 1000];
inline bool Communication_can_parameter::has_can_baud_rate() const {
  return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void Communication_can_parameter::set_has_can_baud_rate() {
  _has_bits_[0] |= 0x00000004u;
}
inline void Communication_can_parameter::clear_has_can_baud_rate() {
  _has_bits_[0] &= ~0x00000004u;
}
inline void Communication_can_parameter::clear_can_baud_rate() {
  can_baud_rate_ = 1000;
  clear_has_can_baud_rate();
}
inline ::google::protobuf::int32 Communication_can_parameter::can_baud_rate() const {
  // @@protoc_insertion_point(field_get:Communication_can_proto.Communication_can_parameter.can_baud_rate)
  return can_baud_rate_;
}
inline void Communication_can_parameter::set_can_baud_rate(::google::protobuf::int32 value) {
  set_has_can_baud_rate();
  can_baud_rate_ = value;
  // @@protoc_insertion_point(field_set:Communication_can_proto.Communication_can_parameter.can_baud_rate)
}

// -------------------------------------------------------------------

// Communication_can_parameter_all

// repeated .Communication_can_proto.Communication_can_parameter communication_can_parameters = 1;
inline int Communication_can_parameter_all::communication_can_parameters_size() const {
  return communication_can_parameters_.size();
}
inline void Communication_can_parameter_all::clear_communication_can_parameters() {
  communication_can_parameters_.Clear();
}
inline const ::Communication_can_proto::Communication_can_parameter& Communication_can_parameter_all::communication_can_parameters(int index) const {
  // @@protoc_insertion_point(field_get:Communication_can_proto.Communication_can_parameter_all.communication_can_parameters)
  return communication_can_parameters_.Get(index);
}
inline ::Communication_can_proto::Communication_can_parameter* Communication_can_parameter_all::mutable_communication_can_parameters(int index) {
  // @@protoc_insertion_point(field_mutable:Communication_can_proto.Communication_can_parameter_all.communication_can_parameters)
  return communication_can_parameters_.Mutable(index);
}
inline ::Communication_can_proto::Communication_can_parameter* Communication_can_parameter_all::add_communication_can_parameters() {
  // @@protoc_insertion_point(field_add:Communication_can_proto.Communication_can_parameter_all.communication_can_parameters)
  return communication_can_parameters_.Add();
}
inline ::google::protobuf::RepeatedPtrField< ::Communication_can_proto::Communication_can_parameter >*
Communication_can_parameter_all::mutable_communication_can_parameters() {
  // @@protoc_insertion_point(field_mutable_list:Communication_can_proto.Communication_can_parameter_all.communication_can_parameters)
  return &communication_can_parameters_;
}
inline const ::google::protobuf::RepeatedPtrField< ::Communication_can_proto::Communication_can_parameter >&
Communication_can_parameter_all::communication_can_parameters() const {
  // @@protoc_insertion_point(field_list:Communication_can_proto.Communication_can_parameter_all.communication_can_parameters)
  return communication_can_parameters_;
}

#ifdef __GNUC__
  #pragma GCC diagnostic pop
#endif  // __GNUC__
// -------------------------------------------------------------------


// @@protoc_insertion_point(namespace_scope)

}  // namespace Communication_can_proto

// @@protoc_insertion_point(global_scope)

#endif  // PROTOBUF_communication_5fcan_2eproto__INCLUDED
