4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fserver_5fcontrol_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fserver_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/header.pb.h"
35 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fserver_5fcontrol_2eproto GZ_MSGS_VISIBLE
40 static const ::google::protobuf::internal::ParseTableField entries[];
41 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
42 static const ::google::protobuf::internal::ParseTable schema[1];
43 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
44 static const ::google::protobuf::internal::SerializationTable serialization_table[];
45 static const ::google::protobuf::uint32 offsets[];
52 class ServerControlDefaultTypeInternal;
58 template<> GZ_MSGS_VISIBLE ::gz::msgs::ServerControl* Arena::CreateMaybeMessage<::gz::msgs::ServerControl>(Arena*);
66 class GZ_MSGS_VISIBLE
ServerControl :
public ::google::protobuf::Message {
80 *
this = ::std::move(from);
83 inline ServerControl& operator=(ServerControl&& from) noexcept {
84 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
85 if (
this != &from) InternalSwap(&from);
92 static const ::google::protobuf::Descriptor* descriptor();
93 static const ServerControl& default_instance();
95 static void InitAsDefaultInstance();
100 static constexpr
int kIndexInFileMessages =
111 return CreateMaybeMessage<ServerControl>(NULL);
115 return CreateMaybeMessage<ServerControl>(arena);
117 void CopyFrom(const ::google::protobuf::Message& from)
final;
118 void MergeFrom(const ::google::protobuf::Message& from)
final;
122 bool IsInitialized() const final;
124 size_t ByteSizeLong() const final;
125 bool MergePartialFromCodedStream(
126 ::
google::protobuf::io::CodedInputStream* input) final;
127 void SerializeWithCachedSizes(
128 ::
google::protobuf::io::CodedOutputStream* output) const final;
129 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
130 bool deterministic, ::
google::protobuf::uint8* target) const final;
131 int GetCachedSize() const final {
return _cached_size_.Get(); }
136 void SetCachedSize(
int size)
const final;
139 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
142 inline void* MaybeArenaPtr()
const {
147 ::google::protobuf::Metadata GetMetadata() const final;
154 void clear_save_world_name();
155 static const
int kSaveWorldNameFieldNumber = 2;
156 const ::
std::
string& save_world_name() const;
157 void set_save_world_name(const ::
std::
string& value);
161 void set_save_world_name(
const char* value);
162 void set_save_world_name(
const char* value,
size_t size);
165 void set_allocated_save_world_name(::
std::string* save_world_name);
168 void clear_save_filename();
169 static const int kSaveFilenameFieldNumber = 3;
170 const ::std::string& save_filename()
const;
171 void set_save_filename(const ::std::string& value);
175 void set_save_filename(
const char* value);
176 void set_save_filename(
const char* value,
size_t size);
179 void set_allocated_save_filename(::
std::string* save_filename);
182 void clear_open_filename();
183 static const int kOpenFilenameFieldNumber = 4;
184 const ::std::string& open_filename()
const;
185 void set_open_filename(const ::std::string& value);
189 void set_open_filename(
const char* value);
190 void set_open_filename(
const char* value,
size_t size);
193 void set_allocated_open_filename(::
std::string* open_filename);
196 bool has_header()
const;
198 static const int kHeaderFieldNumber = 1;
200 const ::gz::msgs::Header& _internal_header()
const;
202 const ::gz::msgs::Header& header()
const;
208 void clear_new_world();
209 static const int kNewWorldFieldNumber = 5;
210 bool new_world()
const;
211 void set_new_world(
bool value);
215 static const int kStopFieldNumber = 6;
217 void set_stop(
bool value);
221 static const int kCloneFieldNumber = 7;
223 void set_clone(
bool value);
226 void clear_new_port();
227 static const int kNewPortFieldNumber = 8;
228 ::google::protobuf::uint32 new_port()
const;
229 void set_new_port(::google::protobuf::uint32 value);
234 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
235 ::google::protobuf::internal::ArenaStringPtr save_world_name_;
236 ::google::protobuf::internal::ArenaStringPtr save_filename_;
237 ::google::protobuf::internal::ArenaStringPtr open_filename_;
242 ::google::protobuf::uint32 new_port_;
243 mutable ::google::protobuf::internal::CachedSize _cached_size_;
244 friend struct ::protobuf_gz_2fmsgs_2fserver_5fcontrol_2eproto::TableStruct;
252 #pragma GCC diagnostic push
253 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
261 inline const ::gz::msgs::Header& ServerControl::_internal_header()
const {
265 const ::gz::msgs::Header* p = header_;
279 if (header_ == NULL) {
280 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
287 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
288 if (message_arena == NULL) {
289 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
292 ::google::protobuf::Arena* submessage_arena = NULL;
293 if (message_arena != submessage_arena) {
294 header = ::google::protobuf::internal::GetOwnedMessage(
295 message_arena,
header, submessage_arena);
307 save_world_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
311 return save_world_name_.GetNoArena();
315 save_world_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
321 save_world_name_.SetNoArena(
322 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
327 GOOGLE_DCHECK(value != NULL);
329 save_world_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
334 save_world_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
335 ::
std::string(
reinterpret_cast<const char*
>(value), size));
341 return save_world_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
346 return save_world_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
354 save_world_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
save_world_name);
360 save_filename_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
364 return save_filename_.GetNoArena();
368 save_filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
374 save_filename_.SetNoArena(
375 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
380 GOOGLE_DCHECK(value != NULL);
382 save_filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
387 save_filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
388 ::
std::string(
reinterpret_cast<const char*
>(value), size));
394 return save_filename_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
399 return save_filename_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
407 save_filename_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
save_filename);
413 open_filename_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
417 return open_filename_.GetNoArena();
421 open_filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
427 open_filename_.SetNoArena(
428 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
433 GOOGLE_DCHECK(value != NULL);
435 open_filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
440 open_filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
441 ::
std::string(
reinterpret_cast<const char*
>(value), size));
447 return open_filename_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
452 return open_filename_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
460 open_filename_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
open_filename);
521 #pragma GCC diagnostic pop
531 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fserver_5fcontrol_2eproto