JaiaBot  1.19.0
JaiaBot micro-AUV software
example.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: jaiabot/messages/example.proto
3 
4 #ifndef PROTOBUF_INCLUDED_jaiabot_2fmessages_2fexample_2eproto
5 #define PROTOBUF_INCLUDED_jaiabot_2fmessages_2fexample_2eproto
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
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 3006001 < GOOGLE_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/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
29 #include <google/protobuf/message.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>
33 #include <boost/units/quantity.hpp>
34 #include <boost/units/absolute.hpp>
35 #include <boost/units/dimensionless_type.hpp>
36 #include <boost/units/make_scaled_unit.hpp>
37 // @@protoc_insertion_point(includes)
38 #define PROTOBUF_INTERNAL_EXPORT_protobuf_jaiabot_2fmessages_2fexample_2eproto
39 
41 // Internal implementation detail -- do not use these members.
42 struct TableStruct {
43  static const ::google::protobuf::internal::ParseTableField entries[];
44  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
45  static const ::google::protobuf::internal::ParseTable schema[1];
46  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
47  static const ::google::protobuf::internal::SerializationTable serialization_table[];
48  static const ::google::protobuf::uint32 offsets[];
49 };
50 void AddDescriptors();
51 } // namespace protobuf_jaiabot_2fmessages_2fexample_2eproto
52 namespace jaiabot {
53 namespace protobuf {
54 class Example;
55 class ExampleDefaultTypeInternal;
56 extern ExampleDefaultTypeInternal _Example_default_instance_;
57 } // namespace protobuf
58 } // namespace jaiabot
59 namespace google {
60 namespace protobuf {
61 template<> ::jaiabot::protobuf::Example* Arena::CreateMaybeMessage<::jaiabot::protobuf::Example>(Arena*);
62 } // namespace protobuf
63 } // namespace google
64 namespace jaiabot {
65 namespace protobuf {
66 
67 // ===================================================================
68 
69 class Example : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:jaiabot.protobuf.Example) */ {
70  public:
71  Example();
72  virtual ~Example();
73 
74  Example(const Example& from);
75 
76  inline Example& operator=(const Example& from) {
77  CopyFrom(from);
78  return *this;
79  }
80  #if LANG_CXX11
81  Example(Example&& from) noexcept
82  : Example() {
83  *this = ::std::move(from);
84  }
85 
86  inline Example& operator=(Example&& from) noexcept {
87  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
88  if (this != &from) InternalSwap(&from);
89  } else {
90  CopyFrom(from);
91  }
92  return *this;
93  }
94  #endif
95  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
96  return _internal_metadata_.unknown_fields();
97  }
98  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
99  return _internal_metadata_.mutable_unknown_fields();
100  }
101 
102  static const ::google::protobuf::Descriptor* descriptor();
103  static const Example& default_instance();
104 
105  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
106  static inline const Example* internal_default_instance() {
107  return reinterpret_cast<const Example*>(
109  }
110  static constexpr int kIndexInFileMessages =
111  0;
112 
113  void Swap(Example* other);
114  friend void swap(Example& a, Example& b) {
115  a.Swap(&b);
116  }
117 
118  // implements Message ----------------------------------------------
119 
120  inline Example* New() const final {
121  return CreateMaybeMessage<Example>(NULL);
122  }
123 
124  Example* New(::google::protobuf::Arena* arena) const final {
125  return CreateMaybeMessage<Example>(arena);
126  }
127  void CopyFrom(const ::google::protobuf::Message& from) final;
128  void MergeFrom(const ::google::protobuf::Message& from) final;
129  void CopyFrom(const Example& from);
130  void MergeFrom(const Example& from);
131  void Clear() final;
132  bool IsInitialized() const final;
133 
134  size_t ByteSizeLong() const final;
136  ::google::protobuf::io::CodedInputStream* input) final;
138  ::google::protobuf::io::CodedOutputStream* output) const final;
140  bool deterministic, ::google::protobuf::uint8* target) const final;
141  int GetCachedSize() const final { return _cached_size_.Get(); }
142 
143  private:
144  void SharedCtor();
145  void SharedDtor();
146  void SetCachedSize(int size) const final;
147  void InternalSwap(Example* other);
148  private:
149  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
150  return NULL;
151  }
152  inline void* MaybeArenaPtr() const {
153  return NULL;
154  }
155  public:
156 
157  ::google::protobuf::Metadata GetMetadata() const final;
158 
159  // nested types ----------------------------------------------------
160 
161  // accessors -------------------------------------------------------
162 
163  // required double b = 2;
164  bool has_b() const;
165  void clear_b();
166  static const int kBFieldNumber = 2;
167  double b() const;
168  void set_b(double value);
169 
170  // optional int32 a = 1;
171  bool has_a() const;
172  void clear_a();
173  static const int kAFieldNumber = 1;
174  ::google::protobuf::int32 a() const;
175  void set_a(::google::protobuf::int32 value);
176 
177  // @@protoc_insertion_point(class_scope:jaiabot.protobuf.Example)
178  private:
179  void set_has_a();
180  void clear_has_a();
181  void set_has_b();
182  void clear_has_b();
183 
184  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
185  ::google::protobuf::internal::HasBits<1> _has_bits_;
186  mutable ::google::protobuf::internal::CachedSize _cached_size_;
187  double b_;
188  ::google::protobuf::int32 a_;
189  friend struct ::protobuf_jaiabot_2fmessages_2fexample_2eproto::TableStruct;
190 };
191 // ===================================================================
192 
193 
194 // ===================================================================
195 
196 #ifdef __GNUC__
197  #pragma GCC diagnostic push
198  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
199 #endif // __GNUC__
200 // Example
201 
202 // optional int32 a = 1;
203 inline bool Example::has_a() const {
204  return (_has_bits_[0] & 0x00000002u) != 0;
205 }
206 inline void Example::set_has_a() {
207  _has_bits_[0] |= 0x00000002u;
208 }
209 inline void Example::clear_has_a() {
210  _has_bits_[0] &= ~0x00000002u;
211 }
212 inline void Example::clear_a() {
213  a_ = 0;
214  clear_has_a();
215 }
216 inline ::google::protobuf::int32 Example::a() const {
217  // @@protoc_insertion_point(field_get:jaiabot.protobuf.Example.a)
218  return a_;
219 }
220 inline void Example::set_a(::google::protobuf::int32 value) {
221  set_has_a();
222  a_ = value;
223  // @@protoc_insertion_point(field_set:jaiabot.protobuf.Example.a)
224 }
225 
226 // required double b = 2;
227 inline bool Example::has_b() const {
228  return (_has_bits_[0] & 0x00000001u) != 0;
229 }
230 inline void Example::set_has_b() {
231  _has_bits_[0] |= 0x00000001u;
232 }
233 inline void Example::clear_has_b() {
234  _has_bits_[0] &= ~0x00000001u;
235 }
236 inline void Example::clear_b() {
237  b_ = 0;
238  clear_has_b();
239 }
240 inline double Example::b() const {
241  // @@protoc_insertion_point(field_get:jaiabot.protobuf.Example.b)
242  return b_;
243 }
244 inline void Example::set_b(double value) {
245  set_has_b();
246  b_ = value;
247  // @@protoc_insertion_point(field_set:jaiabot.protobuf.Example.b)
248 }
249 
250 #ifdef __GNUC__
251  #pragma GCC diagnostic pop
252 #endif // __GNUC__
253 
254 // @@protoc_insertion_point(namespace_scope)
255 
256 } // namespace protobuf
257 } // namespace jaiabot
258 
259 // @@protoc_insertion_point(global_scope)
260 
261 #endif // PROTOBUF_INCLUDED_jaiabot_2fmessages_2fexample_2eproto
protobuf_jaiabot_2fmessages_2fexample_2eproto::TableStruct::entries
static const ::google::protobuf::internal::ParseTableField entries[]
Definition: example.pb.h:43
jaiabot::protobuf::Example::set_b
void set_b(double value)
Definition: example.pb.h:244
jaiabot::protobuf::Example::Swap
void Swap(Example *other)
jaiabot::protobuf::Example::clear_a
void clear_a()
Definition: example.pb.h:212
protobuf_jaiabot_2fmessages_2fexample_2eproto::TableStruct::field_metadata
static const ::google::protobuf::internal::FieldMetadata field_metadata[]
Definition: example.pb.h:46
jaiabot::protobuf::Example::b
double b() const
Definition: example.pb.h:240
jaiabot::protobuf::Example::InternalSerializeWithCachedSizesToArray
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(bool deterministic, ::google::protobuf::uint8 *target) const final
jaiabot::protobuf::Example::swap
friend void swap(Example &a, Example &b)
Definition: example.pb.h:114
jaiabot::protobuf::Example::Example
Example()
jaiabot::protobuf::Example::unknown_fields
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: example.pb.h:95
jaiabot::protobuf::Example::MergeFrom
void MergeFrom(const ::google::protobuf::Message &from) final
protobuf_jaiabot_2fmessages_2fexample_2eproto::AddDescriptors
void AddDescriptors()
jaiabot::protobuf::Example::New
Example * New(::google::protobuf::Arena *arena) const final
Definition: example.pb.h:124
jaiabot::protobuf::Example::mutable_unknown_fields
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: example.pb.h:98
jaiabot::protobuf::Example::Clear
void Clear() final
jaiabot::protobuf::Example::internal_default_instance
static const Example * internal_default_instance()
Definition: example.pb.h:106
jaiabot::protobuf::Example::kAFieldNumber
static const int kAFieldNumber
Definition: example.pb.h:173
jaiabot::protobuf::Example::~Example
virtual ~Example()
jaiabot::protobuf::Example::CopyFrom
void CopyFrom(const ::google::protobuf::Message &from) final
jaiabot::protobuf::Example::MergePartialFromCodedStream
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input) final
jaiabot::protobuf::Example
Definition: example.pb.h:69
protobuf_jaiabot_2fmessages_2fexample_2eproto::TableStruct
Definition: example.pb.h:42
jaiabot::protobuf::Example::InitAsDefaultInstance
static void InitAsDefaultInstance()
jaiabot::protobuf::Example::kIndexInFileMessages
static constexpr int kIndexInFileMessages
Definition: example.pb.h:110
jaiabot::protobuf::Example::SerializeWithCachedSizes
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const final
jaiabot::protobuf::Example::operator=
Example & operator=(const Example &from)
Definition: example.pb.h:76
jaiabot::protobuf::Example::New
Example * New() const final
Definition: example.pb.h:120
jaiabot::protobuf::Example::a
::google::protobuf::int32 a() const
Definition: example.pb.h:216
jaiabot::protobuf::Example::kBFieldNumber
static const int kBFieldNumber
Definition: example.pb.h:166
protobuf_jaiabot_2fmessages_2fexample_2eproto::TableStruct::aux
static const ::google::protobuf::internal::AuxillaryParseTableField aux[]
Definition: example.pb.h:44
jaiabot::protobuf::Example::GetMetadata
::google::protobuf::Metadata GetMetadata() const final
jaiabot::protobuf::Example::GetCachedSize
int GetCachedSize() const final
Definition: example.pb.h:141
jaiabot::protobuf::Example::clear_b
void clear_b()
Definition: example.pb.h:236
protobuf_jaiabot_2fmessages_2fexample_2eproto
Definition: example.pb.h:40
protobuf_jaiabot_2fmessages_2fexample_2eproto::TableStruct::schema
static const ::google::protobuf::internal::ParseTable schema[1]
Definition: example.pb.h:45
protobuf_jaiabot_2fmessages_2fexample_2eproto::TableStruct::offsets
static const ::google::protobuf::uint32 offsets[]
Definition: example.pb.h:48
jaiabot
Definition: config.pb.h:56
jaiabot::protobuf::Example::has_a
bool has_a() const
Definition: example.pb.h:203
jaiabot::protobuf::Example::default_instance
static const Example & default_instance()
jaiabot::protobuf::Example::ByteSizeLong
size_t ByteSizeLong() const final
jaiabot::protobuf::_Example_default_instance_
ExampleDefaultTypeInternal _Example_default_instance_
jaiabot::protobuf::Example::IsInitialized
bool IsInitialized() const final
jaiabot::protobuf::Example::set_a
void set_a(::google::protobuf::int32 value)
Definition: example.pb.h:220
jaiabot::protobuf::Example::has_b
bool has_b() const
Definition: example.pb.h:227
protobuf_jaiabot_2fmessages_2fexample_2eproto::TableStruct::serialization_table
static const ::google::protobuf::internal::SerializationTable serialization_table[]
Definition: example.pb.h:47
google
Definition: config.pb.h:63
jaiabot::protobuf::Example::descriptor
static const ::google::protobuf::Descriptor * descriptor()