4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fpty_5fconfig_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fpty_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/unknown_field_set.h>
34#include <boost/units/quantity.hpp>
35#include <boost/units/absolute.hpp>
36#include <boost/units/dimensionless_type.hpp>
37#include <boost/units/make_scaled_unit.hpp>
39#include <google/protobuf/port_def.inc>
40#define PROTOBUF_INTERNAL_EXPORT_goby_2fmiddleware_2fprotobuf_2fpty_5fconfig_2eproto
41PROTOBUF_NAMESPACE_OPEN
45PROTOBUF_NAMESPACE_CLOSE
56struct PTYConfigDefaultTypeInternal;
61PROTOBUF_NAMESPACE_OPEN
63PROTOBUF_NAMESPACE_CLOSE
71 public ::PROTOBUF_NAMESPACE_ID::Message {
75 explicit PROTOBUF_CONSTEXPR
PTYConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
80 *
this = ::std::move(from);
88 if (
this == &from)
return *
this;
89 if (GetOwningArena() == from.GetOwningArena()
90 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
91 && GetOwningArena() !=
nullptr
102 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
105 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
108 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
121 return reinterpret_cast<const PTYConfig*
>(
131 if (other ==
this)
return;
132 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
133 if (GetOwningArena() !=
nullptr &&
134 GetOwningArena() == other->GetOwningArena()) {
136 if (GetOwningArena() == other->GetOwningArena()) {
140 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
144 if (other ==
this)
return;
145 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
151 PTYConfig*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
152 return CreateMaybeMessage<PTYConfig>(arena);
154 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
156 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
158 PTYConfig::MergeImpl(*
this, from);
161 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
163 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
169 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
173 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
175 void SetCachedSize(
int size)
const final;
179 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
180 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
181 return "goby.middleware.protobuf.PTYConfig";
184 explicit PTYConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena,
185 bool is_message_owned =
false);
189 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
205 bool _internal_has_port()
const;
208 const std::string&
port()
const;
209 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
215 const std::string& _internal_port()
const;
216 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_port(
const std::string& value);
217 std::string* _internal_mutable_port();
223 bool _internal_has_end_of_line()
const;
227 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
233 const std::string& _internal_end_of_line()
const;
234 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_end_of_line(
const std::string& value);
235 std::string* _internal_mutable_end_of_line();
241 bool _internal_has_baud()
const;
244 uint32_t
baud()
const;
247 uint32_t _internal_baud()
const;
248 void _internal_set_baud(uint32_t value);
255 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
256 typedef void InternalArenaConstructable_;
257 typedef void DestructorSkippable_;
259 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
260 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
261 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr port_;
262 static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_end_of_line_;
263 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr end_of_line_;
267 friend struct ::TableStruct_goby_2fmiddleware_2fprotobuf_2fpty_5fconfig_2eproto;
275 #pragma GCC diagnostic push
276 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
281inline bool PTYConfig::_internal_has_port()
const {
282 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
286 return _internal_has_port();
289 _impl_.port_.ClearToEmpty();
290 _impl_._has_bits_[0] &= ~0x00000001u;
294 return _internal_port();
296template <
typename ArgT0,
typename... ArgT>
297inline PROTOBUF_ALWAYS_INLINE
299 _impl_._has_bits_[0] |= 0x00000001u;
300 _impl_.port_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
304 std::string* _s = _internal_mutable_port();
308inline const std::string& PTYConfig::_internal_port()
const {
309 return _impl_.port_.Get();
311inline void PTYConfig::_internal_set_port(
const std::string& value) {
312 _impl_._has_bits_[0] |= 0x00000001u;
313 _impl_.port_.Set(value, GetArenaForAllocation());
315inline std::string* PTYConfig::_internal_mutable_port() {
316 _impl_._has_bits_[0] |= 0x00000001u;
317 return _impl_.port_.Mutable(GetArenaForAllocation());
321 if (!_internal_has_port()) {
324 _impl_._has_bits_[0] &= ~0x00000001u;
325 auto* p =
_impl_.port_.Release();
326#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
327 if (
_impl_.port_.IsDefault()) {
328 _impl_.port_.Set(
"", GetArenaForAllocation());
334 if (
port !=
nullptr) {
335 _impl_._has_bits_[0] |= 0x00000001u;
337 _impl_._has_bits_[0] &= ~0x00000001u;
339 _impl_.port_.SetAllocated(
port, GetArenaForAllocation());
340#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
341 if (
_impl_.port_.IsDefault()) {
342 _impl_.port_.Set(
"", GetArenaForAllocation());
349inline bool PTYConfig::_internal_has_baud()
const {
350 bool value = (
_impl_._has_bits_[0] & 0x00000004u) != 0;
354 return _internal_has_baud();
358 _impl_._has_bits_[0] &= ~0x00000004u;
360inline uint32_t PTYConfig::_internal_baud()
const {
365 return _internal_baud();
367inline void PTYConfig::_internal_set_baud(uint32_t value) {
368 _impl_._has_bits_[0] |= 0x00000004u;
372 _internal_set_baud(value);
377inline bool PTYConfig::_internal_has_end_of_line()
const {
378 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
382 return _internal_has_end_of_line();
385 _impl_.end_of_line_.ClearToDefault(::goby::middleware::protobuf::PTYConfig::Impl_::_i_give_permission_to_break_this_code_default_end_of_line_, GetArenaForAllocation());
386 _impl_._has_bits_[0] &= ~0x00000002u;
390 if (
_impl_.end_of_line_.IsDefault())
return Impl_::_i_give_permission_to_break_this_code_default_end_of_line_.get();
391 return _internal_end_of_line();
393template <
typename ArgT0,
typename... ArgT>
394inline PROTOBUF_ALWAYS_INLINE
396 _impl_._has_bits_[0] |= 0x00000002u;
397 _impl_.end_of_line_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
401 std::string* _s = _internal_mutable_end_of_line();
405inline const std::string& PTYConfig::_internal_end_of_line()
const {
406 return _impl_.end_of_line_.Get();
408inline void PTYConfig::_internal_set_end_of_line(
const std::string& value) {
409 _impl_._has_bits_[0] |= 0x00000002u;
410 _impl_.end_of_line_.Set(value, GetArenaForAllocation());
412inline std::string* PTYConfig::_internal_mutable_end_of_line() {
413 _impl_._has_bits_[0] |= 0x00000002u;
414 return _impl_.end_of_line_.Mutable(::goby::middleware::protobuf::PTYConfig::Impl_::_i_give_permission_to_break_this_code_default_end_of_line_, GetArenaForAllocation());
418 if (!_internal_has_end_of_line()) {
421 _impl_._has_bits_[0] &= ~0x00000002u;
422 auto* p =
_impl_.end_of_line_.Release();
427 _impl_._has_bits_[0] |= 0x00000002u;
429 _impl_._has_bits_[0] &= ~0x00000002u;
436 #pragma GCC diagnostic pop
447#include <google/protobuf/port_undef.inc>
void set_end_of_line(ArgT0 &&arg0, ArgT... args)
const std::string & port() const
bool has_end_of_line() const
static const ClassData _class_data_
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
PTYConfig(const PTYConfig &from)
static const PTYConfig & default_instance()
void set_allocated_port(std::string *port)
std::string * mutable_end_of_line()
size_t ByteSizeLong() const final
void CopyFrom(const PTYConfig &from)
void MergeFrom(const PTYConfig &from)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
PTYConfig & operator=(const PTYConfig &from)
void Swap(PTYConfig *other)
static constexpr int kIndexInFileMessages
void set_allocated_end_of_line(std::string *end_of_line)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
void UnsafeArenaSwap(PTYConfig *other)
std::string * mutable_port()
PTYConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
PROTOBUF_CONSTEXPR PTYConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
friend void swap(PTYConfig &a, PTYConfig &b)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
PROTOBUF_NODISCARD std::string * release_end_of_line()
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
int GetCachedSize() const final
PTYConfig & operator=(PTYConfig &&from) noexcept
PTYConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
bool IsInitialized() const final
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
const std::string & end_of_line() const
PTYConfig(PTYConfig &&from) noexcept
void set_baud(uint32_t value)
PROTOBUF_NODISCARD std::string * release_port()
static const PTYConfig * internal_default_instance()
void set_port(ArgT0 &&arg0, ArgT... args)
PTYConfigDefaultTypeInternal _PTYConfig_default_instance_
The global namespace for the Goby project.
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fmiddleware_2fprotobuf_2fpty_5fconfig_2eproto
static const uint32_t offsets[]