4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fscene_2eproto
5 #define PROTOBUF_INCLUDED_gz_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>
33 #include "gz/msgs/color.pb.h"
34 #include "gz/msgs/fog.pb.h"
35 #include "gz/msgs/sky.pb.h"
36 #include "gz/msgs/light.pb.h"
37 #include "gz/msgs/joint.pb.h"
38 #include "gz/msgs/material.pb.h"
39 #include "gz/msgs/model.pb.h"
40 #include "gz/msgs/header.pb.h"
42 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fscene_2eproto GZ_MSGS_VISIBLE
47 static const ::google::protobuf::internal::ParseTableField entries[];
48 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
49 static const ::google::protobuf::internal::ParseTable schema[1];
50 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
51 static const ::google::protobuf::internal::SerializationTable serialization_table[];
52 static const ::google::protobuf::uint32 offsets[];
59 class SceneDefaultTypeInternal;
65 template<> GZ_MSGS_VISIBLE ::gz::msgs::Scene* Arena::CreateMaybeMessage<::gz::msgs::Scene>(Arena*);
73 class GZ_MSGS_VISIBLE
Scene :
public ::google::protobuf::Message {
87 *
this = ::std::move(from);
90 inline Scene& operator=(Scene&& from) noexcept {
91 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
92 if (
this != &from) InternalSwap(&from);
99 static const ::google::protobuf::Descriptor* descriptor();
100 static const Scene& default_instance();
102 static void InitAsDefaultInstance();
104 return reinterpret_cast<const Scene*
>(
107 static constexpr
int kIndexInFileMessages =
110 void Swap(
Scene* other);
118 return CreateMaybeMessage<Scene>(NULL);
121 Scene*
New(::google::protobuf::Arena* arena)
const final {
122 return CreateMaybeMessage<Scene>(arena);
124 void CopyFrom(const ::google::protobuf::Message& from)
final;
125 void MergeFrom(const ::google::protobuf::Message& from)
final;
126 void CopyFrom(
const Scene& from);
127 void MergeFrom(
const Scene& from);
129 bool IsInitialized() const final;
131 size_t ByteSizeLong() const final;
132 bool MergePartialFromCodedStream(
133 ::
google::protobuf::io::CodedInputStream* input) final;
134 void SerializeWithCachedSizes(
135 ::
google::protobuf::io::CodedOutputStream* output) const final;
136 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
137 bool deterministic, ::
google::protobuf::uint8* target) const final;
138 int GetCachedSize() const final {
return _cached_size_.Get(); }
143 void SetCachedSize(
int size)
const final;
144 void InternalSwap(
Scene* other);
146 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
149 inline void* MaybeArenaPtr()
const {
154 ::google::protobuf::Metadata GetMetadata() const final;
161 int model_size() const;
163 static const
int kModelFieldNumber = 9;
164 ::
gz::msgs::
Model* mutable_model(
int index);
167 const ::
gz::msgs::
Model& model(
int index) const;
168 ::
gz::msgs::
Model* add_model();
169 const ::
google::protobuf::RepeatedPtrField< ::
gz::msgs::
Model >&
173 int light_size() const;
175 static const
int kLightFieldNumber = 10;
176 ::
gz::msgs::
Light* mutable_light(
int index);
179 const ::
gz::msgs::
Light& light(
int index) const;
180 ::
gz::msgs::
Light* add_light();
181 const ::
google::protobuf::RepeatedPtrField< ::
gz::msgs::
Light >&
185 int joint_size() const;
187 static const
int kJointFieldNumber = 11;
188 ::
gz::msgs::
Joint* mutable_joint(
int index);
191 const ::
gz::msgs::
Joint& joint(
int index) const;
192 ::
gz::msgs::
Joint* add_joint();
193 const ::
google::protobuf::RepeatedPtrField< ::
gz::msgs::
Joint >&
198 static const
int kNameFieldNumber = 2;
199 const ::
std::
string& name() const;
200 void set_name(const ::
std::
string& value);
204 void set_name(
const char* value);
205 void set_name(
const char* value,
size_t size);
211 bool has_header()
const;
213 static const int kHeaderFieldNumber = 1;
215 const ::gz::msgs::Header& _internal_header()
const;
217 const ::gz::msgs::Header& header()
const;
223 bool has_ambient()
const;
224 void clear_ambient();
225 static const int kAmbientFieldNumber = 3;
227 const ::gz::msgs::Color& _internal_ambient()
const;
229 const ::gz::msgs::Color& ambient()
const;
235 bool has_background()
const;
236 void clear_background();
237 static const int kBackgroundFieldNumber = 4;
239 const ::gz::msgs::Color& _internal_background()
const;
241 const ::gz::msgs::Color& background()
const;
247 bool has_sky()
const;
249 static const int kSkyFieldNumber = 5;
251 const ::gz::msgs::Sky& _internal_sky()
const;
253 const ::gz::msgs::Sky& sky()
const;
259 bool has_fog()
const;
261 static const int kFogFieldNumber = 7;
263 const ::gz::msgs::Fog& _internal_fog()
const;
265 const ::gz::msgs::Fog& fog()
const;
271 bool has_shadow_caster_material_script()
const;
272 void clear_shadow_caster_material_script();
273 static const int kShadowCasterMaterialScriptFieldNumber = 13;
275 const ::gz::msgs::Material_Script& _internal_shadow_caster_material_script()
const;
277 const ::gz::msgs::Material_Script& shadow_caster_material_script()
const;
283 void clear_shadows();
284 static const int kShadowsFieldNumber = 6;
285 bool shadows()
const;
286 void set_shadows(
bool value);
290 static const int kGridFieldNumber = 8;
292 void set_grid(
bool value);
295 void clear_origin_visual();
296 static const int kOriginVisualFieldNumber = 12;
297 bool origin_visual()
const;
298 void set_origin_visual(
bool value);
303 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
304 ::google::protobuf::RepeatedPtrField< ::gz::msgs::Model > model_;
305 ::google::protobuf::RepeatedPtrField< ::gz::msgs::Light > light_;
306 ::google::protobuf::RepeatedPtrField< ::gz::msgs::Joint > joint_;
307 ::google::protobuf::internal::ArenaStringPtr name_;
317 mutable ::google::protobuf::internal::CachedSize _cached_size_;
318 friend struct ::protobuf_gz_2fmsgs_2fscene_2eproto::TableStruct;
326 #pragma GCC diagnostic push
327 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
335 inline const ::gz::msgs::Header& Scene::_internal_header()
const {
339 const ::gz::msgs::Header* p = header_;
353 if (header_ == NULL) {
354 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
361 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
362 if (message_arena == NULL) {
363 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
366 ::google::protobuf::Arena* submessage_arena = NULL;
367 if (message_arena != submessage_arena) {
368 header = ::google::protobuf::internal::GetOwnedMessage(
369 message_arena,
header, submessage_arena);
381 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
385 return name_.GetNoArena();
389 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
396 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
401 GOOGLE_DCHECK(value != NULL);
403 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
408 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
409 ::
std::string(
reinterpret_cast<const char*
>(value), size));
415 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
420 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
428 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
name);
436 inline const ::gz::msgs::Color& Scene::_internal_ambient()
const {
440 const ::gz::msgs::Color* p = ambient_;
454 if (ambient_ == NULL) {
455 auto* p = CreateMaybeMessage<::gz::msgs::Color>(GetArenaNoVirtual());
462 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
463 if (message_arena == NULL) {
464 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(ambient_);
467 ::google::protobuf::Arena* submessage_arena = NULL;
468 if (message_arena != submessage_arena) {
469 ambient = ::google::protobuf::internal::GetOwnedMessage(
470 message_arena,
ambient, submessage_arena);
484 inline const ::gz::msgs::Color& Scene::_internal_background()
const {
488 const ::gz::msgs::Color* p = background_;
502 if (background_ == NULL) {
503 auto* p = CreateMaybeMessage<::gz::msgs::Color>(GetArenaNoVirtual());
510 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
511 if (message_arena == NULL) {
512 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(background_);
515 ::google::protobuf::Arena* submessage_arena = NULL;
516 if (message_arena != submessage_arena) {
517 background = ::google::protobuf::internal::GetOwnedMessage(
532 inline const ::gz::msgs::Sky& Scene::_internal_sky()
const {
536 const ::gz::msgs::Sky* p = sky_;
538 return p != NULL ? *p : *
reinterpret_cast<const ::
gz::msgs::Sky*
>(
551 auto* p = CreateMaybeMessage<::gz::msgs::Sky>(GetArenaNoVirtual());
558 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
559 if (message_arena == NULL) {
560 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(sky_);
563 ::google::protobuf::Arena* submessage_arena = NULL;
564 if (message_arena != submessage_arena) {
565 sky = ::google::protobuf::internal::GetOwnedMessage(
566 message_arena,
sky, submessage_arena);
594 inline const ::gz::msgs::Fog& Scene::_internal_fog()
const {
598 const ::gz::msgs::Fog* p = fog_;
600 return p != NULL ? *p : *
reinterpret_cast<const ::
gz::msgs::Fog*
>(
613 auto* p = CreateMaybeMessage<::gz::msgs::Fog>(GetArenaNoVirtual());
620 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
621 if (message_arena == NULL) {
622 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(fog_);
625 ::google::protobuf::Arena* submessage_arena = NULL;
626 if (message_arena != submessage_arena) {
627 fog = ::google::protobuf::internal::GetOwnedMessage(
628 message_arena,
fog, submessage_arena);
654 return model_.size();
658 return model_.Mutable(index);
660 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Model >*
667 return model_.Get(index);
673 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Model >&
681 return light_.size();
685 return light_.Mutable(index);
687 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Light >*
694 return light_.Get(index);
700 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Light >&
708 return joint_.size();
712 return joint_.Mutable(index);
714 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Joint >*
721 return joint_.Get(index);
727 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Joint >&
735 origin_visual_ =
false;
739 return origin_visual_;
743 origin_visual_ = value;
751 inline const ::gz::msgs::Material_Script& Scene::_internal_shadow_caster_material_script()
const {
752 return *shadow_caster_material_script_;
755 const ::gz::msgs::Material_Script* p = shadow_caster_material_script_;
764 shadow_caster_material_script_ = NULL;
769 if (shadow_caster_material_script_ == NULL) {
770 auto* p = CreateMaybeMessage<::gz::msgs::Material_Script>(GetArenaNoVirtual());
771 shadow_caster_material_script_ = p;
774 return shadow_caster_material_script_;
777 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
778 if (message_arena == NULL) {
779 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(shadow_caster_material_script_);
782 ::google::protobuf::Arena* submessage_arena = NULL;
783 if (message_arena != submessage_arena) {
796 #pragma GCC diagnostic pop
806 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fscene_2eproto