Goby3 3.1.5a
2024.05.23
Loading...
Searching...
No Matches
pty_config.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: goby/middleware/protobuf/pty_config.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fpty_5fconfig_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fpty_5fconfig_2eproto
6
7#include <limits>
8#include <string>
9
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
14#error your headers.
15#endif
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.
20#endif
21
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> // IWYU pragma: export
31#include <google/protobuf/extension_set.h> // IWYU pragma: export
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>
39// @@protoc_insertion_point(includes)
40#include <google/protobuf/port_def.inc>
41#define PROTOBUF_INTERNAL_EXPORT_goby_2fmiddleware_2fprotobuf_2fpty_5fconfig_2eproto
42PROTOBUF_NAMESPACE_OPEN
43namespace internal {
44class AnyMetadata;
45} // namespace internal
46PROTOBUF_NAMESPACE_CLOSE
47
48// Internal implementation detail -- do not use these members.
52extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fmiddleware_2fprotobuf_2fpty_5fconfig_2eproto;
53namespace goby {
54namespace middleware {
55namespace protobuf {
56class PTYConfig;
57struct PTYConfigDefaultTypeInternal;
58extern PTYConfigDefaultTypeInternal _PTYConfig_default_instance_;
59} // namespace protobuf
60} // namespace middleware
61} // namespace goby
62PROTOBUF_NAMESPACE_OPEN
63template<> ::goby::middleware::protobuf::PTYConfig* Arena::CreateMaybeMessage<::goby::middleware::protobuf::PTYConfig>(Arena*);
64PROTOBUF_NAMESPACE_CLOSE
65namespace goby {
66namespace middleware {
67namespace protobuf {
68
69// ===================================================================
70
71class PTYConfig final :
72 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.middleware.protobuf.PTYConfig) */ {
73 public:
74 inline PTYConfig() : PTYConfig(nullptr) {}
75 ~PTYConfig() override;
76 explicit PROTOBUF_CONSTEXPR PTYConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
77
78 PTYConfig(const PTYConfig& from);
79 PTYConfig(PTYConfig&& from) noexcept
80 : PTYConfig() {
81 *this = ::std::move(from);
82 }
83
84 inline PTYConfig& operator=(const PTYConfig& from) {
85 CopyFrom(from);
86 return *this;
87 }
88 inline PTYConfig& operator=(PTYConfig&& from) noexcept {
89 if (this == &from) return *this;
90 if (GetOwningArena() == from.GetOwningArena()
91 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
92 && GetOwningArena() != nullptr
93 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
94 ) {
95 InternalSwap(&from);
96 } else {
97 CopyFrom(from);
98 }
99 return *this;
100 }
101
102 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
103 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
104 }
105 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
106 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
107 }
108
109 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
110 return GetDescriptor();
111 }
112 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
113 return default_instance().GetMetadata().descriptor;
114 }
115 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
116 return default_instance().GetMetadata().reflection;
117 }
118 static const PTYConfig& default_instance() {
120 }
121 static inline const PTYConfig* internal_default_instance() {
122 return reinterpret_cast<const PTYConfig*>(
124 }
125 static constexpr int kIndexInFileMessages =
126 0;
127
128 friend void swap(PTYConfig& a, PTYConfig& b) {
129 a.Swap(&b);
130 }
131 inline void Swap(PTYConfig* other) {
132 if (other == this) return;
133 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
134 if (GetOwningArena() != nullptr &&
135 GetOwningArena() == other->GetOwningArena()) {
136 #else // PROTOBUF_FORCE_COPY_IN_SWAP
137 if (GetOwningArena() == other->GetOwningArena()) {
138 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
139 InternalSwap(other);
140 } else {
141 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
142 }
143 }
145 if (other == this) return;
146 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
147 InternalSwap(other);
148 }
149
150 // implements Message ----------------------------------------------
151
152 PTYConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
153 return CreateMaybeMessage<PTYConfig>(arena);
154 }
155 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
156 void CopyFrom(const PTYConfig& from);
157 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
158 void MergeFrom( const PTYConfig& from) {
159 PTYConfig::MergeImpl(*this, from);
160 }
161 private:
162 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
163 public:
164 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
165 bool IsInitialized() const final;
166
167 size_t ByteSizeLong() const final;
168 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
170 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
171 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
172
173 private:
174 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
175 void SharedDtor();
176 void SetCachedSize(int size) const final;
177 void InternalSwap(PTYConfig* other);
178
179 private:
180 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
181 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
182 return "goby.middleware.protobuf.PTYConfig";
183 }
184 protected:
185 explicit PTYConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena,
186 bool is_message_owned = false);
187 public:
188
189 static const ClassData _class_data_;
190 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
191
192 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
193
194 // nested types ----------------------------------------------------
195
196 // accessors -------------------------------------------------------
197
198 enum : int {
202 };
203 // required string port = 1 [(.goby.field) = {
204 bool has_port() const;
205 private:
206 bool _internal_has_port() const;
207 public:
208 void clear_port();
209 const std::string& port() const;
210 template <typename ArgT0 = const std::string&, typename... ArgT>
211 void set_port(ArgT0&& arg0, ArgT... args);
212 std::string* mutable_port();
213 PROTOBUF_NODISCARD std::string* release_port();
214 void set_allocated_port(std::string* port);
215 private:
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();
219 public:
220
221 // optional string end_of_line = 3 [default = "\n", (.goby.field) = {
222 bool has_end_of_line() const;
223 private:
224 bool _internal_has_end_of_line() const;
225 public:
226 void clear_end_of_line();
227 const std::string& end_of_line() const;
228 template <typename ArgT0 = const std::string&, typename... ArgT>
229 void set_end_of_line(ArgT0&& arg0, ArgT... args);
230 std::string* mutable_end_of_line();
231 PROTOBUF_NODISCARD std::string* release_end_of_line();
232 void set_allocated_end_of_line(std::string* end_of_line);
233 private:
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();
237 public:
238
239 // optional uint32 baud = 2 [default = 115200, (.goby.field) = {
240 bool has_baud() const;
241 private:
242 bool _internal_has_baud() const;
243 public:
244 void clear_baud();
245 uint32_t baud() const;
246 void set_baud(uint32_t value);
247 private:
248 uint32_t _internal_baud() const;
249 void _internal_set_baud(uint32_t value);
250 public:
251
252 // @@protoc_insertion_point(class_scope:goby.middleware.protobuf.PTYConfig)
253 private:
254 class _Internal;
255
256 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
257 typedef void InternalArenaConstructable_;
258 typedef void DestructorSkippable_;
259 struct Impl_ {
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_;
265 uint32_t baud_;
266 };
267 union { Impl_ _impl_; };
268 friend struct ::TableStruct_goby_2fmiddleware_2fprotobuf_2fpty_5fconfig_2eproto;
269};
270// ===================================================================
271
272
273// ===================================================================
274
275#ifdef __GNUC__
276 #pragma GCC diagnostic push
277 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
278#endif // __GNUC__
279// PTYConfig
280
281// required string port = 1 [(.goby.field) = {
282inline bool PTYConfig::_internal_has_port() const {
283 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
284 return value;
285}
286inline bool PTYConfig::has_port() const {
287 return _internal_has_port();
288}
290 _impl_.port_.ClearToEmpty();
291 _impl_._has_bits_[0] &= ~0x00000001u;
292}
293inline const std::string& PTYConfig::port() const {
294 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.PTYConfig.port)
295 return _internal_port();
296}
297template <typename ArgT0, typename... ArgT>
298inline PROTOBUF_ALWAYS_INLINE
299void PTYConfig::set_port(ArgT0&& arg0, ArgT... args) {
300 _impl_._has_bits_[0] |= 0x00000001u;
301 _impl_.port_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
302 // @@protoc_insertion_point(field_set:goby.middleware.protobuf.PTYConfig.port)
303}
304inline std::string* PTYConfig::mutable_port() {
305 std::string* _s = _internal_mutable_port();
306 // @@protoc_insertion_point(field_mutable:goby.middleware.protobuf.PTYConfig.port)
307 return _s;
308}
309inline const std::string& PTYConfig::_internal_port() const {
310 return _impl_.port_.Get();
311}
312inline void PTYConfig::_internal_set_port(const std::string& value) {
313 _impl_._has_bits_[0] |= 0x00000001u;
314 _impl_.port_.Set(value, GetArenaForAllocation());
315}
316inline std::string* PTYConfig::_internal_mutable_port() {
317 _impl_._has_bits_[0] |= 0x00000001u;
318 return _impl_.port_.Mutable(GetArenaForAllocation());
319}
320inline std::string* PTYConfig::release_port() {
321 // @@protoc_insertion_point(field_release:goby.middleware.protobuf.PTYConfig.port)
322 if (!_internal_has_port()) {
323 return nullptr;
324 }
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());
330 }
331#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
332 return p;
333}
334inline void PTYConfig::set_allocated_port(std::string* port) {
335 if (port != nullptr) {
336 _impl_._has_bits_[0] |= 0x00000001u;
337 } else {
338 _impl_._has_bits_[0] &= ~0x00000001u;
339 }
340 _impl_.port_.SetAllocated(port, GetArenaForAllocation());
341#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
342 if (_impl_.port_.IsDefault()) {
343 _impl_.port_.Set("", GetArenaForAllocation());
344 }
345#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
346 // @@protoc_insertion_point(field_set_allocated:goby.middleware.protobuf.PTYConfig.port)
347}
348
349// optional uint32 baud = 2 [default = 115200, (.goby.field) = {
350inline bool PTYConfig::_internal_has_baud() const {
351 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
352 return value;
353}
354inline bool PTYConfig::has_baud() const {
355 return _internal_has_baud();
356}
358 _impl_.baud_ = 115200u;
359 _impl_._has_bits_[0] &= ~0x00000004u;
360}
361inline uint32_t PTYConfig::_internal_baud() const {
362 return _impl_.baud_;
363}
364inline uint32_t PTYConfig::baud() const {
365 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.PTYConfig.baud)
366 return _internal_baud();
367}
368inline void PTYConfig::_internal_set_baud(uint32_t value) {
369 _impl_._has_bits_[0] |= 0x00000004u;
370 _impl_.baud_ = value;
371}
372inline void PTYConfig::set_baud(uint32_t value) {
373 _internal_set_baud(value);
374 // @@protoc_insertion_point(field_set:goby.middleware.protobuf.PTYConfig.baud)
375}
376
377// optional string end_of_line = 3 [default = "\n", (.goby.field) = {
378inline bool PTYConfig::_internal_has_end_of_line() const {
379 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
380 return value;
381}
382inline bool PTYConfig::has_end_of_line() const {
383 return _internal_has_end_of_line();
384}
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;
388}
389inline const std::string& PTYConfig::end_of_line() const {
390 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.PTYConfig.end_of_line)
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();
393}
394template <typename ArgT0, typename... ArgT>
395inline PROTOBUF_ALWAYS_INLINE
396void PTYConfig::set_end_of_line(ArgT0&& arg0, ArgT... args) {
397 _impl_._has_bits_[0] |= 0x00000002u;
398 _impl_.end_of_line_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
399 // @@protoc_insertion_point(field_set:goby.middleware.protobuf.PTYConfig.end_of_line)
400}
401inline std::string* PTYConfig::mutable_end_of_line() {
402 std::string* _s = _internal_mutable_end_of_line();
403 // @@protoc_insertion_point(field_mutable:goby.middleware.protobuf.PTYConfig.end_of_line)
404 return _s;
405}
406inline const std::string& PTYConfig::_internal_end_of_line() const {
407 return _impl_.end_of_line_.Get();
408}
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());
412}
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());
416}
417inline std::string* PTYConfig::release_end_of_line() {
418 // @@protoc_insertion_point(field_release:goby.middleware.protobuf.PTYConfig.end_of_line)
419 if (!_internal_has_end_of_line()) {
420 return nullptr;
421 }
422 _impl_._has_bits_[0] &= ~0x00000002u;
423 auto* p = _impl_.end_of_line_.Release();
424 return p;
425}
427 if (end_of_line != nullptr) {
428 _impl_._has_bits_[0] |= 0x00000002u;
429 } else {
430 _impl_._has_bits_[0] &= ~0x00000002u;
431 }
432 _impl_.end_of_line_.SetAllocated(end_of_line, GetArenaForAllocation());
433 // @@protoc_insertion_point(field_set_allocated:goby.middleware.protobuf.PTYConfig.end_of_line)
434}
435
436#ifdef __GNUC__
437 #pragma GCC diagnostic pop
438#endif // __GNUC__
439
440// @@protoc_insertion_point(namespace_scope)
441
442} // namespace protobuf
443} // namespace middleware
444} // namespace goby
445
446// @@protoc_insertion_point(global_scope)
447
448#include <google/protobuf/port_undef.inc>
449#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fpty_5fconfig_2eproto
void set_end_of_line(ArgT0 &&arg0, ArgT... args)
const std::string & port() const
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)
void CopyFrom(const PTYConfig &from)
void MergeFrom(const PTYConfig &from)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
PTYConfig & operator=(const PTYConfig &from)
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)
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
PTYConfig & operator=(PTYConfig &&from) noexcept
PTYConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
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
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