4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fsonar_2eproto
5 #define PROTOBUF_INCLUDED_gz_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>
33 #include "gz/msgs/pose.pb.h"
34 #include "gz/msgs/vector3d.pb.h"
35 #include "gz/msgs/header.pb.h"
37 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fsonar_2eproto GZ_MSGS_VISIBLE
42 static const ::google::protobuf::internal::ParseTableField entries[];
43 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
44 static const ::google::protobuf::internal::ParseTable schema[1];
45 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
46 static const ::google::protobuf::internal::SerializationTable serialization_table[];
47 static const ::google::protobuf::uint32 offsets[];
54 class SonarDefaultTypeInternal;
60 template<> GZ_MSGS_VISIBLE ::gz::msgs::Sonar* Arena::CreateMaybeMessage<::gz::msgs::Sonar>(Arena*);
68 class GZ_MSGS_VISIBLE
Sonar :
public ::google::protobuf::Message {
82 *
this = ::std::move(from);
85 inline Sonar& operator=(Sonar&& from) noexcept {
86 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
87 if (
this != &from) InternalSwap(&from);
94 static const ::google::protobuf::Descriptor* descriptor();
95 static const Sonar& default_instance();
97 static void InitAsDefaultInstance();
99 return reinterpret_cast<const Sonar*
>(
102 static constexpr
int kIndexInFileMessages =
105 void Swap(
Sonar* other);
113 return CreateMaybeMessage<Sonar>(NULL);
116 Sonar*
New(::google::protobuf::Arena* arena)
const final {
117 return CreateMaybeMessage<Sonar>(arena);
119 void CopyFrom(const ::google::protobuf::Message& from)
final;
120 void MergeFrom(const ::google::protobuf::Message& from)
final;
121 void CopyFrom(
const Sonar& from);
122 void MergeFrom(
const Sonar& from);
124 bool IsInitialized() const final;
126 size_t ByteSizeLong() const final;
127 bool MergePartialFromCodedStream(
128 ::
google::protobuf::io::CodedInputStream* input) final;
129 void SerializeWithCachedSizes(
130 ::
google::protobuf::io::CodedOutputStream* output) const final;
131 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
132 bool deterministic, ::
google::protobuf::uint8* target) const final;
133 int GetCachedSize() const final {
return _cached_size_.Get(); }
138 void SetCachedSize(
int size)
const final;
139 void InternalSwap(
Sonar* other);
141 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
144 inline void* MaybeArenaPtr()
const {
149 ::google::protobuf::Metadata GetMetadata() const final;
157 static const
int kFrameFieldNumber = 2;
158 const ::
std::
string& frame() const;
159 void set_frame(const ::
std::
string& value);
163 void set_frame(
const char* value);
164 void set_frame(
const char* value,
size_t size);
170 void clear_geometry();
171 static const int kGeometryFieldNumber = 8;
172 const ::std::string& geometry()
const;
173 void set_geometry(const ::std::string& value);
177 void set_geometry(
const char* value);
178 void set_geometry(
const char* value,
size_t size);
181 void set_allocated_geometry(::
std::string* geometry);
184 bool has_header()
const;
186 static const int kHeaderFieldNumber = 1;
188 const ::gz::msgs::Header& _internal_header()
const;
190 const ::gz::msgs::Header& header()
const;
196 bool has_world_pose()
const;
197 void clear_world_pose();
198 static const int kWorldPoseFieldNumber = 3;
200 const ::gz::msgs::Pose& _internal_world_pose()
const;
202 const ::gz::msgs::Pose& world_pose()
const;
208 bool has_contact()
const;
209 void clear_contact();
210 static const int kContactFieldNumber = 9;
212 const ::gz::msgs::Vector3d& _internal_contact()
const;
214 const ::gz::msgs::Vector3d& contact()
const;
220 void clear_range_min();
221 static const int kRangeMinFieldNumber = 4;
222 double range_min()
const;
223 void set_range_min(
double value);
226 void clear_range_max();
227 static const int kRangeMaxFieldNumber = 5;
228 double range_max()
const;
229 void set_range_max(
double value);
233 static const int kRadiusFieldNumber = 6;
234 double radius()
const;
235 void set_radius(
double value);
239 static const int kRangeFieldNumber = 7;
240 double range()
const;
241 void set_range(
double value);
246 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
247 ::google::protobuf::internal::ArenaStringPtr frame_;
248 ::google::protobuf::internal::ArenaStringPtr geometry_;
256 mutable ::google::protobuf::internal::CachedSize _cached_size_;
257 friend struct ::protobuf_gz_2fmsgs_2fsonar_2eproto::TableStruct;
265 #pragma GCC diagnostic push
266 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
274 inline const ::gz::msgs::Header& Sonar::_internal_header()
const {
278 const ::gz::msgs::Header* p = header_;
292 if (header_ == NULL) {
293 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
300 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
301 if (message_arena == NULL) {
302 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
305 ::google::protobuf::Arena* submessage_arena = NULL;
306 if (message_arena != submessage_arena) {
307 header = ::google::protobuf::internal::GetOwnedMessage(
308 message_arena,
header, submessage_arena);
320 frame_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
324 return frame_.GetNoArena();
328 frame_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
335 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
340 GOOGLE_DCHECK(value != NULL);
342 frame_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
347 frame_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
348 ::
std::string(
reinterpret_cast<const char*
>(value), size));
354 return frame_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
359 return frame_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
367 frame_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
frame);
375 inline const ::gz::msgs::Pose& Sonar::_internal_world_pose()
const {
379 const ::gz::msgs::Pose* p = world_pose_;
381 return p != NULL ? *p : *
reinterpret_cast<const ::
gz::msgs::Pose*
>(
393 if (world_pose_ == NULL) {
394 auto* p = CreateMaybeMessage<::gz::msgs::Pose>(GetArenaNoVirtual());
401 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
402 if (message_arena == NULL) {
403 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(world_pose_);
406 ::google::protobuf::Arena* submessage_arena = NULL;
407 if (message_arena != submessage_arena) {
408 world_pose = ::google::protobuf::internal::GetOwnedMessage(
477 geometry_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
481 return geometry_.GetNoArena();
485 geometry_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
491 geometry_.SetNoArena(
492 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
497 GOOGLE_DCHECK(value != NULL);
499 geometry_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
504 geometry_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
505 ::
std::string(
reinterpret_cast<const char*
>(value), size));
511 return geometry_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
516 return geometry_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
524 geometry_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
geometry);
532 inline const ::gz::msgs::Vector3d& Sonar::_internal_contact()
const {
536 const ::gz::msgs::Vector3d* p = contact_;
550 if (contact_ == NULL) {
551 auto* p = CreateMaybeMessage<::gz::msgs::Vector3d>(GetArenaNoVirtual());
558 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
559 if (message_arena == NULL) {
560 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(contact_);
563 ::google::protobuf::Arena* submessage_arena = NULL;
564 if (message_arena != submessage_arena) {
565 contact = ::google::protobuf::internal::GetOwnedMessage(
566 message_arena,
contact, submessage_arena);
577 #pragma GCC diagnostic pop
587 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fsonar_2eproto