Ignition Msgs

API Reference

7.1.0
shadows.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/shadows.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fshadows_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fshadows_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3000000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers.
15 #endif
16 #if 3000000 < 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.
20 #endif
21 
22 #include <google/protobuf/arena.h>
23 #include <google/protobuf/arenastring.h>
24 #include <google/protobuf/generated_message_util.h>
25 #include <google/protobuf/metadata.h>
26 #include <google/protobuf/message.h>
27 #include <google/protobuf/repeated_field.h>
28 #include <google/protobuf/extension_set.h>
29 #include <google/protobuf/generated_enum_reflection.h>
30 #include <google/protobuf/unknown_field_set.h>
31 #include "ignition/msgs/color.pb.h"
33 #ifndef _MSC_VER
34 #pragma GCC system_header
35 #else
36 #pragma warning(push)
37 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
38 #endif
39 #ifdef __linux__
40 #include <sys/sysmacros.h>
41 #endif
42 #include <memory>
43 #include <ignition/msgs/Export.hh>
44 // @@protoc_insertion_point(includes)
45 
46 namespace ignition {
47 namespace msgs {
48 
49 // Internal implementation detail -- do not call these.
50 void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fshadows_2eproto();
53 
54 class Shadows;
55 
63 };
64 IGNITION_MSGS_VISIBLE bool Shadows_ShadowType_IsValid(int value);
67 const int Shadows_ShadowType_ShadowType_ARRAYSIZE = Shadows_ShadowType_ShadowType_MAX + 1;
68 
69 IGNITION_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* Shadows_ShadowType_descriptor();
70 inline const ::std::string& Shadows_ShadowType_Name(Shadows_ShadowType value) {
71  return ::google::protobuf::internal::NameOfEnum(
73 }
75  const ::std::string& name, Shadows_ShadowType* value) {
76  return ::google::protobuf::internal::ParseNamedEnum<Shadows_ShadowType>(
77  Shadows_ShadowType_descriptor(), name, value);
78 }
79 // ===================================================================
80 
81 class IGNITION_MSGS_VISIBLE Shadows : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Shadows) */ {
82  public:
83  Shadows();
84  virtual ~Shadows();
85 
86  Shadows(const Shadows& from);
87 
88  inline Shadows& operator=(const Shadows& from) {
89  CopyFrom(from);
90  return *this;
91  }
92 
93  static const ::google::protobuf::Descriptor* descriptor();
94  static const Shadows& default_instance();
95 
96  void Swap(Shadows* other);
97 
98  // implements Message ----------------------------------------------
99 
100  inline Shadows* New() const { return New(NULL); }
101 
102  Shadows* New(::google::protobuf::Arena* arena) const;
103  void CopyFrom(const ::google::protobuf::Message& from);
104  void MergeFrom(const ::google::protobuf::Message& from);
105  void CopyFrom(const Shadows& from);
106  void MergeFrom(const Shadows& from);
107  void Clear();
108  bool IsInitialized() const;
109 
110  int ByteSize() const;
111  bool MergePartialFromCodedStream(
112  ::google::protobuf::io::CodedInputStream* input);
113  void SerializeWithCachedSizes(
114  ::google::protobuf::io::CodedOutputStream* output) const;
115  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
116  bool deterministic, ::google::protobuf::uint8* output) const;
117  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
118  return InternalSerializeWithCachedSizesToArray(false, output);
119  }
120  int GetCachedSize() const { return _cached_size_; }
121  private:
122  void SharedCtor();
123  void SharedDtor();
124  void SetCachedSize(int size) const;
125  void InternalSwap(Shadows* other);
126  private:
127  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
128  return _internal_metadata_.arena();
129  }
130  inline void* MaybeArenaPtr() const {
131  return _internal_metadata_.raw_arena_ptr();
132  }
133  public:
134 
135  ::google::protobuf::Metadata GetMetadata() const;
136 
137  // nested types ----------------------------------------------------
138 
140  static const ShadowType STENCIL_ADDITIVE =
142  static const ShadowType STENCIL_MODULATIVE =
144  static const ShadowType TEXTURE_ADDITIVE =
146  static const ShadowType TEXTURE_MODULATIVE =
148  static inline bool ShadowType_IsValid(int value) {
149  return Shadows_ShadowType_IsValid(value);
150  }
151  static const ShadowType ShadowType_MIN =
153  static const ShadowType ShadowType_MAX =
155  static const int ShadowType_ARRAYSIZE =
157  static inline const ::google::protobuf::EnumDescriptor*
160  }
161  static inline const ::std::string& ShadowType_Name(ShadowType value) {
162  return Shadows_ShadowType_Name(value);
163  }
164  static inline bool ShadowType_Parse(const ::std::string& name,
165  ShadowType* value) {
166  return Shadows_ShadowType_Parse(name, value);
167  }
168 
169  // accessors -------------------------------------------------------
170 
171  // optional .ignition.msgs.Header header = 1;
172  bool has_header() const;
173  void clear_header();
174  static const int kHeaderFieldNumber = 1;
175  const ::ignition::msgs::Header& header() const;
176  ::ignition::msgs::Header* mutable_header();
177  ::ignition::msgs::Header* release_header();
178  void set_allocated_header(::ignition::msgs::Header* header);
179 
180  // optional .ignition.msgs.Shadows.ShadowType type = 2;
181  void clear_type();
182  static const int kTypeFieldNumber = 2;
184  void set_type(::ignition::msgs::Shadows_ShadowType value);
185 
186  // optional .ignition.msgs.Color color = 3;
187  bool has_color() const;
188  void clear_color();
189  static const int kColorFieldNumber = 3;
190  const ::ignition::msgs::Color& color() const;
191  ::ignition::msgs::Color* mutable_color();
192  ::ignition::msgs::Color* release_color();
193  void set_allocated_color(::ignition::msgs::Color* color);
194 
195  // @@protoc_insertion_point(class_scope:ignition.msgs.Shadows)
196  private:
197 
198  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
199  bool _is_default_instance_;
200  ::ignition::msgs::Header* header_;
201  ::ignition::msgs::Color* color_;
202  int type_;
203  mutable int _cached_size_;
204  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fshadows_2eproto();
207 
208  void InitAsDefaultInstance();
209  static Shadows* default_instance_;
210 };
211 // ===================================================================
212 
213 
214 // ===================================================================
215 
216 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
217 // Shadows
218 
219 // optional .ignition.msgs.Header header = 1;
220 inline bool Shadows::has_header() const {
221  return !_is_default_instance_ && header_ != NULL;
222 }
223 inline void Shadows::clear_header() {
224  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
225  header_ = NULL;
226 }
227 inline const ::ignition::msgs::Header& Shadows::header() const {
228  // @@protoc_insertion_point(field_get:ignition.msgs.Shadows.header)
229  return header_ != NULL ? *header_ : *default_instance_->header_;
230 }
231 inline ::ignition::msgs::Header* Shadows::mutable_header() {
232 
233  if (header_ == NULL) {
234  header_ = new ::ignition::msgs::Header;
235  }
236  // @@protoc_insertion_point(field_mutable:ignition.msgs.Shadows.header)
237  return header_;
238 }
239 inline ::ignition::msgs::Header* Shadows::release_header() {
240  // @@protoc_insertion_point(field_release:ignition.msgs.Shadows.header)
241 
242  ::ignition::msgs::Header* temp = header_;
243  header_ = NULL;
244  return temp;
245 }
247  delete header_;
248  header_ = header;
249  if (header) {
250 
251  } else {
252 
253  }
254  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Shadows.header)
255 }
256 
257 // optional .ignition.msgs.Shadows.ShadowType type = 2;
258 inline void Shadows::clear_type() {
259  type_ = 0;
260 }
262  // @@protoc_insertion_point(field_get:ignition.msgs.Shadows.type)
263  return static_cast< ::ignition::msgs::Shadows_ShadowType >(type_);
264 }
266 
267  type_ = value;
268  // @@protoc_insertion_point(field_set:ignition.msgs.Shadows.type)
269 }
270 
271 // optional .ignition.msgs.Color color = 3;
272 inline bool Shadows::has_color() const {
273  return !_is_default_instance_ && color_ != NULL;
274 }
275 inline void Shadows::clear_color() {
276  if (GetArenaNoVirtual() == NULL && color_ != NULL) delete color_;
277  color_ = NULL;
278 }
279 inline const ::ignition::msgs::Color& Shadows::color() const {
280  // @@protoc_insertion_point(field_get:ignition.msgs.Shadows.color)
281  return color_ != NULL ? *color_ : *default_instance_->color_;
282 }
283 inline ::ignition::msgs::Color* Shadows::mutable_color() {
284 
285  if (color_ == NULL) {
286  color_ = new ::ignition::msgs::Color;
287  }
288  // @@protoc_insertion_point(field_mutable:ignition.msgs.Shadows.color)
289  return color_;
290 }
291 inline ::ignition::msgs::Color* Shadows::release_color() {
292  // @@protoc_insertion_point(field_release:ignition.msgs.Shadows.color)
293 
294  ::ignition::msgs::Color* temp = color_;
295  color_ = NULL;
296  return temp;
297 }
299  delete color_;
300  color_ = color;
301  if (color) {
302 
303  } else {
304 
305  }
306  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Shadows.color)
307 }
308 
309 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
310 
315 // @@protoc_insertion_point(namespace_scope)
316 
317 } // namespace msgs
318 } // namespace ignition
319 
320 #ifndef SWIG
321 namespace google {
322 namespace protobuf {
323 
324 template <> struct is_proto_enum< ::ignition::msgs::Shadows_ShadowType> : ::google::protobuf::internal::true_type {};
325 template <>
326 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Shadows_ShadowType>() {
328 }
329 
330 } // namespace protobuf
331 } // namespace google
332 #endif // SWIG
333 
334 #ifdef _MSC_VER
335 #pragma warning(pop)
336 #endif
337 // @@protoc_insertion_point(global_scope)
338 
339 #endif // PROTOBUF_ignition_2fmsgs_2fshadows_2eproto__INCLUDED
IGNITION_MSGS_VISIBLEconst ::google::protobuf::EnumDescriptor * Shadows_ShadowType_descriptor()
std::unique_ptr< const Shadows > ConstShadowsUniquePtr
Definition: shadows.pb.h:312
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: shadows.pb.h:117
Shadows * New() const
Definition: shadows.pb.h:100
void clear_color()
Definition: shadows.pb.h:275
::ignition::msgs::Color * release_color()
Definition: shadows.pb.h:291
Shadows & operator=(const Shadows &from)
Definition: shadows.pb.h:88
int GetCachedSize() const
Definition: shadows.pb.h:120
void protobuf_AssignDesc_ignition_2fmsgs_2fshadows_2eproto()
::ignition::msgs::Header * release_header()
Definition: shadows.pb.h:239
void clear_header()
Definition: shadows.pb.h:223
static bool ShadowType_IsValid(int value)
Definition: shadows.pb.h:148
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fshadows_2eproto()
Definition: header.pb.h:161
const ::ignition::msgs::Header & header() const
Definition: shadows.pb.h:227
::ignition::msgs::Color * mutable_color()
Definition: shadows.pb.h:283
void clear_type()
Definition: shadows.pb.h:258
bool Shadows_ShadowType_Parse(const ::std::string &name, Shadows_ShadowType *value)
Definition: shadows.pb.h:74
static const ::google::protobuf::EnumDescriptor * ShadowType_descriptor()
Definition: shadows.pb.h:158
const ::ignition::msgs::Color & color() const
Definition: shadows.pb.h:279
std::shared_ptr< const Shadows > ConstShadowsSharedPtr
Definition: shadows.pb.h:314
::ignition::msgs::Header * mutable_header()
Definition: shadows.pb.h:231
const ::std::string & Shadows_ShadowType_Name(Shadows_ShadowType value)
Definition: shadows.pb.h:70
const Shadows_ShadowType Shadows_ShadowType_ShadowType_MAX
Definition: shadows.pb.h:66
Shadows_ShadowType ShadowType
Definition: shadows.pb.h:139
Definition: color.pb.h:56
STL class.
std::shared_ptr< Shadows > ShadowsSharedPtr
Definition: shadows.pb.h:313
const Shadows_ShadowType Shadows_ShadowType_ShadowType_MIN
Definition: shadows.pb.h:65
Shadows_ShadowType
Definition: shadows.pb.h:56
void set_allocated_color(::ignition::msgs::Color *color)
Definition: shadows.pb.h:298
void set_type(::ignition::msgs::Shadows_ShadowType value)
Definition: shadows.pb.h:265
static bool ShadowType_Parse(const ::std::string &name, ShadowType *value)
Definition: shadows.pb.h:164
Definition: any.pb.h:839
void set_allocated_header(::ignition::msgs::Header *header)
Definition: shadows.pb.h:246
const int Shadows_ShadowType_ShadowType_ARRAYSIZE
Definition: shadows.pb.h:67
IGNITION_MSGS_VISIBLE bool Shadows_ShadowType_IsValid(int value)
void protobuf_ShutdownFile_ignition_2fmsgs_2fshadows_2eproto()
bool has_color() const
Definition: shadows.pb.h:272
bool has_header() const
Definition: shadows.pb.h:220
Definition: shadows.pb.h:81
static const ::std::string & ShadowType_Name(ShadowType value)
Definition: shadows.pb.h:161
::ignition::msgs::Shadows_ShadowType type() const
Definition: shadows.pb.h:261
std::unique_ptr< Shadows > ShadowsUniquePtr
Definition: shadows.pb.h:311