Gazebo Msgs

API Reference

9.5.0
shadows.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/shadows.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fshadows_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fshadows_2eproto
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
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
14 #error your headers.
15 #endif
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.
20 #endif
21 
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> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
32 #include <google/protobuf/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
34 #include "gz/msgs/color.pb.h"
35 #include "gz/msgs/header.pb.h"
36 // @@protoc_insertion_point(includes)
37 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fshadows_2eproto GZ_MSGS_VISIBLE
38 
40 // Internal implementation detail -- do not use these members.
41 struct GZ_MSGS_VISIBLE TableStruct {
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[];
48 };
49 void GZ_MSGS_VISIBLE AddDescriptors();
50 } // namespace protobuf_gz_2fmsgs_2fshadows_2eproto
51 namespace gz {
52 namespace msgs {
53 class Shadows;
54 class ShadowsDefaultTypeInternal;
55 GZ_MSGS_VISIBLE extern ShadowsDefaultTypeInternal _Shadows_default_instance_;
56 } // namespace msgs
57 } // namespace gz
58 namespace google {
59 namespace protobuf {
60 template<> GZ_MSGS_VISIBLE ::gz::msgs::Shadows* Arena::CreateMaybeMessage<::gz::msgs::Shadows>(Arena*);
61 } // namespace protobuf
62 } // namespace google
63 namespace gz {
64 namespace msgs {
65 
73 };
74 GZ_MSGS_VISIBLE bool Shadows_ShadowType_IsValid(int value);
78 
79 GZ_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* Shadows_ShadowType_descriptor();
80 inline const ::std::string& Shadows_ShadowType_Name(Shadows_ShadowType value) {
81  return ::google::protobuf::internal::NameOfEnum(
83 }
85  const ::std::string& name, Shadows_ShadowType* value) {
86  return ::google::protobuf::internal::ParseNamedEnum<Shadows_ShadowType>(
87  Shadows_ShadowType_descriptor(), name, value);
88 }
89 // ===================================================================
90 
91 class GZ_MSGS_VISIBLE Shadows : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Shadows) */ {
92  public:
93  Shadows();
94  virtual ~Shadows();
95 
96  Shadows(const Shadows& from);
97 
98  inline Shadows& operator=(const Shadows& from) {
99  CopyFrom(from);
100  return *this;
101  }
102  #if LANG_CXX11
103  Shadows(Shadows&& from) noexcept
104  : Shadows() {
105  *this = ::std::move(from);
106  }
107 
108  inline Shadows& operator=(Shadows&& from) noexcept {
109  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
110  if (this != &from) InternalSwap(&from);
111  } else {
112  CopyFrom(from);
113  }
114  return *this;
115  }
116  #endif
117  static const ::google::protobuf::Descriptor* descriptor();
118  static const Shadows& default_instance();
119 
120  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
121  static inline const Shadows* internal_default_instance() {
122  return reinterpret_cast<const Shadows*>(
124  }
125  static constexpr int kIndexInFileMessages =
126  0;
127 
128  void Swap(Shadows* other);
129  friend void swap(Shadows& a, Shadows& b) {
130  a.Swap(&b);
131  }
132 
133  // implements Message ----------------------------------------------
134 
135  inline Shadows* New() const final {
136  return CreateMaybeMessage<Shadows>(NULL);
137  }
138 
139  Shadows* New(::google::protobuf::Arena* arena) const final {
140  return CreateMaybeMessage<Shadows>(arena);
141  }
142  void CopyFrom(const ::google::protobuf::Message& from) final;
143  void MergeFrom(const ::google::protobuf::Message& from) final;
144  void CopyFrom(const Shadows& from);
145  void MergeFrom(const Shadows& from);
146  void Clear() final;
147  bool IsInitialized() const final;
148 
149  size_t ByteSizeLong() const final;
150  bool MergePartialFromCodedStream(
151  ::google::protobuf::io::CodedInputStream* input) final;
152  void SerializeWithCachedSizes(
153  ::google::protobuf::io::CodedOutputStream* output) const final;
154  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
155  bool deterministic, ::google::protobuf::uint8* target) const final;
156  int GetCachedSize() const final { return _cached_size_.Get(); }
157 
158  private:
159  void SharedCtor();
160  void SharedDtor();
161  void SetCachedSize(int size) const final;
162  void InternalSwap(Shadows* other);
163  private:
164  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
165  return NULL;
166  }
167  inline void* MaybeArenaPtr() const {
168  return NULL;
169  }
170  public:
171 
172  ::google::protobuf::Metadata GetMetadata() const final;
173 
174  // nested types ----------------------------------------------------
175 
177  static const ShadowType STENCIL_ADDITIVE =
179  static const ShadowType STENCIL_MODULATIVE =
181  static const ShadowType TEXTURE_ADDITIVE =
183  static const ShadowType TEXTURE_MODULATIVE =
185  static inline bool ShadowType_IsValid(int value) {
186  return Shadows_ShadowType_IsValid(value);
187  }
188  static const ShadowType ShadowType_MIN =
190  static const ShadowType ShadowType_MAX =
192  static const int ShadowType_ARRAYSIZE =
194  static inline const ::google::protobuf::EnumDescriptor*
197  }
198  static inline const ::std::string& ShadowType_Name(ShadowType value) {
199  return Shadows_ShadowType_Name(value);
200  }
201  static inline bool ShadowType_Parse(const ::std::string& name,
202  ShadowType* value) {
203  return Shadows_ShadowType_Parse(name, value);
204  }
205 
206  // accessors -------------------------------------------------------
207 
208  // .gz.msgs.Header header = 1;
209  bool has_header() const;
210  void clear_header();
211  static const int kHeaderFieldNumber = 1;
212  private:
213  const ::gz::msgs::Header& _internal_header() const;
214  public:
215  const ::gz::msgs::Header& header() const;
216  ::gz::msgs::Header* release_header();
217  ::gz::msgs::Header* mutable_header();
218  void set_allocated_header(::gz::msgs::Header* header);
219 
220  // .gz.msgs.Color color = 3;
221  bool has_color() const;
222  void clear_color();
223  static const int kColorFieldNumber = 3;
224  private:
225  const ::gz::msgs::Color& _internal_color() const;
226  public:
227  const ::gz::msgs::Color& color() const;
228  ::gz::msgs::Color* release_color();
229  ::gz::msgs::Color* mutable_color();
230  void set_allocated_color(::gz::msgs::Color* color);
231 
232  // .gz.msgs.Shadows.ShadowType type = 2;
233  void clear_type();
234  static const int kTypeFieldNumber = 2;
235  ::gz::msgs::Shadows_ShadowType type() const;
236  void set_type(::gz::msgs::Shadows_ShadowType value);
237 
238  // @@protoc_insertion_point(class_scope:gz.msgs.Shadows)
239  private:
240 
241  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
242  ::gz::msgs::Header* header_;
243  ::gz::msgs::Color* color_;
244  int type_;
245  mutable ::google::protobuf::internal::CachedSize _cached_size_;
246  friend struct ::protobuf_gz_2fmsgs_2fshadows_2eproto::TableStruct;
247 };
248 // ===================================================================
249 
250 
251 // ===================================================================
252 
253 #ifdef __GNUC__
254  #pragma GCC diagnostic push
255  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
256 #endif // __GNUC__
257 // Shadows
258 
259 // .gz.msgs.Header header = 1;
260 inline bool Shadows::has_header() const {
261  return this != internal_default_instance() && header_ != NULL;
262 }
263 inline const ::gz::msgs::Header& Shadows::_internal_header() const {
264  return *header_;
265 }
266 inline const ::gz::msgs::Header& Shadows::header() const {
267  const ::gz::msgs::Header* p = header_;
268  // @@protoc_insertion_point(field_get:gz.msgs.Shadows.header)
269  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
271 }
272 inline ::gz::msgs::Header* Shadows::release_header() {
273  // @@protoc_insertion_point(field_release:gz.msgs.Shadows.header)
274 
275  ::gz::msgs::Header* temp = header_;
276  header_ = NULL;
277  return temp;
278 }
279 inline ::gz::msgs::Header* Shadows::mutable_header() {
280 
281  if (header_ == NULL) {
282  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
283  header_ = p;
284  }
285  // @@protoc_insertion_point(field_mutable:gz.msgs.Shadows.header)
286  return header_;
287 }
289  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
290  if (message_arena == NULL) {
291  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
292  }
293  if (header) {
294  ::google::protobuf::Arena* submessage_arena = NULL;
295  if (message_arena != submessage_arena) {
296  header = ::google::protobuf::internal::GetOwnedMessage(
297  message_arena, header, submessage_arena);
298  }
299 
300  } else {
301 
302  }
303  header_ = header;
304  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Shadows.header)
305 }
306 
307 // .gz.msgs.Shadows.ShadowType type = 2;
308 inline void Shadows::clear_type() {
309  type_ = 0;
310 }
312  // @@protoc_insertion_point(field_get:gz.msgs.Shadows.type)
313  return static_cast< ::gz::msgs::Shadows_ShadowType >(type_);
314 }
316 
317  type_ = value;
318  // @@protoc_insertion_point(field_set:gz.msgs.Shadows.type)
319 }
320 
321 // .gz.msgs.Color color = 3;
322 inline bool Shadows::has_color() const {
323  return this != internal_default_instance() && color_ != NULL;
324 }
325 inline const ::gz::msgs::Color& Shadows::_internal_color() const {
326  return *color_;
327 }
328 inline const ::gz::msgs::Color& Shadows::color() const {
329  const ::gz::msgs::Color* p = color_;
330  // @@protoc_insertion_point(field_get:gz.msgs.Shadows.color)
331  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Color*>(
333 }
334 inline ::gz::msgs::Color* Shadows::release_color() {
335  // @@protoc_insertion_point(field_release:gz.msgs.Shadows.color)
336 
337  ::gz::msgs::Color* temp = color_;
338  color_ = NULL;
339  return temp;
340 }
341 inline ::gz::msgs::Color* Shadows::mutable_color() {
342 
343  if (color_ == NULL) {
344  auto* p = CreateMaybeMessage<::gz::msgs::Color>(GetArenaNoVirtual());
345  color_ = p;
346  }
347  // @@protoc_insertion_point(field_mutable:gz.msgs.Shadows.color)
348  return color_;
349 }
351  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
352  if (message_arena == NULL) {
353  delete reinterpret_cast< ::google::protobuf::MessageLite*>(color_);
354  }
355  if (color) {
356  ::google::protobuf::Arena* submessage_arena = NULL;
357  if (message_arena != submessage_arena) {
358  color = ::google::protobuf::internal::GetOwnedMessage(
359  message_arena, color, submessage_arena);
360  }
361 
362  } else {
363 
364  }
365  color_ = color;
366  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Shadows.color)
367 }
368 
369 #ifdef __GNUC__
370  #pragma GCC diagnostic pop
371 #endif // __GNUC__
372 
373 // @@protoc_insertion_point(namespace_scope)
374 
375 } // namespace msgs
376 } // namespace gz
377 
378 namespace google {
379 namespace protobuf {
380 
381 template <> struct is_proto_enum< ::gz::msgs::Shadows_ShadowType> : ::std::true_type {};
382 template <>
383 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::Shadows_ShadowType>() {
385 }
386 
387 } // namespace protobuf
388 } // namespace google
389 
390 // @@protoc_insertion_point(global_scope)
391 
392 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fshadows_2eproto