4 #ifndef PROTOBUF_INCLUDED_ignition_2fmsgs_2fscene_2eproto
5 #define PROTOBUF_INCLUDED_ignition_2fmsgs_2fscene_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>
41 #pragma GCC system_header
44 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
47 #include <sys/sysmacros.h>
52 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2fscene_2eproto IGNITION_MSGS_VISIBLE
57 static const ::google::protobuf::internal::ParseTableField entries[];
58 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
59 static const ::google::protobuf::internal::ParseTable schema[1];
60 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
61 static const ::google::protobuf::internal::SerializationTable serialization_table[];
62 static const ::google::protobuf::uint32 offsets[];
69 class SceneDefaultTypeInternal;
75 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Scene* Arena::CreateMaybeMessage<::ignition::msgs::Scene>(Arena*);
83 class IGNITION_MSGS_VISIBLE
Scene :
public ::google::protobuf::Message {
97 *
this = ::std::move(from);
100 inline Scene& operator=(Scene&& from) noexcept {
101 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
102 if (
this != &from) InternalSwap(&from);
109 static const ::google::protobuf::Descriptor* descriptor();
110 static const Scene& default_instance();
112 static void InitAsDefaultInstance();
114 return reinterpret_cast<const Scene*
>(
117 static constexpr
int kIndexInFileMessages =
120 void Swap(
Scene* other);
128 return CreateMaybeMessage<Scene>(NULL);
131 Scene*
New(::google::protobuf::Arena* arena)
const final {
132 return CreateMaybeMessage<Scene>(arena);
134 void CopyFrom(const ::google::protobuf::Message& from)
final;
135 void MergeFrom(const ::google::protobuf::Message& from)
final;
136 void CopyFrom(
const Scene& from);
137 void MergeFrom(
const Scene& from);
139 bool IsInitialized() const final;
141 size_t ByteSizeLong() const final;
142 bool MergePartialFromCodedStream(
143 ::
google::protobuf::io::CodedInputStream* input) final;
144 void SerializeWithCachedSizes(
145 ::
google::protobuf::io::CodedOutputStream* output) const final;
146 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
147 bool deterministic, ::
google::protobuf::uint8* target) const final;
148 int GetCachedSize() const final {
return _cached_size_.Get(); }
153 void SetCachedSize(
int size)
const final;
154 void InternalSwap(
Scene* other);
156 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
159 inline void* MaybeArenaPtr()
const {
164 ::google::protobuf::Metadata GetMetadata() const final;
171 int model_size() const;
173 static const
int kModelFieldNumber = 9;
183 int light_size() const;
185 static const
int kLightFieldNumber = 10;
195 int joint_size() const;
197 static const
int kJointFieldNumber = 11;
208 static const
int kNameFieldNumber = 2;
209 const ::
std::
string& name() const;
210 void set_name(const ::
std::
string& value);
214 void set_name(
const char* value);
215 void set_name(
const char* value,
size_t size);
221 bool has_header()
const;
223 static const int kHeaderFieldNumber = 1;
225 const ::ignition::msgs::Header& _internal_header()
const;
227 const ::ignition::msgs::Header& header()
const;
233 bool has_ambient()
const;
234 void clear_ambient();
235 static const int kAmbientFieldNumber = 3;
237 const ::ignition::msgs::Color& _internal_ambient()
const;
239 const ::ignition::msgs::Color& ambient()
const;
245 bool has_background()
const;
246 void clear_background();
247 static const int kBackgroundFieldNumber = 4;
249 const ::ignition::msgs::Color& _internal_background()
const;
251 const ::ignition::msgs::Color& background()
const;
257 bool has_sky()
const;
259 static const int kSkyFieldNumber = 5;
261 const ::ignition::msgs::Sky& _internal_sky()
const;
263 const ::ignition::msgs::Sky& sky()
const;
269 bool has_fog()
const;
271 static const int kFogFieldNumber = 7;
273 const ::ignition::msgs::Fog& _internal_fog()
const;
275 const ::ignition::msgs::Fog& fog()
const;
281 void clear_shadows();
282 static const int kShadowsFieldNumber = 6;
283 bool shadows()
const;
284 void set_shadows(
bool value);
288 static const int kGridFieldNumber = 8;
290 void set_grid(
bool value);
293 void clear_origin_visual();
294 static const int kOriginVisualFieldNumber = 12;
295 bool origin_visual()
const;
296 void set_origin_visual(
bool value);
301 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
302 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model > model_;
303 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light > light_;
304 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Joint > joint_;
305 ::google::protobuf::internal::ArenaStringPtr name_;
314 mutable ::google::protobuf::internal::CachedSize _cached_size_;
315 friend struct ::protobuf_ignition_2fmsgs_2fscene_2eproto::TableStruct;
323 #pragma GCC diagnostic push
324 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
332 inline const ::ignition::msgs::Header& Scene::_internal_header()
const {
336 const ::ignition::msgs::Header* p = header_;
350 if (header_ == NULL) {
351 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
358 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
359 if (message_arena == NULL) {
360 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
363 ::google::protobuf::Arena* submessage_arena = NULL;
364 if (message_arena != submessage_arena) {
365 header = ::google::protobuf::internal::GetOwnedMessage(
366 message_arena,
header, submessage_arena);
378 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
382 return name_.GetNoArena();
386 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
393 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
398 GOOGLE_DCHECK(value != NULL);
400 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
405 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
406 ::
std::string(
reinterpret_cast<const char*
>(value), size));
412 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
417 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
425 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
name);
433 inline const ::ignition::msgs::Color& Scene::_internal_ambient()
const {
437 const ::ignition::msgs::Color* p = ambient_;
451 if (ambient_ == NULL) {
452 auto* p = CreateMaybeMessage<::ignition::msgs::Color>(GetArenaNoVirtual());
459 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
460 if (message_arena == NULL) {
461 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(ambient_);
464 ::google::protobuf::Arena* submessage_arena = NULL;
465 if (message_arena != submessage_arena) {
466 ambient = ::google::protobuf::internal::GetOwnedMessage(
467 message_arena,
ambient, submessage_arena);
481 inline const ::ignition::msgs::Color& Scene::_internal_background()
const {
485 const ::ignition::msgs::Color* p = background_;
499 if (background_ == NULL) {
500 auto* p = CreateMaybeMessage<::ignition::msgs::Color>(GetArenaNoVirtual());
507 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
508 if (message_arena == NULL) {
509 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(background_);
512 ::google::protobuf::Arena* submessage_arena = NULL;
513 if (message_arena != submessage_arena) {
514 background = ::google::protobuf::internal::GetOwnedMessage(
529 inline const ::ignition::msgs::Sky& Scene::_internal_sky()
const {
533 const ::ignition::msgs::Sky* p = sky_;
548 auto* p = CreateMaybeMessage<::ignition::msgs::Sky>(GetArenaNoVirtual());
555 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
556 if (message_arena == NULL) {
557 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(sky_);
560 ::google::protobuf::Arena* submessage_arena = NULL;
561 if (message_arena != submessage_arena) {
562 sky = ::google::protobuf::internal::GetOwnedMessage(
563 message_arena,
sky, submessage_arena);
591 inline const ::ignition::msgs::Fog& Scene::_internal_fog()
const {
595 const ::ignition::msgs::Fog* p = fog_;
610 auto* p = CreateMaybeMessage<::ignition::msgs::Fog>(GetArenaNoVirtual());
617 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
618 if (message_arena == NULL) {
619 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(fog_);
622 ::google::protobuf::Arena* submessage_arena = NULL;
623 if (message_arena != submessage_arena) {
624 fog = ::google::protobuf::internal::GetOwnedMessage(
625 message_arena,
fog, submessage_arena);
651 return model_.size();
655 return model_.Mutable(index);
657 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model >*
664 return model_.Get(index);
670 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model >&
678 return light_.size();
682 return light_.Mutable(index);
684 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light >*
691 return light_.Get(index);
697 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light >&
705 return joint_.size();
709 return joint_.Mutable(index);
711 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Joint >*
718 return joint_.Get(index);
724 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Joint >&
732 origin_visual_ =
false;
736 return origin_visual_;
740 origin_visual_ = value;
745 #pragma GCC diagnostic pop
762 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2fscene_2eproto