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