JaiaBot 2.1.1
JaiaBot micro-AUV software
 
Loading...
Searching...
No Matches
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 GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fexample_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fexample_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>
24#include <google/protobuf/arena.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>
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#include <google/protobuf/port_def.inc>
39#define PROTOBUF_INTERNAL_EXPORT_jaiabot_2fmessages_2fexample_2eproto
40PROTOBUF_NAMESPACE_OPEN
41namespace internal {
42class AnyMetadata;
43} // namespace internal
44PROTOBUF_NAMESPACE_CLOSE
45
46// Internal implementation detail -- do not use these members.
48 static const uint32_t offsets[];
49};
50extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2fexample_2eproto;
51namespace jaiabot {
52namespace protobuf {
53class Example;
54struct ExampleDefaultTypeInternal;
55extern ExampleDefaultTypeInternal _Example_default_instance_;
56} // namespace protobuf
57} // namespace jaiabot
58PROTOBUF_NAMESPACE_OPEN
59template<> ::jaiabot::protobuf::Example* Arena::CreateMaybeMessage<::jaiabot::protobuf::Example>(Arena*);
60PROTOBUF_NAMESPACE_CLOSE
61namespace jaiabot {
62namespace protobuf {
63
64// ===================================================================
65
66class Example final :
67 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:jaiabot.protobuf.Example) */ {
68 public:
69 inline Example() : Example(nullptr) {}
70 ~Example() override;
71 explicit PROTOBUF_CONSTEXPR Example(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
72
73 Example(const Example& from);
74 Example(Example&& from) noexcept
75 : Example() {
76 *this = ::std::move(from);
77 }
78
79 inline Example& operator=(const Example& from) {
80 CopyFrom(from);
81 return *this;
82 }
83 inline Example& operator=(Example&& from) noexcept {
84 if (this == &from) return *this;
85 if (GetOwningArena() == from.GetOwningArena()
86 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
87 && GetOwningArena() != nullptr
88 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
89 ) {
90 InternalSwap(&from);
91 } else {
92 CopyFrom(from);
93 }
94 return *this;
95 }
96
97 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
98 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
99 }
100 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
101 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
102 }
103
104 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
105 return GetDescriptor();
106 }
107 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
108 return default_instance().GetMetadata().descriptor;
109 }
110 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
111 return default_instance().GetMetadata().reflection;
112 }
113 static const Example& default_instance() {
115 }
116 static inline const Example* internal_default_instance() {
117 return reinterpret_cast<const Example*>(
119 }
120 static constexpr int kIndexInFileMessages =
121 0;
122
123 friend void swap(Example& a, Example& b) {
124 a.Swap(&b);
125 }
126 inline void Swap(Example* other) {
127 if (other == this) return;
128 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
129 if (GetOwningArena() != nullptr &&
130 GetOwningArena() == other->GetOwningArena()) {
131 #else // PROTOBUF_FORCE_COPY_IN_SWAP
132 if (GetOwningArena() == other->GetOwningArena()) {
133 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
134 InternalSwap(other);
135 } else {
136 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
137 }
138 }
140 if (other == this) return;
141 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
142 InternalSwap(other);
143 }
144
145 // implements Message ----------------------------------------------
146
147 Example* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
148 return CreateMaybeMessage<Example>(arena);
149 }
150 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
151 void CopyFrom(const Example& from);
152 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
153 void MergeFrom( const Example& from) {
154 Example::MergeImpl(*this, from);
155 }
156 private:
157 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
158 public:
159 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
160 bool IsInitialized() const final;
161
162 size_t ByteSizeLong() const final;
163 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
165 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
166 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
167
168 private:
169 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
170 void SharedDtor();
171 void SetCachedSize(int size) const final;
172 void InternalSwap(Example* other);
173
174 private:
175 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
176 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
177 return "jaiabot.protobuf.Example";
178 }
179 protected:
180 explicit Example(::PROTOBUF_NAMESPACE_ID::Arena* arena,
181 bool is_message_owned = false);
182 public:
183
184 static const ClassData _class_data_;
185 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
186
187 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
188
189 // nested types ----------------------------------------------------
190
191 // accessors -------------------------------------------------------
192
193 enum : int {
196 };
197 // required double b = 2;
198 bool has_b() const;
199 private:
200 bool _internal_has_b() const;
201 public:
202 void clear_b();
203 double b() const;
204 void set_b(double value);
205 private:
206 double _internal_b() const;
207 void _internal_set_b(double value);
208 public:
209
210 // optional int32 a = 1;
211 bool has_a() const;
212 private:
213 bool _internal_has_a() const;
214 public:
215 void clear_a();
216 int32_t a() const;
217 void set_a(int32_t value);
218 private:
219 int32_t _internal_a() const;
220 void _internal_set_a(int32_t value);
221 public:
222
223 // @@protoc_insertion_point(class_scope:jaiabot.protobuf.Example)
224 private:
225 class _Internal;
226
227 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
228 typedef void InternalArenaConstructable_;
229 typedef void DestructorSkippable_;
230 struct Impl_ {
231 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
232 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
233 double b_;
234 int32_t a_;
235 };
236 union { Impl_ _impl_; };
237 friend struct ::TableStruct_jaiabot_2fmessages_2fexample_2eproto;
238};
239// ===================================================================
240
241
242// ===================================================================
243
244#ifdef __GNUC__
245 #pragma GCC diagnostic push
246 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
247#endif // __GNUC__
248// Example
249
250// optional int32 a = 1;
251inline bool Example::_internal_has_a() const {
252 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
253 return value;
254}
255inline bool Example::has_a() const {
256 return _internal_has_a();
257}
258inline void Example::clear_a() {
259 _impl_.a_ = 0;
260 _impl_._has_bits_[0] &= ~0x00000002u;
261}
262inline int32_t Example::_internal_a() const {
263 return _impl_.a_;
264}
265inline int32_t Example::a() const {
266 // @@protoc_insertion_point(field_get:jaiabot.protobuf.Example.a)
267 return _internal_a();
268}
269inline void Example::_internal_set_a(int32_t value) {
270 _impl_._has_bits_[0] |= 0x00000002u;
271 _impl_.a_ = value;
272}
273inline void Example::set_a(int32_t value) {
274 _internal_set_a(value);
275 // @@protoc_insertion_point(field_set:jaiabot.protobuf.Example.a)
276}
277
278// required double b = 2;
279inline bool Example::_internal_has_b() const {
280 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
281 return value;
282}
283inline bool Example::has_b() const {
284 return _internal_has_b();
285}
286inline void Example::clear_b() {
287 _impl_.b_ = 0;
288 _impl_._has_bits_[0] &= ~0x00000001u;
289}
290inline double Example::_internal_b() const {
291 return _impl_.b_;
292}
293inline double Example::b() const {
294 // @@protoc_insertion_point(field_get:jaiabot.protobuf.Example.b)
295 return _internal_b();
296}
297inline void Example::_internal_set_b(double value) {
298 _impl_._has_bits_[0] |= 0x00000001u;
299 _impl_.b_ = value;
300}
301inline void Example::set_b(double value) {
302 _internal_set_b(value);
303 // @@protoc_insertion_point(field_set:jaiabot.protobuf.Example.b)
304}
305
306#ifdef __GNUC__
307 #pragma GCC diagnostic pop
308#endif // __GNUC__
309
310// @@protoc_insertion_point(namespace_scope)
311
312} // namespace protobuf
313} // namespace jaiabot
314
315// @@protoc_insertion_point(global_scope)
316
317#include <google/protobuf/port_undef.inc>
318#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fexample_2eproto
Example(Example &&from) noexcept
Definition example.pb.h:74
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition example.pb.h:104
Example * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition example.pb.h:147
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
friend void swap(Example &a, Example &b)
Definition example.pb.h:123
static const ClassData _class_data_
Definition example.pb.h:184
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition example.pb.h:107
static const Example * internal_default_instance()
Definition example.pb.h:116
void CopyFrom(const Example &from)
void MergeFrom(const Example &from)
Definition example.pb.h:153
Example(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition example.pb.h:97
Example & operator=(Example &&from) noexcept
Definition example.pb.h:83
bool IsInitialized() const final
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
void Swap(Example *other)
Definition example.pb.h:126
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition example.pb.h:100
void set_b(double value)
Definition example.pb.h:301
void UnsafeArenaSwap(Example *other)
Definition example.pb.h:139
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
static const Example & default_instance()
Definition example.pb.h:113
size_t ByteSizeLong() const final
Example(const Example &from)
void set_a(int32_t value)
Definition example.pb.h:273
PROTOBUF_CONSTEXPR Example(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition example.pb.h:110
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
Example & operator=(const Example &from)
Definition example.pb.h:79
int GetCachedSize() const final
Definition example.pb.h:166
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static constexpr int kIndexInFileMessages
Definition example.pb.h:120
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2fexample_2eproto
ExampleDefaultTypeInternal _Example_default_instance_