4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fserial_5fconfig_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fserial_5fconfig_2eproto
10#include <google/protobuf/port_def.inc>
11#if PROTOBUF_VERSION < 3021000
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 3021012 < 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/port_undef.inc>
23#include <google/protobuf/io/coded_stream.h>
25#include <google/protobuf/arenastring.h>
26#include <google/protobuf/generated_message_util.h>
27#include <google/protobuf/metadata_lite.h>
28#include <google/protobuf/generated_message_reflection.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#include <google/protobuf/port_def.inc>
44#define PROTOBUF_INTERNAL_EXPORT_goby_2fmiddleware_2fprotobuf_2fserial_5fconfig_2eproto
45PROTOBUF_NAMESPACE_OPEN
49PROTOBUF_NAMESPACE_CLOSE
60struct SerialConfigDefaultTypeInternal;
65PROTOBUF_NAMESPACE_OPEN
67PROTOBUF_NAMESPACE_CLOSE
85 static_assert(::std::is_same<T, SerialConfig_FlowControl>::value ||
86 ::std::is_integral<T>::value,
87 "Incorrect type passed to function SerialConfig_FlowControl_Name.");
88 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
93 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<SerialConfig_FlowControl>(
99 public ::PROTOBUF_NAMESPACE_ID::Message {
103 explicit PROTOBUF_CONSTEXPR
SerialConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
108 *
this = ::std::move(from);
116 if (
this == &from)
return *
this;
117 if (GetOwningArena() == from.GetOwningArena()
118 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
119 && GetOwningArena() !=
nullptr
130 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
133 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
136 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
159 if (other ==
this)
return;
160 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
161 if (GetOwningArena() !=
nullptr &&
162 GetOwningArena() == other->GetOwningArena()) {
164 if (GetOwningArena() == other->GetOwningArena()) {
168 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
172 if (other ==
this)
return;
173 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
180 return CreateMaybeMessage<SerialConfig>(arena);
182 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
184 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
186 SerialConfig::MergeImpl(*
this, from);
189 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
191 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
197 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
201 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
203 void SetCachedSize(
int size)
const final;
207 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
208 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
209 return "goby.middleware.protobuf.SerialConfig";
213 bool is_message_owned =
false);
217 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
239 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
245 static_assert(::std::is_same<T, FlowControl>::value ||
246 ::std::is_integral<T>::value,
247 "Incorrect type passed to function FlowControl_Name.");
266 bool _internal_has_port()
const;
269 const std::string&
port()
const;
270 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
276 const std::string& _internal_port()
const;
277 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_port(
const std::string& value);
278 std::string* _internal_mutable_port();
284 bool _internal_has_end_of_line()
const;
288 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
294 const std::string& _internal_end_of_line()
const;
295 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_end_of_line(
const std::string& value);
296 std::string* _internal_mutable_end_of_line();
302 bool _internal_has_baud()
const;
305 uint32_t
baud()
const;
308 uint32_t _internal_baud()
const;
309 void _internal_set_baud(uint32_t value);
315 bool _internal_has_flow_control()
const;
330 size_t RequiredFieldsByteSizeFallback()
const;
332 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
333 typedef void InternalArenaConstructable_;
334 typedef void DestructorSkippable_;
336 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
337 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
338 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr port_;
339 static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_end_of_line_;
340 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr end_of_line_;
345 friend struct ::TableStruct_goby_2fmiddleware_2fprotobuf_2fserial_5fconfig_2eproto;
353 #pragma GCC diagnostic push
354 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
359inline bool SerialConfig::_internal_has_port()
const {
360 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
364 return _internal_has_port();
367 _impl_.port_.ClearToEmpty();
368 _impl_._has_bits_[0] &= ~0x00000001u;
372 return _internal_port();
374template <
typename ArgT0,
typename... ArgT>
375inline PROTOBUF_ALWAYS_INLINE
377 _impl_._has_bits_[0] |= 0x00000001u;
378 _impl_.port_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
382 std::string* _s = _internal_mutable_port();
386inline const std::string& SerialConfig::_internal_port()
const {
387 return _impl_.port_.Get();
389inline void SerialConfig::_internal_set_port(
const std::string& value) {
390 _impl_._has_bits_[0] |= 0x00000001u;
391 _impl_.port_.Set(value, GetArenaForAllocation());
393inline std::string* SerialConfig::_internal_mutable_port() {
394 _impl_._has_bits_[0] |= 0x00000001u;
395 return _impl_.port_.Mutable(GetArenaForAllocation());
399 if (!_internal_has_port()) {
402 _impl_._has_bits_[0] &= ~0x00000001u;
403 auto* p =
_impl_.port_.Release();
404#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
405 if (
_impl_.port_.IsDefault()) {
406 _impl_.port_.Set(
"", GetArenaForAllocation());
412 if (
port !=
nullptr) {
413 _impl_._has_bits_[0] |= 0x00000001u;
415 _impl_._has_bits_[0] &= ~0x00000001u;
417 _impl_.port_.SetAllocated(
port, GetArenaForAllocation());
418#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
419 if (
_impl_.port_.IsDefault()) {
420 _impl_.port_.Set(
"", GetArenaForAllocation());
427inline bool SerialConfig::_internal_has_baud()
const {
428 bool value = (
_impl_._has_bits_[0] & 0x00000004u) != 0;
432 return _internal_has_baud();
436 _impl_._has_bits_[0] &= ~0x00000004u;
438inline uint32_t SerialConfig::_internal_baud()
const {
443 return _internal_baud();
445inline void SerialConfig::_internal_set_baud(uint32_t value) {
446 _impl_._has_bits_[0] |= 0x00000004u;
450 _internal_set_baud(value);
455inline bool SerialConfig::_internal_has_end_of_line()
const {
456 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
460 return _internal_has_end_of_line();
463 _impl_.end_of_line_.ClearToDefault(::goby::middleware::protobuf::SerialConfig::Impl_::_i_give_permission_to_break_this_code_default_end_of_line_, GetArenaForAllocation());
464 _impl_._has_bits_[0] &= ~0x00000002u;
468 if (
_impl_.end_of_line_.IsDefault())
return Impl_::_i_give_permission_to_break_this_code_default_end_of_line_.get();
469 return _internal_end_of_line();
471template <
typename ArgT0,
typename... ArgT>
472inline PROTOBUF_ALWAYS_INLINE
474 _impl_._has_bits_[0] |= 0x00000002u;
475 _impl_.end_of_line_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
479 std::string* _s = _internal_mutable_end_of_line();
483inline const std::string& SerialConfig::_internal_end_of_line()
const {
484 return _impl_.end_of_line_.Get();
486inline void SerialConfig::_internal_set_end_of_line(
const std::string& value) {
487 _impl_._has_bits_[0] |= 0x00000002u;
488 _impl_.end_of_line_.Set(value, GetArenaForAllocation());
490inline std::string* SerialConfig::_internal_mutable_end_of_line() {
491 _impl_._has_bits_[0] |= 0x00000002u;
492 return _impl_.end_of_line_.Mutable(::goby::middleware::protobuf::SerialConfig::Impl_::_i_give_permission_to_break_this_code_default_end_of_line_, GetArenaForAllocation());
496 if (!_internal_has_end_of_line()) {
499 _impl_._has_bits_[0] &= ~0x00000002u;
500 auto* p =
_impl_.end_of_line_.Release();
505 _impl_._has_bits_[0] |= 0x00000002u;
507 _impl_._has_bits_[0] &= ~0x00000002u;
514inline bool SerialConfig::_internal_has_flow_control()
const {
515 bool value = (
_impl_._has_bits_[0] & 0x00000008u) != 0;
519 return _internal_has_flow_control();
523 _impl_._has_bits_[0] &= ~0x00000008u;
525inline ::goby::middleware::protobuf::SerialConfig_FlowControl SerialConfig::_internal_flow_control()
const {
530 return _internal_flow_control();
534 _impl_._has_bits_[0] |= 0x00000008u;
535 _impl_.flow_control_ = value;
538 _internal_set_flow_control(value);
543 #pragma GCC diagnostic pop
552PROTOBUF_NAMESPACE_OPEN
557 return ::goby::middleware::protobuf::SerialConfig_FlowControl_descriptor();
560PROTOBUF_NAMESPACE_CLOSE
564#include <google/protobuf/port_undef.inc>
SerialConfig(SerialConfig &&from) noexcept
static bool FlowControl_IsValid(int value)
static bool FlowControl_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FlowControl *value)
bool has_end_of_line() const
@ kFlowControlFieldNumber
static const ClassData _class_data_
::goby::middleware::protobuf::SerialConfig_FlowControl flow_control() const
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
std::string * mutable_end_of_line()
static constexpr FlowControl FlowControl_MIN
void UnsafeArenaSwap(SerialConfig *other)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
bool has_flow_control() const
SerialConfig & operator=(SerialConfig &&from) noexcept
static const std::string & FlowControl_Name(T enum_t_value)
void set_flow_control(::goby::middleware::protobuf::SerialConfig_FlowControl value)
void set_allocated_end_of_line(std::string *end_of_line)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
bool IsInitialized() const final
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * FlowControl_descriptor()
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
int GetCachedSize() const final
static constexpr FlowControl HARDWARE
void set_allocated_port(std::string *port)
SerialConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
PROTOBUF_NODISCARD std::string * release_port()
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
PROTOBUF_NODISCARD std::string * release_end_of_line()
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
void Swap(SerialConfig *other)
void MergeFrom(const SerialConfig &from)
void set_baud(uint32_t value)
friend void swap(SerialConfig &a, SerialConfig &b)
static constexpr FlowControl SOFTWARE
static constexpr FlowControl FlowControl_MAX
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
SerialConfig(const SerialConfig &from)
void set_end_of_line(ArgT0 &&arg0, ArgT... args)
void CopyFrom(const SerialConfig &from)
static const SerialConfig * internal_default_instance()
static constexpr int FlowControl_ARRAYSIZE
PROTOBUF_CONSTEXPR SerialConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
static const SerialConfig & default_instance()
SerialConfig & operator=(const SerialConfig &from)
const std::string & end_of_line() const
static constexpr int kIndexInFileMessages
SerialConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
void set_port(ArgT0 &&arg0, ArgT... args)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
void clear_flow_control()
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
size_t ByteSizeLong() const final
const std::string & port() const
std::string * mutable_port()
static constexpr FlowControl NONE
bool SerialConfig_FlowControl_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SerialConfig_FlowControl *value)
const std::string & SerialConfig_FlowControl_Name(T enum_t_value)
@ SerialConfig_FlowControl_SOFTWARE
@ SerialConfig_FlowControl_HARDWARE
@ SerialConfig_FlowControl_NONE
constexpr SerialConfig_FlowControl SerialConfig_FlowControl_FlowControl_MIN
SerialConfigDefaultTypeInternal _SerialConfig_default_instance_
constexpr SerialConfig_FlowControl SerialConfig_FlowControl_FlowControl_MAX
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * SerialConfig_FlowControl_descriptor()
bool SerialConfig_FlowControl_IsValid(int value)
constexpr int SerialConfig_FlowControl_FlowControl_ARRAYSIZE
The global namespace for the Goby project.
const EnumDescriptor * GetEnumDescriptor< ::goby::middleware::protobuf::SerialConfig_FlowControl >()
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fmiddleware_2fprotobuf_2fserial_5fconfig_2eproto
static const uint32_t offsets[]