Ignition Msgs

API Reference

8.2.0
world_reset.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/world_reset.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fworld_5freset_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fworld_5freset_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/unknown_field_set.h>
31 #ifndef _MSC_VER
32 #pragma GCC system_header
33 #else
34 #pragma warning(push)
35 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
36 #endif
37 #ifdef __linux__
38 #include <sys/sysmacros.h>
39 #endif
40 #include <memory>
41 #include <ignition/msgs/Export.hh>
42 // @@protoc_insertion_point(includes)
43 
44 namespace ignition {
45 namespace msgs {
46 
47 // Internal implementation detail -- do not call these.
51 
52 class WorldReset;
53 
54 // ===================================================================
55 
56 class IGNITION_MSGS_VISIBLE WorldReset : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.WorldReset) */ {
57  public:
58  WorldReset();
59  virtual ~WorldReset();
60 
61  WorldReset(const WorldReset& from);
62 
63  inline WorldReset& operator=(const WorldReset& from) {
64  CopyFrom(from);
65  return *this;
66  }
67 
68  static const ::google::protobuf::Descriptor* descriptor();
69  static const WorldReset& default_instance();
70 
71  void Swap(WorldReset* other);
72 
73  // implements Message ----------------------------------------------
74 
75  inline WorldReset* New() const { return New(NULL); }
76 
77  WorldReset* New(::google::protobuf::Arena* arena) const;
78  void CopyFrom(const ::google::protobuf::Message& from);
79  void MergeFrom(const ::google::protobuf::Message& from);
80  void CopyFrom(const WorldReset& from);
81  void MergeFrom(const WorldReset& from);
82  void Clear();
83  bool IsInitialized() const;
84 
85  int ByteSize() const;
86  bool MergePartialFromCodedStream(
87  ::google::protobuf::io::CodedInputStream* input);
88  void SerializeWithCachedSizes(
89  ::google::protobuf::io::CodedOutputStream* output) const;
90  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
91  bool deterministic, ::google::protobuf::uint8* output) const;
92  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
93  return InternalSerializeWithCachedSizesToArray(false, output);
94  }
95  int GetCachedSize() const { return _cached_size_; }
96  private:
97  void SharedCtor();
98  void SharedDtor();
99  void SetCachedSize(int size) const;
100  void InternalSwap(WorldReset* other);
101  private:
102  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
103  return _internal_metadata_.arena();
104  }
105  inline void* MaybeArenaPtr() const {
106  return _internal_metadata_.raw_arena_ptr();
107  }
108  public:
109 
110  ::google::protobuf::Metadata GetMetadata() const;
111 
112  // nested types ----------------------------------------------------
113 
114  // accessors -------------------------------------------------------
115 
116  // optional .ignition.msgs.Header header = 1;
117  bool has_header() const;
118  void clear_header();
119  static const int kHeaderFieldNumber = 1;
120  const ::ignition::msgs::Header& header() const;
121  ::ignition::msgs::Header* mutable_header();
122  ::ignition::msgs::Header* release_header();
123  void set_allocated_header(::ignition::msgs::Header* header);
124 
125  // optional bool all = 2;
126  void clear_all();
127  static const int kAllFieldNumber = 2;
128  bool all() const;
129  void set_all(bool value);
130 
131  // optional bool time_only = 3;
132  void clear_time_only();
133  static const int kTimeOnlyFieldNumber = 3;
134  bool time_only() const;
135  void set_time_only(bool value);
136 
137  // optional bool model_only = 4;
138  void clear_model_only();
139  static const int kModelOnlyFieldNumber = 4;
140  bool model_only() const;
141  void set_model_only(bool value);
142 
143  // @@protoc_insertion_point(class_scope:ignition.msgs.WorldReset)
144  private:
145 
146  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
147  bool _is_default_instance_;
148  ::ignition::msgs::Header* header_;
149  bool all_;
150  bool time_only_;
151  bool model_only_;
152  mutable int _cached_size_;
153  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fworld_5freset_2eproto();
156 
157  void InitAsDefaultInstance();
158  static WorldReset* default_instance_;
159 };
160 // ===================================================================
161 
162 
163 // ===================================================================
164 
165 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
166 // WorldReset
167 
168 // optional .ignition.msgs.Header header = 1;
169 inline bool WorldReset::has_header() const {
170  return !_is_default_instance_ && header_ != NULL;
171 }
173  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
174  header_ = NULL;
175 }
176 inline const ::ignition::msgs::Header& WorldReset::header() const {
177  // @@protoc_insertion_point(field_get:ignition.msgs.WorldReset.header)
178  return header_ != NULL ? *header_ : *default_instance_->header_;
179 }
180 inline ::ignition::msgs::Header* WorldReset::mutable_header() {
181 
182  if (header_ == NULL) {
183  header_ = new ::ignition::msgs::Header;
184  }
185  // @@protoc_insertion_point(field_mutable:ignition.msgs.WorldReset.header)
186  return header_;
187 }
188 inline ::ignition::msgs::Header* WorldReset::release_header() {
189  // @@protoc_insertion_point(field_release:ignition.msgs.WorldReset.header)
190 
191  ::ignition::msgs::Header* temp = header_;
192  header_ = NULL;
193  return temp;
194 }
196  delete header_;
197  header_ = header;
198  if (header) {
199 
200  } else {
201 
202  }
203  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.WorldReset.header)
204 }
205 
206 // optional bool all = 2;
207 inline void WorldReset::clear_all() {
208  all_ = false;
209 }
210 inline bool WorldReset::all() const {
211  // @@protoc_insertion_point(field_get:ignition.msgs.WorldReset.all)
212  return all_;
213 }
214 inline void WorldReset::set_all(bool value) {
215 
216  all_ = value;
217  // @@protoc_insertion_point(field_set:ignition.msgs.WorldReset.all)
218 }
219 
220 // optional bool time_only = 3;
222  time_only_ = false;
223 }
224 inline bool WorldReset::time_only() const {
225  // @@protoc_insertion_point(field_get:ignition.msgs.WorldReset.time_only)
226  return time_only_;
227 }
228 inline void WorldReset::set_time_only(bool value) {
229 
230  time_only_ = value;
231  // @@protoc_insertion_point(field_set:ignition.msgs.WorldReset.time_only)
232 }
233 
234 // optional bool model_only = 4;
236  model_only_ = false;
237 }
238 inline bool WorldReset::model_only() const {
239  // @@protoc_insertion_point(field_get:ignition.msgs.WorldReset.model_only)
240  return model_only_;
241 }
242 inline void WorldReset::set_model_only(bool value) {
243 
244  model_only_ = value;
245  // @@protoc_insertion_point(field_set:ignition.msgs.WorldReset.model_only)
246 }
247 
248 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
249 
254 // @@protoc_insertion_point(namespace_scope)
255 
256 } // namespace msgs
257 } // namespace ignition
258 
259 #ifdef _MSC_VER
260 #pragma warning(pop)
261 #endif
262 // @@protoc_insertion_point(global_scope)
263 
264 #endif // PROTOBUF_ignition_2fmsgs_2fworld_5freset_2eproto__INCLUDED
std::unique_ptr< const WorldReset > ConstWorldResetUniquePtr
Definition: world_reset.pb.h:251
bool all() const
Definition: world_reset.pb.h:210
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: world_reset.pb.h:92
std::unique_ptr< WorldReset > WorldResetUniquePtr
Definition: world_reset.pb.h:250
bool time_only() const
Definition: world_reset.pb.h:224
::ignition::msgs::Header * release_header()
Definition: world_reset.pb.h:188
const ::ignition::msgs::Header & header() const
Definition: world_reset.pb.h:176
void clear_header()
Definition: world_reset.pb.h:172
Definition: header.pb.h:161
bool has_header() const
Definition: world_reset.pb.h:169
Definition: world_reset.pb.h:56
void set_allocated_header(::ignition::msgs::Header *header)
Definition: world_reset.pb.h:195
WorldReset & operator=(const WorldReset &from)
Definition: world_reset.pb.h:63
void protobuf_AssignDesc_ignition_2fmsgs_2fworld_5freset_2eproto()
void clear_model_only()
Definition: world_reset.pb.h:235
void protobuf_ShutdownFile_ignition_2fmsgs_2fworld_5freset_2eproto()
int GetCachedSize() const
Definition: world_reset.pb.h:95
STL class.
void set_model_only(bool value)
Definition: world_reset.pb.h:242
void clear_time_only()
Definition: world_reset.pb.h:221
void set_all(bool value)
Definition: world_reset.pb.h:214
void set_time_only(bool value)
Definition: world_reset.pb.h:228
::ignition::msgs::Header * mutable_header()
Definition: world_reset.pb.h:180
std::shared_ptr< WorldReset > WorldResetSharedPtr
Definition: world_reset.pb.h:252
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fworld_5freset_2eproto()
WorldReset * New() const
Definition: world_reset.pb.h:75
bool model_only() const
Definition: world_reset.pb.h:238
std::shared_ptr< const WorldReset > ConstWorldResetSharedPtr
Definition: world_reset.pb.h:253
void clear_all()
Definition: world_reset.pb.h:207