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>
42 #pragma GCC system_header
45 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
48 #include <sys/sysmacros.h>
53 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2fscene_2eproto IGNITION_MSGS_VISIBLE
58 static const ::google::protobuf::internal::ParseTableField entries[];
59 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
60 static const ::google::protobuf::internal::ParseTable schema[1];
61 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
62 static const ::google::protobuf::internal::SerializationTable serialization_table[];
63 static const ::google::protobuf::uint32 offsets[];
70 class SceneDefaultTypeInternal;
76 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Scene* Arena::CreateMaybeMessage<::ignition::msgs::Scene>(Arena*);
84 class IGNITION_MSGS_VISIBLE
Scene :
public ::google::protobuf::Message {
98 *
this = ::std::move(from);
101 inline Scene& operator=(Scene&& from) noexcept {
102 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
103 if (
this != &from) InternalSwap(&from);
110 static const ::google::protobuf::Descriptor* descriptor();
111 static const Scene& default_instance();
113 static void InitAsDefaultInstance();
115 return reinterpret_cast<const Scene*
>(
118 static constexpr
int kIndexInFileMessages =
121 void Swap(
Scene* other);
129 return CreateMaybeMessage<Scene>(NULL);
132 Scene*
New(::google::protobuf::Arena* arena)
const final {
133 return CreateMaybeMessage<Scene>(arena);
135 void CopyFrom(const ::google::protobuf::Message& from)
final;
136 void MergeFrom(const ::google::protobuf::Message& from)
final;
137 void CopyFrom(
const Scene& from);
138 void MergeFrom(
const Scene& from);
140 bool IsInitialized() const final;
142 size_t ByteSizeLong() const final;
143 bool MergePartialFromCodedStream(
144 ::
google::protobuf::io::CodedInputStream* input) final;
145 void SerializeWithCachedSizes(
146 ::
google::protobuf::io::CodedOutputStream* output) const final;
147 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
148 bool deterministic, ::
google::protobuf::uint8* target) const final;
149 int GetCachedSize() const final {
return _cached_size_.Get(); }
154 void SetCachedSize(
int size)
const final;
155 void InternalSwap(
Scene* other);
157 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
160 inline void* MaybeArenaPtr()
const {
165 ::google::protobuf::Metadata GetMetadata() const final;
172 int model_size() const;
174 static const
int kModelFieldNumber = 9;
184 int light_size() const;
186 static const
int kLightFieldNumber = 10;
196 int joint_size() const;
198 static const
int kJointFieldNumber = 11;
209 static const
int kNameFieldNumber = 2;
210 const ::
std::
string& name() const;
211 void set_name(const ::
std::
string& value);
215 void set_name(
const char* value);
216 void set_name(
const char* value,
size_t size);
222 bool has_header()
const;
224 static const int kHeaderFieldNumber = 1;
226 const ::ignition::msgs::Header& _internal_header()
const;
228 const ::ignition::msgs::Header& header()
const;
234 bool has_ambient()
const;
235 void clear_ambient();
236 static const int kAmbientFieldNumber = 3;
238 const ::ignition::msgs::Color& _internal_ambient()
const;
240 const ::ignition::msgs::Color& ambient()
const;
246 bool has_background()
const;
247 void clear_background();
248 static const int kBackgroundFieldNumber = 4;
250 const ::ignition::msgs::Color& _internal_background()
const;
252 const ::ignition::msgs::Color& background()
const;
258 bool has_sky()
const;
260 static const int kSkyFieldNumber = 5;
262 const ::ignition::msgs::Sky& _internal_sky()
const;
264 const ::ignition::msgs::Sky& sky()
const;
270 bool has_fog()
const;
272 static const int kFogFieldNumber = 7;
274 const ::ignition::msgs::Fog& _internal_fog()
const;
276 const ::ignition::msgs::Fog& fog()
const;
282 bool has_shadow_caster_material_script()
const;
283 void clear_shadow_caster_material_script();
284 static const int kShadowCasterMaterialScriptFieldNumber = 13;
286 const ::ignition::msgs::Material_Script& _internal_shadow_caster_material_script()
const;
288 const ::ignition::msgs::Material_Script& shadow_caster_material_script()
const;
294 void clear_shadows();
295 static const int kShadowsFieldNumber = 6;
296 bool shadows()
const;
297 void set_shadows(
bool value);
301 static const int kGridFieldNumber = 8;
303 void set_grid(
bool value);
306 void clear_origin_visual();
307 static const int kOriginVisualFieldNumber = 12;
308 bool origin_visual()
const;
309 void set_origin_visual(
bool value);
314 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
315 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model > model_;
316 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light > light_;
317 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Joint > joint_;
318 ::google::protobuf::internal::ArenaStringPtr name_;
328 mutable ::google::protobuf::internal::CachedSize _cached_size_;
329 friend struct ::protobuf_ignition_2fmsgs_2fscene_2eproto::TableStruct;
337 #pragma GCC diagnostic push
338 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
346 inline const ::ignition::msgs::Header& Scene::_internal_header()
const {
350 const ::ignition::msgs::Header* p = header_;
364 if (header_ == NULL) {
365 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
372 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
373 if (message_arena == NULL) {
374 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
377 ::google::protobuf::Arena* submessage_arena = NULL;
378 if (message_arena != submessage_arena) {
379 header = ::google::protobuf::internal::GetOwnedMessage(
380 message_arena,
header, submessage_arena);
392 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
396 return name_.GetNoArena();
400 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
407 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
412 GOOGLE_DCHECK(value != NULL);
414 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
419 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
420 ::
std::string(
reinterpret_cast<const char*
>(value), size));
426 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
431 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
439 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
name);
447 inline const ::ignition::msgs::Color& Scene::_internal_ambient()
const {
451 const ::ignition::msgs::Color* p = ambient_;
465 if (ambient_ == NULL) {
466 auto* p = CreateMaybeMessage<::ignition::msgs::Color>(GetArenaNoVirtual());
473 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
474 if (message_arena == NULL) {
475 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(ambient_);
478 ::google::protobuf::Arena* submessage_arena = NULL;
479 if (message_arena != submessage_arena) {
480 ambient = ::google::protobuf::internal::GetOwnedMessage(
481 message_arena,
ambient, submessage_arena);
495 inline const ::ignition::msgs::Color& Scene::_internal_background()
const {
499 const ::ignition::msgs::Color* p = background_;
513 if (background_ == NULL) {
514 auto* p = CreateMaybeMessage<::ignition::msgs::Color>(GetArenaNoVirtual());
521 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
522 if (message_arena == NULL) {
523 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(background_);
526 ::google::protobuf::Arena* submessage_arena = NULL;
527 if (message_arena != submessage_arena) {
528 background = ::google::protobuf::internal::GetOwnedMessage(
543 inline const ::ignition::msgs::Sky& Scene::_internal_sky()
const {
547 const ::ignition::msgs::Sky* p = sky_;
562 auto* p = CreateMaybeMessage<::ignition::msgs::Sky>(GetArenaNoVirtual());
569 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
570 if (message_arena == NULL) {
571 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(sky_);
574 ::google::protobuf::Arena* submessage_arena = NULL;
575 if (message_arena != submessage_arena) {
576 sky = ::google::protobuf::internal::GetOwnedMessage(
577 message_arena,
sky, submessage_arena);
605 inline const ::ignition::msgs::Fog& Scene::_internal_fog()
const {
609 const ::ignition::msgs::Fog* p = fog_;
624 auto* p = CreateMaybeMessage<::ignition::msgs::Fog>(GetArenaNoVirtual());
631 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
632 if (message_arena == NULL) {
633 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(fog_);
636 ::google::protobuf::Arena* submessage_arena = NULL;
637 if (message_arena != submessage_arena) {
638 fog = ::google::protobuf::internal::GetOwnedMessage(
639 message_arena,
fog, submessage_arena);
665 return model_.size();
669 return model_.Mutable(index);
671 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model >*
678 return model_.Get(index);
684 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model >&
692 return light_.size();
696 return light_.Mutable(index);
698 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light >*
705 return light_.Get(index);
711 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light >&
719 return joint_.size();
723 return joint_.Mutable(index);
725 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Joint >*
732 return joint_.Get(index);
738 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Joint >&
746 origin_visual_ =
false;
750 return origin_visual_;
754 origin_visual_ = value;
762 inline const ::ignition::msgs::Material_Script& Scene::_internal_shadow_caster_material_script()
const {
763 return *shadow_caster_material_script_;
766 const ::ignition::msgs::Material_Script* p = shadow_caster_material_script_;
775 shadow_caster_material_script_ = NULL;
780 if (shadow_caster_material_script_ == NULL) {
781 auto* p = CreateMaybeMessage<::ignition::msgs::Material_Script>(GetArenaNoVirtual());
782 shadow_caster_material_script_ = p;
785 return shadow_caster_material_script_;
788 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
789 if (message_arena == NULL) {
790 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(shadow_caster_material_script_);
793 ::google::protobuf::Arena* submessage_arena = NULL;
794 if (message_arena != submessage_arena) {
807 #pragma GCC diagnostic pop
824 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2fscene_2eproto