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 < 3012000
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 3012004 < 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_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/inlined_string_field.h>
29 #include <google/protobuf/metadata_lite.h>
30 #include <google/protobuf/generated_message_reflection.h>
32 #include <google/protobuf/repeated_field.h>
33 #include <google/protobuf/extension_set.h>
34 #include <google/protobuf/unknown_field_set.h>
36 #include "dccl/option_extensions.pb.h"
37 #include <boost/units/quantity.hpp>
38 #include <boost/units/absolute.hpp>
39 #include <boost/units/dimensionless_type.hpp>
40 #include <boost/units/make_scaled_unit.hpp>
42 #include <google/protobuf/port_def.inc>
43 #define PROTOBUF_INTERNAL_EXPORT_goby_2fmiddleware_2fprotobuf_2fpty_5fconfig_2eproto
44 PROTOBUF_NAMESPACE_OPEN
48 PROTOBUF_NAMESPACE_CLOSE
52 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
54 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
56 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
58 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata
field_metadata[];
64 namespace middleware {
67 class PTYConfigDefaultTypeInternal;
72 PROTOBUF_NAMESPACE_OPEN
73 template<> ::goby::middleware::protobuf::PTYConfig* Arena::CreateMaybeMessage<::goby::middleware::protobuf::PTYConfig>(Arena*);
74 PROTOBUF_NAMESPACE_CLOSE
76 namespace middleware {
81 class PTYConfig PROTOBUF_FINAL :
82 public ::PROTOBUF_NAMESPACE_ID::Message {
90 *
this = ::std::move(from);
93 inline PTYConfig&
operator=(
const PTYConfig& from) {
97 inline PTYConfig&
operator=(PTYConfig&& from) noexcept {
98 if (GetArena() == from.GetArena()) {
99 if (
this != &from) InternalSwap(&from);
107 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
110 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
113 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
114 return GetDescriptor();
117 return GetMetadataStatic().descriptor;
120 return GetMetadataStatic().reflection;
126 return reinterpret_cast<const PTYConfig*
>(
129 static constexpr
int kIndexInFileMessages =
132 friend void swap(PTYConfig& a, PTYConfig& b) {
135 inline void Swap(PTYConfig* other) {
136 if (other ==
this)
return;
137 if (GetArena() == other->GetArena()) {
140 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
144 if (other ==
this)
return;
145 GOOGLE_DCHECK(GetArena() == other->GetArena());
151 inline PTYConfig*
New() const final {
152 return CreateMaybeMessage<PTYConfig>(
nullptr);
155 PTYConfig*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
156 return CreateMaybeMessage<PTYConfig>(arena);
158 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
159 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
162 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
163 bool IsInitialized() const final;
166 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
167 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
168 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
169 int GetCachedSize() const final {
return _cached_size_.Get(); }
172 inline void SharedCtor();
173 inline void SharedDtor();
174 void SetCachedSize(
int size)
const final;
175 void InternalSwap(PTYConfig* other);
176 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
177 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
178 return "goby.middleware.protobuf.PTYConfig";
181 explicit PTYConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena);
183 static void ArenaDtor(
void*
object);
184 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
189 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
201 kPortFieldNumber = 1,
202 kEndOfLineFieldNumber = 3,
203 kBaudFieldNumber = 2,
208 bool _internal_has_port()
const;
211 const std::string&
port()
const;
219 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(
"The unsafe_arena_ accessors for"
220 " string fields are deprecated and will be removed in a"
222 std::
string* unsafe_arena_release_port();
223 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
224 "
string fields are deprecated and will be removed in a"
226 void unsafe_arena_set_allocated_port(
229 const std::
string& _internal_port() const;
230 void _internal_set_port(const std::
string& value);
231 std::
string* _internal_mutable_port();
235 bool has_end_of_line() const;
237 bool _internal_has_end_of_line() const;
239 void clear_end_of_line();
240 const std::
string& end_of_line() const;
241 void set_end_of_line(const std::
string& value);
242 void set_end_of_line(std::
string&& value);
243 void set_end_of_line(const
char* value);
244 void set_end_of_line(const
char* value,
size_t size);
245 std::
string* mutable_end_of_line();
246 std::
string* release_end_of_line();
247 void set_allocated_end_of_line(std::
string* end_of_line);
248 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
249 "
string fields are deprecated and will be removed in a"
251 std::
string* unsafe_arena_release_end_of_line();
252 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
253 "
string fields are deprecated and will be removed in a"
255 void unsafe_arena_set_allocated_end_of_line(
256 std::
string* end_of_line);
258 const std::
string& _internal_end_of_line() const;
259 void _internal_set_end_of_line(const std::
string& value);
260 std::
string* _internal_mutable_end_of_line();
264 bool has_baud() const;
266 bool _internal_has_baud() const;
269 ::PROTOBUF_NAMESPACE_ID::
uint32 baud() const;
270 void set_baud(::PROTOBUF_NAMESPACE_ID::
uint32 value);
272 ::PROTOBUF_NAMESPACE_ID::
uint32 _internal_baud() const;
273 void _internal_set_baud(::PROTOBUF_NAMESPACE_ID::
uint32 value);
280 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
281 typedef
void InternalArenaConstructable_;
282 typedef
void DestructorSkippable_;
283 ::PROTOBUF_NAMESPACE_ID::
internal::HasBits<1> _has_bits_;
284 mutable ::PROTOBUF_NAMESPACE_ID::
internal::CachedSize _cached_size_;
285 ::PROTOBUF_NAMESPACE_ID::
internal::ArenaStringPtr port_;
287 static ::PROTOBUF_NAMESPACE_ID::
internal::ExplicitlyConstructed<std::
string> _i_give_permission_to_break_this_code_default_end_of_line_;
289 ::PROTOBUF_NAMESPACE_ID::
internal::ArenaStringPtr end_of_line_;
290 ::PROTOBUF_NAMESPACE_ID::
uint32 baud_;
299 #pragma GCC diagnostic push
300 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
305 inline bool PTYConfig::_internal_has_port()
const {
306 bool value = (_has_bits_[0] & 0x00000001u) != 0;
309 inline bool PTYConfig::has_port()
const {
310 return _internal_has_port();
312 inline void PTYConfig::clear_port() {
314 _has_bits_[0] &= ~0x00000001u;
316 inline const std::string& PTYConfig::port()
const {
318 return _internal_port();
320 inline void PTYConfig::set_port(
const std::string& value) {
321 _internal_set_port(value);
324 inline std::string* PTYConfig::mutable_port() {
326 return _internal_mutable_port();
328 inline const std::string& PTYConfig::_internal_port()
const {
331 inline void PTYConfig::_internal_set_port(
const std::string& value) {
332 _has_bits_[0] |= 0x00000001u;
335 inline void PTYConfig::set_port(std::string&& value) {
336 _has_bits_[0] |= 0x00000001u;
341 inline void PTYConfig::set_port(
const char* value) {
342 GOOGLE_DCHECK(value !=
nullptr);
343 _has_bits_[0] |= 0x00000001u;
348 inline void PTYConfig::set_port(
const char* value,
350 _has_bits_[0] |= 0x00000001u;
352 reinterpret_cast<const char*
>(value), size), GetArena());
355 inline std::string* PTYConfig::_internal_mutable_port() {
356 _has_bits_[0] |= 0x00000001u;
359 inline std::string* PTYConfig::release_port() {
361 if (!_internal_has_port()) {
364 _has_bits_[0] &= ~0x00000001u;
367 inline void PTYConfig::set_allocated_port(std::string* port) {
368 if (port !=
nullptr) {
369 _has_bits_[0] |= 0x00000001u;
371 _has_bits_[0] &= ~0x00000001u;
377 inline std::string* PTYConfig::unsafe_arena_release_port() {
379 GOOGLE_DCHECK(GetArena() !=
nullptr);
380 _has_bits_[0] &= ~0x00000001u;
384 inline void PTYConfig::unsafe_arena_set_allocated_port(
386 GOOGLE_DCHECK(GetArena() !=
nullptr);
387 if (port !=
nullptr) {
388 _has_bits_[0] |= 0x00000001u;
390 _has_bits_[0] &= ~0x00000001u;
398 inline bool PTYConfig::_internal_has_baud()
const {
399 bool value = (_has_bits_[0] & 0x00000004u) != 0;
402 inline bool PTYConfig::has_baud()
const {
403 return _internal_has_baud();
405 inline void PTYConfig::clear_baud() {
407 _has_bits_[0] &= ~0x00000004u;
414 return _internal_baud();
417 _has_bits_[0] |= 0x00000004u;
421 _internal_set_baud(value);
426 inline bool PTYConfig::_internal_has_end_of_line()
const {
427 bool value = (_has_bits_[0] & 0x00000002u) != 0;
430 inline bool PTYConfig::has_end_of_line()
const {
431 return _internal_has_end_of_line();
433 inline void PTYConfig::clear_end_of_line() {
434 end_of_line_.ClearToDefault(&::goby::middleware::protobuf::PTYConfig::_i_give_permission_to_break_this_code_default_end_of_line_.
get(), GetArena());
435 _has_bits_[0] &= ~0x00000002u;
437 inline const std::string& PTYConfig::end_of_line()
const {
439 return _internal_end_of_line();
441 inline void PTYConfig::set_end_of_line(
const std::string& value) {
442 _internal_set_end_of_line(value);
445 inline std::string* PTYConfig::mutable_end_of_line() {
447 return _internal_mutable_end_of_line();
449 inline const std::string& PTYConfig::_internal_end_of_line()
const {
450 return end_of_line_.Get();
452 inline void PTYConfig::_internal_set_end_of_line(
const std::string& value) {
453 _has_bits_[0] |= 0x00000002u;
454 end_of_line_.Set(&::goby::middleware::protobuf::PTYConfig::_i_give_permission_to_break_this_code_default_end_of_line_.
get(), value, GetArena());
456 inline void PTYConfig::set_end_of_line(std::string&& value) {
457 _has_bits_[0] |= 0x00000002u;
459 &::goby::middleware::protobuf::PTYConfig::_i_give_permission_to_break_this_code_default_end_of_line_.
get(), ::std::move(value), GetArena());
462 inline void PTYConfig::set_end_of_line(
const char* value) {
463 GOOGLE_DCHECK(value !=
nullptr);
464 _has_bits_[0] |= 0x00000002u;
465 end_of_line_.Set(&::goby::middleware::protobuf::PTYConfig::_i_give_permission_to_break_this_code_default_end_of_line_.
get(), ::std::string(value),
469 inline void PTYConfig::set_end_of_line(
const char* value,
471 _has_bits_[0] |= 0x00000002u;
472 end_of_line_.Set(&::goby::middleware::protobuf::PTYConfig::_i_give_permission_to_break_this_code_default_end_of_line_.
get(), ::std::string(
473 reinterpret_cast<const char*
>(value), size), GetArena());
476 inline std::string* PTYConfig::_internal_mutable_end_of_line() {
477 _has_bits_[0] |= 0x00000002u;
478 return end_of_line_.Mutable(&::goby::middleware::protobuf::PTYConfig::_i_give_permission_to_break_this_code_default_end_of_line_.
get(), GetArena());
480 inline std::string* PTYConfig::release_end_of_line() {
482 if (!_internal_has_end_of_line()) {
485 _has_bits_[0] &= ~0x00000002u;
486 return end_of_line_.ReleaseNonDefault(&::goby::middleware::protobuf::PTYConfig::_i_give_permission_to_break_this_code_default_end_of_line_.
get(), GetArena());
488 inline void PTYConfig::set_allocated_end_of_line(std::string* end_of_line) {
489 if (end_of_line !=
nullptr) {
490 _has_bits_[0] |= 0x00000002u;
492 _has_bits_[0] &= ~0x00000002u;
494 end_of_line_.SetAllocated(&::goby::middleware::protobuf::PTYConfig::_i_give_permission_to_break_this_code_default_end_of_line_.
get(), end_of_line,
498 inline std::string* PTYConfig::unsafe_arena_release_end_of_line() {
500 GOOGLE_DCHECK(GetArena() !=
nullptr);
501 _has_bits_[0] &= ~0x00000002u;
502 return end_of_line_.UnsafeArenaRelease(&::goby::middleware::protobuf::PTYConfig::_i_give_permission_to_break_this_code_default_end_of_line_.
get(),
505 inline void PTYConfig::unsafe_arena_set_allocated_end_of_line(
506 std::string* end_of_line) {
507 GOOGLE_DCHECK(GetArena() !=
nullptr);
508 if (end_of_line !=
nullptr) {
509 _has_bits_[0] |= 0x00000002u;
511 _has_bits_[0] &= ~0x00000002u;
513 end_of_line_.UnsafeArenaSetAllocated(&::goby::middleware::protobuf::PTYConfig::_i_give_permission_to_break_this_code_default_end_of_line_.
get(),
514 end_of_line, GetArena());
519 #pragma GCC diagnostic pop
530 #include <google/protobuf/port_undef.inc>
std::string * release_port()
static void InitAsDefaultInstance()
void Swap(PTYConfig *other)
const std::string & port() const
void CopyFrom(const PTYConfig &from)
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
PTYConfig(const PTYConfig &from)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
PTYConfig & operator=(PTYConfig &&from) noexcept
PTYConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
void set_port(const char *value, size_t size)
void set_allocated_port(std::string *port)
static const PTYConfig * internal_default_instance()
void UnsafeArenaSwap(PTYConfig *other)
friend void swap(PTYConfig &a, PTYConfig &b)
void MergeFrom(const PTYConfig &from)
PTYConfig * New() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
void set_port(const char *value)
PTYConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
void set_port(std::string &&value)
PTYConfig & operator=(const PTYConfig &from)
static const PTYConfig & default_instance()
std::string * mutable_port()
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
void set_port(const std::string &value)
PTYConfig(PTYConfig &&from) noexcept
@ value
the parser finished reading a JSON value
auto get(const nlohmann::detail::iteration_proxy_value< IteratorType > &i) -> decltype(i.key())
PTYConfigDefaultTypeInternal _PTYConfig_default_instance_
The global namespace for the Goby project.
PROTOBUF_EXPORT const std::string & GetEmptyStringAlreadyInited()
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fmiddleware_2fprotobuf_2fpty_5fconfig_2eproto
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]