4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2flens_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2flens_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/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
35 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2flens_2eproto GZ_MSGS_VISIBLE
40 static const ::google::protobuf::internal::ParseTableField entries[];
41 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
42 static const ::google::protobuf::internal::ParseTable schema[1];
43 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
44 static const ::google::protobuf::internal::SerializationTable serialization_table[];
45 static const ::google::protobuf::uint32 offsets[];
52 class LensDefaultTypeInternal;
58 template<> GZ_MSGS_VISIBLE ::gz::msgs::Lens* Arena::CreateMaybeMessage<::gz::msgs::Lens>(Arena*);
82 return ::google::protobuf::internal::NameOfEnum(
86 const ::std::string& name,
Lens_Type* value) {
87 return ::google::protobuf::internal::ParseNamedEnum<Lens_Type>(
105 return ::google::protobuf::internal::NameOfEnum(
110 return ::google::protobuf::internal::ParseNamedEnum<Lens_FunctionType>(
115 class GZ_MSGS_VISIBLE
Lens :
public ::google::protobuf::Message {
129 *
this = ::std::move(from);
132 inline Lens& operator=(Lens&& from) noexcept {
133 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
134 if (
this != &from) InternalSwap(&from);
141 static const ::google::protobuf::Descriptor* descriptor();
142 static const Lens& default_instance();
144 static void InitAsDefaultInstance();
146 return reinterpret_cast<const Lens*
>(
149 static constexpr
int kIndexInFileMessages =
152 void Swap(
Lens* other);
160 return CreateMaybeMessage<Lens>(NULL);
163 Lens*
New(::google::protobuf::Arena* arena)
const final {
164 return CreateMaybeMessage<Lens>(arena);
166 void CopyFrom(const ::google::protobuf::Message& from)
final;
167 void MergeFrom(const ::google::protobuf::Message& from)
final;
168 void CopyFrom(
const Lens& from);
169 void MergeFrom(
const Lens& from);
171 bool IsInitialized() const final;
173 size_t ByteSizeLong() const final;
174 bool MergePartialFromCodedStream(
175 ::
google::protobuf::io::CodedInputStream* input) final;
176 void SerializeWithCachedSizes(
177 ::
google::protobuf::io::CodedOutputStream* output) const final;
178 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
179 bool deterministic, ::
google::protobuf::uint8* target) const final;
180 int GetCachedSize() const final {
return _cached_size_.Get(); }
185 void SetCachedSize(
int size)
const final;
186 void InternalSwap(
Lens* other);
188 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
191 inline void* MaybeArenaPtr()
const {
196 ::google::protobuf::Metadata GetMetadata() const final;
201 static const
Type TYPE_NOT_SPECIFIED =
205 static const
Type STEREOGRAPHIC =
207 static const
Type EQUIDISTANT =
209 static const
Type EQUISOLID_ANGLE =
211 static const
Type ORTHOGRAPHIC =
215 static inline
bool Type_IsValid(
int value) {
222 static const int Type_ARRAYSIZE =
224 static inline const ::google::protobuf::EnumDescriptor*
252 static const int FunctionType_ARRAYSIZE =
254 static inline const ::google::protobuf::EnumDescriptor*
270 static const int kTypeFieldNumber = 1;
275 void clear_scale_to_hfov();
276 static const int kScaleToHfovFieldNumber = 2;
277 bool scale_to_hfov()
const;
278 void set_scale_to_hfov(
bool value);
282 static const int kC1FieldNumber = 3;
284 void set_c1(
double value);
288 static const int kC2FieldNumber = 4;
290 void set_c2(
double value);
294 static const int kC3FieldNumber = 5;
296 void set_c3(
double value);
299 void clear_focal_length();
300 static const int kFocalLengthFieldNumber = 6;
301 double focal_length()
const;
302 void set_focal_length(
double value);
305 void clear_cutoff_angle();
306 static const int kCutoffAngleFieldNumber = 8;
307 double cutoff_angle()
const;
308 void set_cutoff_angle(
double value);
311 void clear_function_type();
312 static const int kFunctionTypeFieldNumber = 7;
317 void clear_environment_texture_size();
318 static const int kEnvironmentTextureSizeFieldNumber = 9;
319 ::google::protobuf::int32 environment_texture_size()
const;
320 void set_environment_texture_size(::google::protobuf::int32 value);
323 void clear_intrinsics_fx();
324 static const int kIntrinsicsFxFieldNumber = 10;
325 double intrinsics_fx()
const;
326 void set_intrinsics_fx(
double value);
329 void clear_intrinsics_fy();
330 static const int kIntrinsicsFyFieldNumber = 11;
331 double intrinsics_fy()
const;
332 void set_intrinsics_fy(
double value);
335 void clear_intrinsics_cx();
336 static const int kIntrinsicsCxFieldNumber = 12;
337 double intrinsics_cx()
const;
338 void set_intrinsics_cx(
double value);
341 void clear_intrinsics_cy();
342 static const int kIntrinsicsCyFieldNumber = 13;
343 double intrinsics_cy()
const;
344 void set_intrinsics_cy(
double value);
347 void clear_intrinsics_skew();
348 static const int kIntrinsicsSkewFieldNumber = 14;
349 double intrinsics_skew()
const;
350 void set_intrinsics_skew(
double value);
355 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
361 double focal_length_;
362 double cutoff_angle_;
364 ::google::protobuf::int32 environment_texture_size_;
365 double intrinsics_fx_;
366 double intrinsics_fy_;
367 double intrinsics_cx_;
368 double intrinsics_cy_;
369 double intrinsics_skew_;
370 mutable ::google::protobuf::internal::CachedSize _cached_size_;
371 friend struct ::protobuf_gz_2fmsgs_2flens_2eproto::TableStruct;
379 #pragma GCC diagnostic push
380 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
400 scale_to_hfov_ =
false;
404 return scale_to_hfov_;
408 scale_to_hfov_ = value;
460 return focal_length_;
464 focal_length_ = value;
478 function_type_ = value;
488 return cutoff_angle_;
492 cutoff_angle_ = value;
498 environment_texture_size_ = 0;
502 return environment_texture_size_;
506 environment_texture_size_ = value;
516 return intrinsics_fx_;
520 intrinsics_fx_ = value;
530 return intrinsics_fy_;
534 intrinsics_fy_ = value;
544 return intrinsics_cx_;
548 intrinsics_cx_ = value;
558 return intrinsics_cy_;
562 intrinsics_cy_ = value;
568 intrinsics_skew_ = 0;
572 return intrinsics_skew_;
576 intrinsics_skew_ = value;
581 #pragma GCC diagnostic pop
594 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::Lens_Type>() {
599 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::Lens_FunctionType>() {
608 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2flens_2eproto