4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fworld_5fcontrol_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fworld_5fcontrol_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/world_reset.pb.h"
34 #include "gz/msgs/header.pb.h"
35 #include "gz/msgs/time.pb.h"
37 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fworld_5fcontrol_2eproto GZ_MSGS_VISIBLE
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[];
54 class WorldControlDefaultTypeInternal;
60 template<> GZ_MSGS_VISIBLE ::gz::msgs::WorldControl* Arena::CreateMaybeMessage<::gz::msgs::WorldControl>(Arena*);
68 class GZ_MSGS_VISIBLE
WorldControl :
public ::google::protobuf::Message {
82 *
this = ::std::move(from);
85 inline WorldControl& operator=(WorldControl&& from) noexcept {
86 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
87 if (
this != &from) InternalSwap(&from);
94 static const ::google::protobuf::Descriptor* descriptor();
95 static const WorldControl& default_instance();
97 static void InitAsDefaultInstance();
102 static constexpr
int kIndexInFileMessages =
113 return CreateMaybeMessage<WorldControl>(NULL);
117 return CreateMaybeMessage<WorldControl>(arena);
119 void CopyFrom(const ::google::protobuf::Message& from)
final;
120 void MergeFrom(const ::google::protobuf::Message& from)
final;
124 bool IsInitialized() const final;
126 size_t ByteSizeLong() const final;
127 bool MergePartialFromCodedStream(
128 ::
google::protobuf::io::CodedInputStream* input) final;
129 void SerializeWithCachedSizes(
130 ::
google::protobuf::io::CodedOutputStream* output) const final;
131 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
132 bool deterministic, ::
google::protobuf::uint8* target) const final;
133 int GetCachedSize() const final {
return _cached_size_.Get(); }
138 void SetCachedSize(
int size)
const final;
141 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
144 inline void* MaybeArenaPtr()
const {
149 ::google::protobuf::Metadata GetMetadata() const final;
156 bool has_header() const;
158 static const
int kHeaderFieldNumber = 1;
160 const ::
gz::msgs::
Header& _internal_header() const;
162 const ::
gz::msgs::
Header& header() const;
163 ::
gz::msgs::
Header* release_header();
164 ::
gz::msgs::
Header* mutable_header();
165 void set_allocated_header(::
gz::msgs::
Header* header);
168 bool has_reset() const;
170 static const
int kResetFieldNumber = 5;
177 void set_allocated_reset(::
gz::msgs::
WorldReset* reset);
180 bool has_run_to_sim_time() const;
181 void clear_run_to_sim_time();
182 static const
int kRunToSimTimeFieldNumber = 7;
184 const ::
gz::msgs::
Time& _internal_run_to_sim_time() const;
186 const ::
gz::msgs::
Time& run_to_sim_time() const;
187 ::
gz::msgs::
Time* release_run_to_sim_time();
188 ::
gz::msgs::
Time* mutable_run_to_sim_time();
189 void set_allocated_run_to_sim_time(::
gz::msgs::
Time* run_to_sim_time);
193 static const
int kPauseFieldNumber = 2;
195 void set_pause(
bool value);
199 static const
int kStepFieldNumber = 3;
201 void set_step(
bool value);
204 void clear_multi_step();
205 static const
int kMultiStepFieldNumber = 4;
206 ::
google::protobuf::uint32 multi_step() const;
207 void set_multi_step(::
google::protobuf::uint32 value);
211 static const
int kSeedFieldNumber = 6;
212 ::
google::protobuf::uint32 seed() const;
213 void set_seed(::
google::protobuf::uint32 value);
218 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
221 ::
gz::msgs::
Time* run_to_sim_time_;
224 ::
google::protobuf::uint32 multi_step_;
225 ::
google::protobuf::uint32 seed_;
226 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
235 #pragma GCC diagnostic push
236 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
242 return this != internal_default_instance() && header_ != NULL;
244 inline const ::gz::msgs::Header& WorldControl::_internal_header()
const {
248 const ::gz::msgs::Header* p = header_;
262 if (header_ == NULL) {
263 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
270 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
271 if (message_arena == NULL) {
272 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
275 ::google::protobuf::Arena* submessage_arena = NULL;
276 if (message_arena != submessage_arena) {
277 header = ::google::protobuf::internal::GetOwnedMessage(
278 message_arena, header, submessage_arena);
332 return this != internal_default_instance() && reset_ != NULL;
334 inline const ::gz::msgs::WorldReset& WorldControl::_internal_reset()
const {
338 const ::gz::msgs::WorldReset* p = reset_;
352 if (reset_ == NULL) {
353 auto* p = CreateMaybeMessage<::gz::msgs::WorldReset>(GetArenaNoVirtual());
360 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
361 if (message_arena == NULL) {
362 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(reset_);
365 ::google::protobuf::Arena* submessage_arena = NULL;
366 if (message_arena != submessage_arena) {
367 reset = ::google::protobuf::internal::GetOwnedMessage(
368 message_arena, reset, submessage_arena);
394 return this != internal_default_instance() && run_to_sim_time_ != NULL;
396 inline const ::gz::msgs::Time& WorldControl::_internal_run_to_sim_time()
const {
397 return *run_to_sim_time_;
400 const ::gz::msgs::Time* p = run_to_sim_time_;
402 return p != NULL ? *p : *
reinterpret_cast<const ::
gz::msgs::Time*
>(
409 run_to_sim_time_ = NULL;
414 if (run_to_sim_time_ == NULL) {
415 auto* p = CreateMaybeMessage<::gz::msgs::Time>(GetArenaNoVirtual());
416 run_to_sim_time_ = p;
419 return run_to_sim_time_;
422 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
423 if (message_arena == NULL) {
424 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(run_to_sim_time_);
426 if (run_to_sim_time) {
427 ::google::protobuf::Arena* submessage_arena = NULL;
428 if (message_arena != submessage_arena) {
429 run_to_sim_time = ::google::protobuf::internal::GetOwnedMessage(
430 message_arena, run_to_sim_time, submessage_arena);
436 run_to_sim_time_ = run_to_sim_time;
441 #pragma GCC diagnostic pop
451 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fworld_5fcontrol_2eproto