4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2flidar_5fsensor_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2flidar_5fsensor_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/header.pb.h"
34 #include "gz/msgs/sensor_noise.pb.h"
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2flidar_5fsensor_2eproto GZ_MSGS_VISIBLE
41 static const ::google::protobuf::internal::ParseTableField entries[];
42 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
43 static const ::google::protobuf::internal::ParseTable schema[1];
44 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
45 static const ::google::protobuf::internal::SerializationTable serialization_table[];
46 static const ::google::protobuf::uint32 offsets[];
53 class LidarSensorDefaultTypeInternal;
59 template<> GZ_MSGS_VISIBLE ::gz::msgs::LidarSensor* Arena::CreateMaybeMessage<::gz::msgs::LidarSensor>(Arena*);
67 class GZ_MSGS_VISIBLE
LidarSensor :
public ::google::protobuf::Message {
81 *
this = ::std::move(from);
84 inline LidarSensor& operator=(LidarSensor&& from) noexcept {
85 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
86 if (
this != &from) InternalSwap(&from);
93 static const ::google::protobuf::Descriptor* descriptor();
94 static const LidarSensor& default_instance();
96 static void InitAsDefaultInstance();
101 static constexpr
int kIndexInFileMessages =
112 return CreateMaybeMessage<LidarSensor>(NULL);
116 return CreateMaybeMessage<LidarSensor>(arena);
118 void CopyFrom(const ::google::protobuf::Message& from)
final;
119 void MergeFrom(const ::google::protobuf::Message& from)
final;
123 bool IsInitialized() const final;
125 size_t ByteSizeLong() const final;
126 bool MergePartialFromCodedStream(
127 ::
google::protobuf::io::CodedInputStream* input) final;
128 void SerializeWithCachedSizes(
129 ::
google::protobuf::io::CodedOutputStream* output) const final;
130 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
131 bool deterministic, ::
google::protobuf::uint8* target) const final;
132 int GetCachedSize() const final {
return _cached_size_.Get(); }
137 void SetCachedSize(
int size)
const final;
140 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
143 inline void* MaybeArenaPtr()
const {
148 ::google::protobuf::Metadata GetMetadata() const final;
155 bool has_header() const;
157 static const
int kHeaderFieldNumber = 1;
159 const ::
gz::msgs::
Header& _internal_header() const;
161 const ::
gz::msgs::
Header& header() const;
162 ::
gz::msgs::
Header* release_header();
163 ::
gz::msgs::
Header* mutable_header();
164 void set_allocated_header(::
gz::msgs::
Header* header);
167 bool has_noise() const;
169 static const
int kNoiseFieldNumber = 14;
179 void clear_display_scan();
180 static const
int kDisplayScanFieldNumber = 2;
181 bool display_scan() const;
182 void set_display_scan(
bool value);
185 void clear_horizontal_samples();
186 static const
int kHorizontalSamplesFieldNumber = 3;
187 ::
google::protobuf::int32 horizontal_samples() const;
188 void set_horizontal_samples(::
google::protobuf::int32 value);
191 void clear_horizontal_resolution();
192 static const
int kHorizontalResolutionFieldNumber = 4;
193 double horizontal_resolution() const;
194 void set_horizontal_resolution(
double value);
197 void clear_horizontal_min_angle();
198 static const
int kHorizontalMinAngleFieldNumber = 5;
199 double horizontal_min_angle() const;
200 void set_horizontal_min_angle(
double value);
203 void clear_horizontal_max_angle();
204 static const
int kHorizontalMaxAngleFieldNumber = 6;
205 double horizontal_max_angle() const;
206 void set_horizontal_max_angle(
double value);
209 void clear_vertical_resolution();
210 static const
int kVerticalResolutionFieldNumber = 8;
211 double vertical_resolution() const;
212 void set_vertical_resolution(
double value);
215 void clear_vertical_min_angle();
216 static const
int kVerticalMinAngleFieldNumber = 9;
217 double vertical_min_angle() const;
218 void set_vertical_min_angle(
double value);
221 void clear_vertical_max_angle();
222 static const
int kVerticalMaxAngleFieldNumber = 10;
223 double vertical_max_angle() const;
224 void set_vertical_max_angle(
double value);
227 void clear_range_min();
228 static const
int kRangeMinFieldNumber = 11;
229 double range_min() const;
230 void set_range_min(
double value);
233 void clear_range_max();
234 static const
int kRangeMaxFieldNumber = 12;
235 double range_max() const;
236 void set_range_max(
double value);
239 void clear_range_resolution();
240 static const
int kRangeResolutionFieldNumber = 13;
241 double range_resolution() const;
242 void set_range_resolution(
double value);
245 void clear_vertical_samples();
246 static const
int kVerticalSamplesFieldNumber = 7;
247 ::
google::protobuf::int32 vertical_samples() const;
248 void set_vertical_samples(::
google::protobuf::int32 value);
253 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
257 ::
google::protobuf::int32 horizontal_samples_;
258 double horizontal_resolution_;
259 double horizontal_min_angle_;
260 double horizontal_max_angle_;
261 double vertical_resolution_;
262 double vertical_min_angle_;
263 double vertical_max_angle_;
266 double range_resolution_;
267 ::
google::protobuf::int32 vertical_samples_;
268 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
277 #pragma GCC diagnostic push
278 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
284 return this != internal_default_instance() && header_ != NULL;
286 inline const ::gz::msgs::Header& LidarSensor::_internal_header()
const {
290 const ::gz::msgs::Header* p = header_;
304 if (header_ == NULL) {
305 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
312 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
313 if (message_arena == NULL) {
314 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
317 ::google::protobuf::Arena* submessage_arena = NULL;
318 if (message_arena != submessage_arena) {
319 header = ::google::protobuf::internal::GetOwnedMessage(
320 message_arena, header, submessage_arena);
332 display_scan_ =
false;
336 return display_scan_;
340 display_scan_ = value;
346 horizontal_samples_ = 0;
350 return horizontal_samples_;
354 horizontal_samples_ = value;
360 horizontal_resolution_ = 0;
364 return horizontal_resolution_;
368 horizontal_resolution_ = value;
374 horizontal_min_angle_ = 0;
378 return horizontal_min_angle_;
382 horizontal_min_angle_ = value;
388 horizontal_max_angle_ = 0;
392 return horizontal_max_angle_;
396 horizontal_max_angle_ = value;
402 vertical_samples_ = 0;
406 return vertical_samples_;
410 vertical_samples_ = value;
416 vertical_resolution_ = 0;
420 return vertical_resolution_;
424 vertical_resolution_ = value;
430 vertical_min_angle_ = 0;
434 return vertical_min_angle_;
438 vertical_min_angle_ = value;
444 vertical_max_angle_ = 0;
448 return vertical_max_angle_;
452 vertical_max_angle_ = value;
486 range_resolution_ = 0;
490 return range_resolution_;
494 range_resolution_ = value;
500 return this != internal_default_instance() && noise_ != NULL;
502 inline const ::gz::msgs::SensorNoise& LidarSensor::_internal_noise()
const {
506 const ::gz::msgs::SensorNoise* p = noise_;
520 if (noise_ == NULL) {
521 auto* p = CreateMaybeMessage<::gz::msgs::SensorNoise>(GetArenaNoVirtual());
528 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
529 if (message_arena == NULL) {
530 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(noise_);
533 ::google::protobuf::Arena* submessage_arena = NULL;
534 if (message_arena != submessage_arena) {
535 noise = ::google::protobuf::internal::GetOwnedMessage(
536 message_arena, noise, submessage_arena);
547 #pragma GCC diagnostic pop
557 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2flidar_5fsensor_2eproto