4 #ifndef PROTOBUF_INCLUDED_ignition_2fmsgs_2fsonar_2eproto
5 #define PROTOBUF_INCLUDED_ignition_2fmsgs_2fsonar_2eproto
9 #include <google/protobuf/stubs/common.h>
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
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.
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>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/unknown_field_set.h>
37 #pragma GCC system_header
40 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
43 #include <sys/sysmacros.h>
48 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2fsonar_2eproto IGNITION_MSGS_VISIBLE
53 static const ::google::protobuf::internal::ParseTableField entries[];
54 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
55 static const ::google::protobuf::internal::ParseTable schema[1];
56 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
57 static const ::google::protobuf::internal::SerializationTable serialization_table[];
58 static const ::google::protobuf::uint32 offsets[];
65 class SonarDefaultTypeInternal;
71 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Sonar* Arena::CreateMaybeMessage<::ignition::msgs::Sonar>(Arena*);
79 class IGNITION_MSGS_VISIBLE
Sonar :
public ::google::protobuf::Message {
93 *
this = ::std::move(from);
96 inline Sonar& operator=(Sonar&& from) noexcept {
97 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
98 if (
this != &from) InternalSwap(&from);
105 static const ::google::protobuf::Descriptor* descriptor();
106 static const Sonar& default_instance();
108 static void InitAsDefaultInstance();
110 return reinterpret_cast<const Sonar*
>(
113 static constexpr
int kIndexInFileMessages =
116 void Swap(
Sonar* other);
124 return CreateMaybeMessage<Sonar>(NULL);
127 Sonar*
New(::google::protobuf::Arena* arena)
const final {
128 return CreateMaybeMessage<Sonar>(arena);
130 void CopyFrom(const ::google::protobuf::Message& from)
final;
131 void MergeFrom(const ::google::protobuf::Message& from)
final;
132 void CopyFrom(
const Sonar& from);
133 void MergeFrom(
const Sonar& from);
135 bool IsInitialized() const final;
137 size_t ByteSizeLong() const final;
138 bool MergePartialFromCodedStream(
139 ::
google::protobuf::io::CodedInputStream* input) final;
140 void SerializeWithCachedSizes(
141 ::
google::protobuf::io::CodedOutputStream* output) const final;
142 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
143 bool deterministic, ::
google::protobuf::uint8* target) const final;
144 int GetCachedSize() const final {
return _cached_size_.Get(); }
149 void SetCachedSize(
int size)
const final;
150 void InternalSwap(
Sonar* other);
152 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
155 inline void* MaybeArenaPtr()
const {
160 ::google::protobuf::Metadata GetMetadata() const final;
168 static const
int kFrameFieldNumber = 2;
169 const ::
std::
string& frame() const;
170 void set_frame(const ::
std::
string& value);
174 void set_frame(
const char* value);
175 void set_frame(
const char* value,
size_t size);
181 void clear_geometry();
182 static const int kGeometryFieldNumber = 8;
183 const ::std::string& geometry()
const;
184 void set_geometry(const ::std::string& value);
188 void set_geometry(
const char* value);
189 void set_geometry(
const char* value,
size_t size);
192 void set_allocated_geometry(::
std::string* geometry);
195 bool has_header()
const;
197 static const int kHeaderFieldNumber = 1;
199 const ::ignition::msgs::Header& _internal_header()
const;
201 const ::ignition::msgs::Header& header()
const;
207 bool has_world_pose()
const;
208 void clear_world_pose();
209 static const int kWorldPoseFieldNumber = 3;
211 const ::ignition::msgs::Pose& _internal_world_pose()
const;
213 const ::ignition::msgs::Pose& world_pose()
const;
219 bool has_contact()
const;
220 void clear_contact();
221 static const int kContactFieldNumber = 9;
223 const ::ignition::msgs::Vector3d& _internal_contact()
const;
225 const ::ignition::msgs::Vector3d& contact()
const;
231 void clear_range_min();
232 static const int kRangeMinFieldNumber = 4;
233 double range_min()
const;
234 void set_range_min(
double value);
237 void clear_range_max();
238 static const int kRangeMaxFieldNumber = 5;
239 double range_max()
const;
240 void set_range_max(
double value);
244 static const int kRadiusFieldNumber = 6;
245 double radius()
const;
246 void set_radius(
double value);
250 static const int kRangeFieldNumber = 7;
251 double range()
const;
252 void set_range(
double value);
257 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
258 ::google::protobuf::internal::ArenaStringPtr frame_;
259 ::google::protobuf::internal::ArenaStringPtr geometry_;
267 mutable ::google::protobuf::internal::CachedSize _cached_size_;
268 friend struct ::protobuf_ignition_2fmsgs_2fsonar_2eproto::TableStruct;
276 #pragma GCC diagnostic push
277 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
285 inline const ::ignition::msgs::Header& Sonar::_internal_header()
const {
289 const ::ignition::msgs::Header* p = header_;
303 if (header_ == NULL) {
304 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
311 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
312 if (message_arena == NULL) {
313 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
316 ::google::protobuf::Arena* submessage_arena = NULL;
317 if (message_arena != submessage_arena) {
318 header = ::google::protobuf::internal::GetOwnedMessage(
319 message_arena,
header, submessage_arena);
331 frame_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
335 return frame_.GetNoArena();
339 frame_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
346 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
351 GOOGLE_DCHECK(value != NULL);
353 frame_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
358 frame_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
359 ::
std::string(
reinterpret_cast<const char*
>(value), size));
365 return frame_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
370 return frame_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
378 frame_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
frame);
386 inline const ::ignition::msgs::Pose& Sonar::_internal_world_pose()
const {
390 const ::ignition::msgs::Pose* p = world_pose_;
404 if (world_pose_ == NULL) {
405 auto* p = CreateMaybeMessage<::ignition::msgs::Pose>(GetArenaNoVirtual());
412 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
413 if (message_arena == NULL) {
414 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(world_pose_);
417 ::google::protobuf::Arena* submessage_arena = NULL;
418 if (message_arena != submessage_arena) {
419 world_pose = ::google::protobuf::internal::GetOwnedMessage(
488 geometry_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
492 return geometry_.GetNoArena();
496 geometry_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
502 geometry_.SetNoArena(
503 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
508 GOOGLE_DCHECK(value != NULL);
510 geometry_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
515 geometry_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
516 ::
std::string(
reinterpret_cast<const char*
>(value), size));
522 return geometry_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
527 return geometry_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
535 geometry_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
geometry);
543 inline const ::ignition::msgs::Vector3d& Sonar::_internal_contact()
const {
547 const ::ignition::msgs::Vector3d* p = contact_;
561 if (contact_ == NULL) {
562 auto* p = CreateMaybeMessage<::ignition::msgs::Vector3d>(GetArenaNoVirtual());
569 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
570 if (message_arena == NULL) {
571 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(contact_);
574 ::google::protobuf::Arena* submessage_arena = NULL;
575 if (message_arena != submessage_arena) {
576 contact = ::google::protobuf::internal::GetOwnedMessage(
577 message_arena,
contact, submessage_arena);
588 #pragma GCC diagnostic pop
605 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2fsonar_2eproto