4 #ifndef PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fcan_5fconfig_2eproto
5 #define PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fcan_5fconfig_2eproto
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
22 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
30 #include <google/protobuf/repeated_field.h>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
35 #include "dccl/option_extensions.pb.h"
36 #include <boost/units/quantity.hpp>
37 #include <boost/units/absolute.hpp>
38 #include <boost/units/dimensionless_type.hpp>
39 #include <boost/units/make_scaled_unit.hpp>
41 #include <boost/units/systems/si.hpp>
43 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2fmiddleware_2fprotobuf_2fcan_5fconfig_2eproto
48 static const ::google::protobuf::internal::ParseTableField
entries[];
49 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
50 static const ::google::protobuf::internal::ParseTable
schema[2];
58 namespace middleware {
61 class CanConfigDefaultTypeInternal;
63 class CanConfig_CanFilter;
64 class CanConfig_CanFilterDefaultTypeInternal;
76 namespace middleware {
91 return ::google::protobuf::internal::NameOfEnum(
96 return ::google::protobuf::internal::ParseNamedEnum<CanConfig_CanFilter_CanMask>(
115 *
this = ::std::move(from);
119 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
120 if (
this != &from) InternalSwap(&from);
128 return _internal_metadata_.unknown_fields();
131 return _internal_metadata_.mutable_unknown_fields();
134 static const ::google::protobuf::Descriptor*
descriptor();
159 return CreateMaybeMessage<CanConfig_CanFilter>(NULL);
163 return CreateMaybeMessage<CanConfig_CanFilter>(arena);
165 void CopyFrom(const ::google::protobuf::Message& from)
final;
166 void MergeFrom(const ::google::protobuf::Message& from)
final;
174 ::
google::protobuf::io::CodedInputStream* input) final;
176 ::
google::protobuf::io::CodedOutputStream* output) const final;
178 bool deterministic, ::
google::protobuf::uint8* target) const final;
184 void SetCachedSize(
int size)
const final;
187 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
190 inline void* MaybeArenaPtr()
const {
215 static inline const ::google::protobuf::EnumDescriptor*
254 void set_has_can_id();
255 void clear_has_can_id();
256 void set_has_can_mask();
257 void set_has_can_mask_custom();
259 inline bool has_mask()
const;
260 inline void clear_has_mask();
262 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
263 ::google::protobuf::internal::HasBits<1> _has_bits_;
264 mutable ::google::protobuf::internal::CachedSize _cached_size_;
273 friend struct ::protobuf_goby_2fmiddleware_2fprotobuf_2fcan_5fconfig_2eproto::TableStruct;
291 *
this = ::std::move(from);
295 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
296 if (
this != &from) InternalSwap(&from);
304 return _internal_metadata_.unknown_fields();
307 return _internal_metadata_.mutable_unknown_fields();
310 static const ::google::protobuf::Descriptor*
descriptor();
315 return reinterpret_cast<const CanConfig*
>(
329 return CreateMaybeMessage<CanConfig>(NULL);
333 return CreateMaybeMessage<CanConfig>(arena);
335 void CopyFrom(const ::google::protobuf::Message& from)
final;
336 void MergeFrom(const ::google::protobuf::Message& from)
final;
344 ::
google::protobuf::io::CodedInputStream* input) final;
346 ::
google::protobuf::io::CodedOutputStream* output) const final;
348 bool deterministic, ::
google::protobuf::uint8* target) const final;
354 void SetCachedSize(
int size)
const final;
357 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
360 inline void* MaybeArenaPtr()
const {
414 void set_has_interface();
415 void clear_has_interface();
417 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
418 ::google::protobuf::internal::HasBits<1> _has_bits_;
419 mutable ::google::protobuf::internal::CachedSize _cached_size_;
422 ::google::protobuf::internal::ArenaStringPtr interface_;
423 friend struct ::protobuf_goby_2fmiddleware_2fprotobuf_2fcan_5fconfig_2eproto::TableStruct;
431 #pragma GCC diagnostic push
432 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
438 return (_has_bits_[0] & 0x00000001u) != 0;
440 inline void CanConfig_CanFilter::set_has_can_id() {
441 _has_bits_[0] |= 0x00000001u;
443 inline void CanConfig_CanFilter::clear_has_can_id() {
444 _has_bits_[0] &= ~0x00000001u;
464 inline void CanConfig_CanFilter::set_has_can_mask() {
469 mask_.can_mask_ = 536870911;
486 mask_.can_mask_ = value;
494 inline void CanConfig_CanFilter::set_has_can_mask_custom() {
499 mask_.can_mask_custom_ = 0u;
506 return mask_.can_mask_custom_;
513 set_has_can_mask_custom();
515 mask_.can_mask_custom_ = value;
519 inline bool CanConfig_CanFilter::has_mask()
const {
522 inline void CanConfig_CanFilter::clear_has_mask() {
534 return (_has_bits_[0] & 0x00000001u) != 0;
536 inline void CanConfig::set_has_interface() {
537 _has_bits_[0] |= 0x00000001u;
539 inline void CanConfig::clear_has_interface() {
540 _has_bits_[0] &= ~0x00000001u;
544 clear_has_interface();
548 return interface_.GetNoArena();
558 interface_.SetNoArena(
564 GOOGLE_DCHECK(value != NULL);
572 ::std::string(
reinterpret_cast<const char*
>(value), size));
585 clear_has_interface();
592 clear_has_interface();
600 return filter_.size();
607 return filter_.Mutable(index);
609 inline ::google::protobuf::RepeatedPtrField< ::goby::middleware::protobuf::CanConfig_CanFilter >*
614 inline const ::goby::middleware::protobuf::CanConfig_CanFilter&
CanConfig::filter(
int index)
const {
616 return filter_.Get(index);
620 return filter_.Add();
622 inline const ::google::protobuf::RepeatedPtrField< ::goby::middleware::protobuf::CanConfig_CanFilter >&
630 return pgn_filter_.size();
637 return pgn_filter_.Get(index);
640 pgn_filter_.Set(index, value);
644 pgn_filter_.Add(value);
647 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
652 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
659 #pragma GCC diagnostic pop
675 inline const EnumDescriptor* GetEnumDescriptor< ::goby::middleware::protobuf::CanConfig_CanFilter_CanMask>() {
684 #endif // PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fcan_5fconfig_2eproto