4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fgui_5fcamera_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fgui_5fcamera_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/track_visual.pb.h"
35 #include "gz/msgs/header.pb.h"
37 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fgui_5fcamera_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 GUICameraDefaultTypeInternal;
60 template<> GZ_MSGS_VISIBLE ::gz::msgs::GUICamera* Arena::CreateMaybeMessage<::gz::msgs::GUICamera>(Arena*);
68 class GZ_MSGS_VISIBLE
GUICamera :
public ::google::protobuf::Message {
82 *
this = ::std::move(from);
85 inline GUICamera& operator=(GUICamera&& from) noexcept {
86 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
87 if (
this != &from) InternalSwap(&from);
94 static const ::google::protobuf::Descriptor* descriptor();
95 static const GUICamera& default_instance();
97 static void InitAsDefaultInstance();
99 return reinterpret_cast<const GUICamera*
>(
102 static constexpr
int kIndexInFileMessages =
113 return CreateMaybeMessage<GUICamera>(NULL);
117 return CreateMaybeMessage<GUICamera>(arena);
119 void CopyFrom(const ::google::protobuf::Message& from)
final;
120 void MergeFrom(const ::google::protobuf::Message& from)
final;
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;
141 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
144 inline void* MaybeArenaPtr()
const {
149 ::google::protobuf::Metadata GetMetadata() const final;
157 static const
int kNameFieldNumber = 2;
158 const ::
std::
string& name() const;
159 void set_name(const ::
std::
string& value);
163 void set_name(
const char* value);
164 void set_name(
const char* value,
size_t size);
170 void clear_view_controller();
171 static const int kViewControllerFieldNumber = 3;
172 const ::std::string& view_controller()
const;
173 void set_view_controller(const ::std::string& value);
177 void set_view_controller(
const char* value);
178 void set_view_controller(
const char* value,
size_t size);
181 void set_allocated_view_controller(::
std::string* view_controller);
184 void clear_projection_type();
185 static const int kProjectionTypeFieldNumber = 6;
186 const ::std::string& projection_type()
const;
187 void set_projection_type(const ::std::string& value);
191 void set_projection_type(
const char* value);
192 void set_projection_type(
const char* value,
size_t size);
195 void set_allocated_projection_type(::
std::string* projection_type);
198 bool has_header()
const;
200 static const int kHeaderFieldNumber = 1;
202 const ::gz::msgs::Header& _internal_header()
const;
204 const ::gz::msgs::Header& header()
const;
210 bool has_pose()
const;
212 static const int kPoseFieldNumber = 4;
214 const ::gz::msgs::Pose& _internal_pose()
const;
216 const ::gz::msgs::Pose& pose()
const;
222 bool has_track()
const;
224 static const int kTrackFieldNumber = 5;
226 const ::gz::msgs::TrackVisual& _internal_track()
const;
228 const ::gz::msgs::TrackVisual& track()
const;
236 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
237 ::google::protobuf::internal::ArenaStringPtr name_;
238 ::google::protobuf::internal::ArenaStringPtr view_controller_;
239 ::google::protobuf::internal::ArenaStringPtr projection_type_;
243 mutable ::google::protobuf::internal::CachedSize _cached_size_;
244 friend struct ::protobuf_gz_2fmsgs_2fgui_5fcamera_2eproto::TableStruct;
252 #pragma GCC diagnostic push
253 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
261 inline const ::gz::msgs::Header& GUICamera::_internal_header()
const {
265 const ::gz::msgs::Header* p = header_;
279 if (header_ == NULL) {
280 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
287 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
288 if (message_arena == NULL) {
289 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
292 ::google::protobuf::Arena* submessage_arena = NULL;
293 if (message_arena != submessage_arena) {
294 header = ::google::protobuf::internal::GetOwnedMessage(
295 message_arena,
header, submessage_arena);
307 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
311 return name_.GetNoArena();
315 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
322 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
327 GOOGLE_DCHECK(value != NULL);
329 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
334 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
335 ::
std::string(
reinterpret_cast<const char*
>(value), size));
341 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
346 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
354 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
name);
360 view_controller_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
364 return view_controller_.GetNoArena();
368 view_controller_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
374 view_controller_.SetNoArena(
375 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
380 GOOGLE_DCHECK(value != NULL);
382 view_controller_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
387 view_controller_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
388 ::
std::string(
reinterpret_cast<const char*
>(value), size));
394 return view_controller_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
399 return view_controller_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
407 view_controller_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
view_controller);
415 inline const ::gz::msgs::Pose& GUICamera::_internal_pose()
const {
419 const ::gz::msgs::Pose* p = pose_;
421 return p != NULL ? *p : *
reinterpret_cast<const ::
gz::msgs::Pose*
>(
434 auto* p = CreateMaybeMessage<::gz::msgs::Pose>(GetArenaNoVirtual());
441 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
442 if (message_arena == NULL) {
443 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(pose_);
446 ::google::protobuf::Arena* submessage_arena = NULL;
447 if (message_arena != submessage_arena) {
448 pose = ::google::protobuf::internal::GetOwnedMessage(
449 message_arena,
pose, submessage_arena);
463 inline const ::gz::msgs::TrackVisual& GUICamera::_internal_track()
const {
467 const ::gz::msgs::TrackVisual* p = track_;
481 if (track_ == NULL) {
482 auto* p = CreateMaybeMessage<::gz::msgs::TrackVisual>(GetArenaNoVirtual());
489 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
490 if (message_arena == NULL) {
491 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(track_);
494 ::google::protobuf::Arena* submessage_arena = NULL;
495 if (message_arena != submessage_arena) {
496 track = ::google::protobuf::internal::GetOwnedMessage(
497 message_arena,
track, submessage_arena);
509 projection_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
513 return projection_type_.GetNoArena();
517 projection_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
523 projection_type_.SetNoArena(
524 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
529 GOOGLE_DCHECK(value != NULL);
531 projection_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
536 projection_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
537 ::
std::string(
reinterpret_cast<const char*
>(value), size));
543 return projection_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
548 return projection_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
556 projection_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
projection_type);
561 #pragma GCC diagnostic pop
571 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fgui_5fcamera_2eproto