JaiaBot  1.19.0
JaiaBot micro-AUV software
config.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: bin/tool/config.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_bin_2ftool_2fconfig_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_bin_2ftool_2fconfig_2eproto
6 
7 #include <limits>
8 #include <string>
9 
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
14 #error your headers.
15 #endif
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.
20 #endif
21 
22 #include <google/protobuf/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.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>
31 #include <google/protobuf/message.h>
32 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
33 #include <google/protobuf/extension_set.h> // IWYU pragma: export
34 #include <google/protobuf/generated_enum_reflection.h>
35 #include <google/protobuf/unknown_field_set.h>
36 #include "goby/middleware/protobuf/app_config.pb.h"
37 #include "goby/protobuf/option_extensions.pb.h"
38 #include <boost/units/quantity.hpp>
39 #include <boost/units/absolute.hpp>
40 #include <boost/units/dimensionless_type.hpp>
41 #include <boost/units/make_scaled_unit.hpp>
42 // @@protoc_insertion_point(includes)
43 #include <google/protobuf/port_def.inc>
44 #define PROTOBUF_INTERNAL_EXPORT_bin_2ftool_2fconfig_2eproto
45 PROTOBUF_NAMESPACE_OPEN
46 namespace internal {
47 class AnyMetadata;
48 } // namespace internal
49 PROTOBUF_NAMESPACE_CLOSE
50 
51 // Internal implementation detail -- do not use these members.
53  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
54  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
55  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
56  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
57  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
58  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
59  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
60  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
61  static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
62 };
63 extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_bin_2ftool_2fconfig_2eproto;
64 namespace jaiabot {
65 namespace config {
66 class Tool;
67 class ToolDefaultTypeInternal;
68 extern ToolDefaultTypeInternal _Tool_default_instance_;
69 } // namespace config
70 } // namespace jaiabot
71 PROTOBUF_NAMESPACE_OPEN
72 template<> ::jaiabot::config::Tool* Arena::CreateMaybeMessage<::jaiabot::config::Tool>(Arena*);
73 PROTOBUF_NAMESPACE_CLOSE
74 namespace jaiabot {
75 namespace config {
76 
77 enum Tool_Action : int {
86  Tool_Action_doc = 9
87 };
88 bool Tool_Action_IsValid(int value);
92 
93 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Tool_Action_descriptor();
94 template<typename T>
95 inline const std::string& Tool_Action_Name(T enum_t_value) {
96  static_assert(::std::is_same<T, Tool_Action>::value ||
97  ::std::is_integral<T>::value,
98  "Incorrect type passed to function Tool_Action_Name.");
99  return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
100  Tool_Action_descriptor(), enum_t_value);
101 }
102 inline bool Tool_Action_Parse(
103  const std::string& name, Tool_Action* value) {
104  return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Tool_Action>(
105  Tool_Action_descriptor(), name, value);
106 }
107 // ===================================================================
108 
109 class Tool PROTOBUF_FINAL :
110  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:jaiabot.config.Tool) */ {
111  public:
112  inline Tool() : Tool(nullptr) {};
113  virtual ~Tool();
114 
115  Tool(const Tool& from);
116  Tool(Tool&& from) noexcept
117  : Tool() {
118  *this = ::std::move(from);
119  }
120 
121  inline Tool& operator=(const Tool& from) {
122  CopyFrom(from);
123  return *this;
124  }
125  inline Tool& operator=(Tool&& from) noexcept {
126  if (GetArena() == from.GetArena()) {
127  if (this != &from) InternalSwap(&from);
128  } else {
129  CopyFrom(from);
130  }
131  return *this;
132  }
133 
134  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
135  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
136  }
137  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
138  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
139  }
140 
141  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
142  return GetDescriptor();
143  }
144  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
145  return GetMetadataStatic().descriptor;
146  }
147  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
148  return GetMetadataStatic().reflection;
149  }
150  static const Tool& default_instance();
151 
152  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
153  static inline const Tool* internal_default_instance() {
154  return reinterpret_cast<const Tool*>(
156  }
157  static constexpr int kIndexInFileMessages =
158  0;
159 
160  friend void swap(Tool& a, Tool& b) {
161  a.Swap(&b);
162  }
163  inline void Swap(Tool* other) {
164  if (other == this) return;
165  if (GetArena() == other->GetArena()) {
166  InternalSwap(other);
167  } else {
168  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
169  }
170  }
171  void UnsafeArenaSwap(Tool* other) {
172  if (other == this) return;
173  GOOGLE_DCHECK(GetArena() == other->GetArena());
174  InternalSwap(other);
175  }
176 
177  // implements Message ----------------------------------------------
178 
179  inline Tool* New() const final {
180  return CreateMaybeMessage<Tool>(nullptr);
181  }
182 
183  Tool* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
184  return CreateMaybeMessage<Tool>(arena);
185  }
186  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
187  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
188  void CopyFrom(const Tool& from);
189  void MergeFrom(const Tool& from);
190  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
191  bool IsInitialized() const final;
192 
193  size_t ByteSizeLong() const final;
194  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
195  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
196  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
197  int GetCachedSize() const final { return _cached_size_.Get(); }
198 
199  private:
200  inline void SharedCtor();
201  inline void SharedDtor();
202  void SetCachedSize(int size) const final;
203  void InternalSwap(Tool* other);
204  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
205  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
206  return "jaiabot.config.Tool";
207  }
208  protected:
209  explicit Tool(::PROTOBUF_NAMESPACE_ID::Arena* arena);
210  private:
211  static void ArenaDtor(void* object);
212  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
213  public:
214 
215  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
216  private:
217  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
218  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_bin_2ftool_2fconfig_2eproto);
219  return ::descriptor_table_bin_2ftool_2fconfig_2eproto.file_level_metadata[kIndexInFileMessages];
220  }
221 
222  public:
223 
224  // nested types ----------------------------------------------------
225 
227  static constexpr Action help =
229  static constexpr Action status =
231  static constexpr Action ctl =
233  static constexpr Action version =
235  static constexpr Action ip =
237  static constexpr Action ssh =
239  static constexpr Action ping =
241  static constexpr Action admin =
243  static constexpr Action doc =
245  static inline bool Action_IsValid(int value) {
246  return Tool_Action_IsValid(value);
247  }
248  static constexpr Action Action_MIN =
250  static constexpr Action Action_MAX =
252  static constexpr int Action_ARRAYSIZE =
254  static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
256  return Tool_Action_descriptor();
257  }
258  template<typename T>
259  static inline const std::string& Action_Name(T enum_t_value) {
260  static_assert(::std::is_same<T, Action>::value ||
261  ::std::is_integral<T>::value,
262  "Incorrect type passed to function Action_Name.");
263  return Tool_Action_Name(enum_t_value);
264  }
265  static inline bool Action_Parse(const std::string& name,
266  Action* value) {
267  return Tool_Action_Parse(name, value);
268  }
269 
270  // accessors -------------------------------------------------------
271 
272  enum : int {
273  kAppFieldNumber = 1,
274  kActionFieldNumber = 2,
275  };
276  // optional .goby.middleware.protobuf.AppConfig app = 1 [(.goby.field) = {
277  bool has_app() const;
278  private:
279  bool _internal_has_app() const;
280  public:
281  void clear_app();
282  const ::goby::middleware::protobuf::AppConfig& app() const;
283  ::goby::middleware::protobuf::AppConfig* release_app();
284  ::goby::middleware::protobuf::AppConfig* mutable_app();
285  void set_allocated_app(::goby::middleware::protobuf::AppConfig* app);
286  private:
287  const ::goby::middleware::protobuf::AppConfig& _internal_app() const;
288  ::goby::middleware::protobuf::AppConfig* _internal_mutable_app();
289  public:
291  ::goby::middleware::protobuf::AppConfig* app);
292  ::goby::middleware::protobuf::AppConfig* unsafe_arena_release_app();
293 
294  // optional .jaiabot.config.Tool.Action action = 2 [default = help, (.goby.field) = {
295  bool has_action() const;
296  private:
297  bool _internal_has_action() const;
298  public:
299  void clear_action();
302  private:
303  ::jaiabot::config::Tool_Action _internal_action() const;
304  void _internal_set_action(::jaiabot::config::Tool_Action value);
305  public:
306 
307  // @@protoc_insertion_point(class_scope:jaiabot.config.Tool)
308  private:
309  class _Internal;
310 
311  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
312  typedef void InternalArenaConstructable_;
313  typedef void DestructorSkippable_;
314  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
315  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
316  ::goby::middleware::protobuf::AppConfig* app_;
317  int action_;
318  friend struct ::TableStruct_bin_2ftool_2fconfig_2eproto;
319 };
320 // ===================================================================
321 
322 
323 // ===================================================================
324 
325 #ifdef __GNUC__
326  #pragma GCC diagnostic push
327  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
328 #endif // __GNUC__
329 // Tool
330 
331 // optional .goby.middleware.protobuf.AppConfig app = 1 [(.goby.field) = {
332 inline bool Tool::_internal_has_app() const {
333  bool value = (_has_bits_[0] & 0x00000001u) != 0;
334  PROTOBUF_ASSUME(!value || app_ != nullptr);
335  return value;
336 }
337 inline bool Tool::has_app() const {
338  return _internal_has_app();
339 }
340 inline const ::goby::middleware::protobuf::AppConfig& Tool::_internal_app() const {
341  const ::goby::middleware::protobuf::AppConfig* p = app_;
342  return p != nullptr ? *p : *reinterpret_cast<const ::goby::middleware::protobuf::AppConfig*>(
343  &::goby::middleware::protobuf::_AppConfig_default_instance_);
344 }
345 inline const ::goby::middleware::protobuf::AppConfig& Tool::app() const {
346  // @@protoc_insertion_point(field_get:jaiabot.config.Tool.app)
347  return _internal_app();
348 }
349 inline void Tool::unsafe_arena_set_allocated_app(
350  ::goby::middleware::protobuf::AppConfig* app) {
351  if (GetArena() == nullptr) {
352  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(app_);
353  }
354  app_ = app;
355  if (app) {
356  _has_bits_[0] |= 0x00000001u;
357  } else {
358  _has_bits_[0] &= ~0x00000001u;
359  }
360  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:jaiabot.config.Tool.app)
361 }
362 inline ::goby::middleware::protobuf::AppConfig* Tool::release_app() {
363  auto temp = unsafe_arena_release_app();
364  if (GetArena() != nullptr) {
365  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
366  }
367  return temp;
368 }
369 inline ::goby::middleware::protobuf::AppConfig* Tool::unsafe_arena_release_app() {
370  // @@protoc_insertion_point(field_release:jaiabot.config.Tool.app)
371  _has_bits_[0] &= ~0x00000001u;
372  ::goby::middleware::protobuf::AppConfig* temp = app_;
373  app_ = nullptr;
374  return temp;
375 }
376 inline ::goby::middleware::protobuf::AppConfig* Tool::_internal_mutable_app() {
377  _has_bits_[0] |= 0x00000001u;
378  if (app_ == nullptr) {
379  auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArena());
380  app_ = p;
381  }
382  return app_;
383 }
384 inline ::goby::middleware::protobuf::AppConfig* Tool::mutable_app() {
385  // @@protoc_insertion_point(field_mutable:jaiabot.config.Tool.app)
386  return _internal_mutable_app();
387 }
388 inline void Tool::set_allocated_app(::goby::middleware::protobuf::AppConfig* app) {
389  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
390  if (message_arena == nullptr) {
391  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(app_);
392  }
393  if (app) {
394  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
395  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(app)->GetArena();
396  if (message_arena != submessage_arena) {
397  app = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
398  message_arena, app, submessage_arena);
399  }
400  _has_bits_[0] |= 0x00000001u;
401  } else {
402  _has_bits_[0] &= ~0x00000001u;
403  }
404  app_ = app;
405  // @@protoc_insertion_point(field_set_allocated:jaiabot.config.Tool.app)
406 }
407 
408 // optional .jaiabot.config.Tool.Action action = 2 [default = help, (.goby.field) = {
409 inline bool Tool::_internal_has_action() const {
410  bool value = (_has_bits_[0] & 0x00000002u) != 0;
411  return value;
412 }
413 inline bool Tool::has_action() const {
414  return _internal_has_action();
415 }
416 inline void Tool::clear_action() {
417  action_ = 0;
418  _has_bits_[0] &= ~0x00000002u;
419 }
420 inline ::jaiabot::config::Tool_Action Tool::_internal_action() const {
421  return static_cast< ::jaiabot::config::Tool_Action >(action_);
422 }
423 inline ::jaiabot::config::Tool_Action Tool::action() const {
424  // @@protoc_insertion_point(field_get:jaiabot.config.Tool.action)
425  return _internal_action();
426 }
427 inline void Tool::_internal_set_action(::jaiabot::config::Tool_Action value) {
428  assert(::jaiabot::config::Tool_Action_IsValid(value));
429  _has_bits_[0] |= 0x00000002u;
430  action_ = value;
431 }
432 inline void Tool::set_action(::jaiabot::config::Tool_Action value) {
433  _internal_set_action(value);
434  // @@protoc_insertion_point(field_set:jaiabot.config.Tool.action)
435 }
436 
437 #ifdef __GNUC__
438  #pragma GCC diagnostic pop
439 #endif // __GNUC__
440 
441 // @@protoc_insertion_point(namespace_scope)
442 
443 } // namespace config
444 } // namespace jaiabot
445 
446 PROTOBUF_NAMESPACE_OPEN
447 
448 template <> struct is_proto_enum< ::jaiabot::config::Tool_Action> : ::std::true_type {};
449 template <>
450 inline const EnumDescriptor* GetEnumDescriptor< ::jaiabot::config::Tool_Action>() {
452 }
453 
454 PROTOBUF_NAMESPACE_CLOSE
455 
456 // @@protoc_insertion_point(global_scope)
457 
458 #include <google/protobuf/port_undef.inc>
459 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_bin_2ftool_2fconfig_2eproto
static const Tool * internal_default_instance()
Definition: config.pb.h:153
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition: config.pb.h:137
static bool Action_IsValid(int value)
Definition: config.pb.h:245
void CopyFrom(const Tool &from)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
const ::goby::middleware::protobuf::AppConfig & app() const
Tool & operator=(const Tool &from)
Definition: config.pb.h:121
Tool * New() const final
Definition: config.pb.h:179
::goby::middleware::protobuf::AppConfig * unsafe_arena_release_app()
Tool * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: config.pb.h:183
::goby::middleware::protobuf::AppConfig * release_app()
Tool(::PROTOBUF_NAMESPACE_ID::Arena *arena)
static bool Action_Parse(const std::string &name, Action *value)
Definition: config.pb.h:265
::jaiabot::config::Tool_Action action() const
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: config.pb.h:147
static const std::string & Action_Name(T enum_t_value)
Definition: config.pb.h:259
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: config.pb.h:144
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition: config.pb.h:134
void MergeFrom(const Tool &from)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void set_action(::jaiabot::config::Tool_Action value)
Tool(Tool &&from) noexcept
Definition: config.pb.h:116
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Action_descriptor()
Definition: config.pb.h:255
friend void swap(Tool &a, Tool &b)
Definition: config.pb.h:160
void UnsafeArenaSwap(Tool *other)
Definition: config.pb.h:171
Tool & operator=(Tool &&from) noexcept
Definition: config.pb.h:125
::goby::middleware::protobuf::AppConfig * mutable_app()
void unsafe_arena_set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
void set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
static const Tool & default_instance()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: config.pb.h:141
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
constexpr int Tool_Action_Action_ARRAYSIZE
Definition: config.pb.h:91
constexpr Tool_Action Tool_Action_Action_MIN
Definition: config.pb.h:89
bool Tool_Action_Parse(const std::string &name, Tool_Action *value)
Definition: config.pb.h:102
ToolDefaultTypeInternal _Tool_default_instance_
constexpr Tool_Action Tool_Action_Action_MAX
Definition: config.pb.h:90
bool Tool_Action_IsValid(int value)
const std::string & Tool_Action_Name(T enum_t_value)
Definition: config.pb.h:95
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Tool_Action_descriptor()
extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig, ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::jaiabot::udp::protobuf::Config >, 11, false > config
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
Definition: config.pb.h:60
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
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::uint32 offsets[]
Definition: config.pb.h:61
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
Definition: config.pb.h:59
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_bin_2ftool_2fconfig_2eproto