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 "dccl/option_extensions.pb.h"
35#include <boost/units/quantity.hpp>
36#include <boost/units/absolute.hpp>
37#include <boost/units/dimensionless_type.hpp>
38#include <boost/units/make_scaled_unit.hpp>
40#include <google/protobuf/port_def.inc>
41#define PROTOBUF_INTERNAL_EXPORT_goby_2fmiddleware_2fprotobuf_2fpty_5fconfig_2eproto
42PROTOBUF_NAMESPACE_OPEN
46PROTOBUF_NAMESPACE_CLOSE
57struct PTYConfigDefaultTypeInternal;
62PROTOBUF_NAMESPACE_OPEN
64PROTOBUF_NAMESPACE_CLOSE
72 public ::PROTOBUF_NAMESPACE_ID::Message {
76 explicit PROTOBUF_CONSTEXPR
PTYConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
81 *
this = ::std::move(from);
89 if (
this == &from)
return *
this;
90 if (GetOwningArena() == from.GetOwningArena()
91 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
92 && GetOwningArena() !=
nullptr
103 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
106 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
109 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
122 return reinterpret_cast<const PTYConfig*
>(
132 if (other ==
this)
return;
133 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
134 if (GetOwningArena() !=
nullptr &&
135 GetOwningArena() == other->GetOwningArena()) {
137 if (GetOwningArena() == other->GetOwningArena()) {
141 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
145 if (other ==
this)
return;
146 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
152 PTYConfig*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
153 return CreateMaybeMessage<PTYConfig>(arena);
155 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
157 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
159 PTYConfig::MergeImpl(*
this, from);
162 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
164 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
170 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
174 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
176 void SetCachedSize(
int size)
const final;
180 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
181 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
182 return "goby.middleware.protobuf.PTYConfig";
185 explicit PTYConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena,
186 bool is_message_owned =
false);
190 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
206 bool _internal_has_port()
const;
209 const std::string&
port()
const;
210 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
216 const std::string& _internal_port()
const;
217 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_port(
const std::string& value);
218 std::string* _internal_mutable_port();
224 bool _internal_has_end_of_line()
const;
228 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
234 const std::string& _internal_end_of_line()
const;
235 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_end_of_line(
const std::string& value);
236 std::string* _internal_mutable_end_of_line();
242 bool _internal_has_baud()
const;
245 uint32_t
baud()
const;
248 uint32_t _internal_baud()
const;
249 void _internal_set_baud(uint32_t value);
256 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
257 typedef void InternalArenaConstructable_;
258 typedef void DestructorSkippable_;
260 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
261 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
262 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr port_;
263 static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_end_of_line_;
264 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr end_of_line_;
268 friend struct ::TableStruct_goby_2fmiddleware_2fprotobuf_2fpty_5fconfig_2eproto;
276 #pragma GCC diagnostic push
277 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
282inline bool PTYConfig::_internal_has_port()
const {
283 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
287 return _internal_has_port();
290 _impl_.port_.ClearToEmpty();
291 _impl_._has_bits_[0] &= ~0x00000001u;
295 return _internal_port();
297template <
typename ArgT0,
typename... ArgT>
298inline PROTOBUF_ALWAYS_INLINE
300 _impl_._has_bits_[0] |= 0x00000001u;
301 _impl_.port_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
305 std::string* _s = _internal_mutable_port();
309inline const std::string& PTYConfig::_internal_port()
const {
310 return _impl_.port_.Get();
312inline void PTYConfig::_internal_set_port(
const std::string& value) {
313 _impl_._has_bits_[0] |= 0x00000001u;
314 _impl_.port_.Set(value, GetArenaForAllocation());
316inline std::string* PTYConfig::_internal_mutable_port() {
317 _impl_._has_bits_[0] |= 0x00000001u;
318 return _impl_.port_.Mutable(GetArenaForAllocation());
322 if (!_internal_has_port()) {
325 _impl_._has_bits_[0] &= ~0x00000001u;
326 auto* p =
_impl_.port_.Release();
327#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
328 if (
_impl_.port_.IsDefault()) {
329 _impl_.port_.Set(
"", GetArenaForAllocation());
335 if (
port !=
nullptr) {
336 _impl_._has_bits_[0] |= 0x00000001u;
338 _impl_._has_bits_[0] &= ~0x00000001u;
340 _impl_.port_.SetAllocated(
port, GetArenaForAllocation());
341#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
342 if (
_impl_.port_.IsDefault()) {
343 _impl_.port_.Set(
"", GetArenaForAllocation());
350inline bool PTYConfig::_internal_has_baud()
const {
351 bool value = (
_impl_._has_bits_[0] & 0x00000004u) != 0;
355 return _internal_has_baud();
359 _impl_._has_bits_[0] &= ~0x00000004u;
361inline uint32_t PTYConfig::_internal_baud()
const {
366 return _internal_baud();
368inline void PTYConfig::_internal_set_baud(uint32_t value) {
369 _impl_._has_bits_[0] |= 0x00000004u;
373 _internal_set_baud(value);
378inline bool PTYConfig::_internal_has_end_of_line()
const {
379 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
383 return _internal_has_end_of_line();
386 _impl_.end_of_line_.ClearToDefault(::goby::middleware::protobuf::PTYConfig::Impl_::_i_give_permission_to_break_this_code_default_end_of_line_, GetArenaForAllocation());
387 _impl_._has_bits_[0] &= ~0x00000002u;
391 if (
_impl_.end_of_line_.IsDefault())
return Impl_::_i_give_permission_to_break_this_code_default_end_of_line_.get();
392 return _internal_end_of_line();
394template <
typename ArgT0,
typename... ArgT>
395inline PROTOBUF_ALWAYS_INLINE
397 _impl_._has_bits_[0] |= 0x00000002u;
398 _impl_.end_of_line_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
402 std::string* _s = _internal_mutable_end_of_line();
406inline const std::string& PTYConfig::_internal_end_of_line()
const {
407 return _impl_.end_of_line_.Get();
409inline void PTYConfig::_internal_set_end_of_line(
const std::string& value) {
410 _impl_._has_bits_[0] |= 0x00000002u;
411 _impl_.end_of_line_.Set(value, GetArenaForAllocation());
413inline std::string* PTYConfig::_internal_mutable_end_of_line() {
414 _impl_._has_bits_[0] |= 0x00000002u;
415 return _impl_.end_of_line_.Mutable(::goby::middleware::protobuf::PTYConfig::Impl_::_i_give_permission_to_break_this_code_default_end_of_line_, GetArenaForAllocation());
419 if (!_internal_has_end_of_line()) {
422 _impl_._has_bits_[0] &= ~0x00000002u;
423 auto* p =
_impl_.end_of_line_.Release();
428 _impl_._has_bits_[0] |= 0x00000002u;
430 _impl_._has_bits_[0] &= ~0x00000002u;
437 #pragma GCC diagnostic pop
448#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[]