4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2frest_5fresponse_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2frest_5fresponse_2eproto
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3014000
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 3014000 < 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/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/generated_message_reflection.h>
30 #include <google/protobuf/message.h>
31 #include <google/protobuf/repeated_field.h>
32 #include <google/protobuf/extension_set.h>
33 #include <google/protobuf/generated_enum_reflection.h>
34 #include <google/protobuf/unknown_field_set.h>
37 #pragma GCC system_header
40 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
43 #include <sys/sysmacros.h>
48 #include <google/protobuf/port_def.inc>
49 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2frest_5fresponse_2eproto IGNITION_MSGS_VISIBLE
50 PROTOBUF_NAMESPACE_OPEN
54 PROTOBUF_NAMESPACE_CLOSE
58 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
60 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
62 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
64 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
65 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
66 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
72 class RestResponseDefaultTypeInternal;
76 PROTOBUF_NAMESPACE_OPEN
77 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::RestResponse* Arena::CreateMaybeMessage<::ignition::msgs::RestResponse>(Arena*);
78 PROTOBUF_NAMESPACE_CLOSE
100 "Incorrect type passed to function RestResponse_Type_Name.");
101 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
106 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<RestResponse_Type>(
111 class IGNITION_MSGS_VISIBLE RestResponse PROTOBUF_FINAL :
112 public ::PROTOBUF_NAMESPACE_ID::Message {
120 *
this = ::std::move(from);
123 inline RestResponse&
operator=(
const RestResponse& from) {
127 inline RestResponse&
operator=(RestResponse&& from) noexcept {
128 if (GetArena() == from.GetArena()) {
129 if (
this != &from) InternalSwap(&from);
136 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
137 return GetDescriptor();
140 return GetMetadataStatic().descriptor;
143 return GetMetadataStatic().reflection;
148 return reinterpret_cast<const RestResponse*
>(
151 static constexpr
int kIndexInFileMessages =
154 friend void swap(RestResponse& a, RestResponse& b) {
157 inline void Swap(RestResponse* other) {
158 if (other ==
this)
return;
159 if (GetArena() == other->GetArena()) {
162 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
166 if (other ==
this)
return;
167 GOOGLE_DCHECK(GetArena() == other->GetArena());
173 inline RestResponse*
New() const final {
174 return CreateMaybeMessage<RestResponse>(
nullptr);
177 RestResponse*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
178 return CreateMaybeMessage<RestResponse>(arena);
180 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
181 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
184 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
185 bool IsInitialized() const final;
187 size_t ByteSizeLong() const final;
188 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
189 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
190 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
191 int GetCachedSize() const final {
return _cached_size_.Get(); }
194 inline void SharedCtor();
195 inline void SharedDtor();
196 void SetCachedSize(
int size)
const final;
197 void InternalSwap(RestResponse* other);
198 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
199 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
200 return "ignition.msgs.RestResponse";
205 static void ArenaDtor(
void*
object);
206 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
211 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
221 static constexpr
Type SUCCESS =
232 static constexpr Type Type_MIN =
234 static constexpr Type Type_MAX =
236 static constexpr
int Type_ARRAYSIZE =
238 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
246 "Incorrect type passed to function Type_Name.");
249 static inline bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
258 kHeaderFieldNumber = 1,
260 kTypeFieldNumber = 3,
281 bool _internal_has_header()
const;
284 const ::ignition::msgs::Header&
header()
const;
289 const ::ignition::msgs::Header& _internal_header()
const;
290 ::ignition::msgs::Header* _internal_mutable_header();
293 ::ignition::msgs::Header* header);
298 ::PROTOBUF_NAMESPACE_ID::uint32
id()
const;
299 void set_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
301 ::PROTOBUF_NAMESPACE_ID::uint32 _internal_id()
const;
302 void _internal_set_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
318 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
319 typedef void InternalArenaConstructable_;
320 typedef void DestructorSkippable_;
321 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr msg_;
322 ::ignition::msgs::Header* header_;
323 ::PROTOBUF_NAMESPACE_ID::uint32 id_;
325 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
326 friend struct ::TableStruct_ignition_2fmsgs_2frest_5fresponse_2eproto;
334 #pragma GCC diagnostic push
335 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
340 inline bool RestResponse::_internal_has_header()
const {
341 return this != internal_default_instance() && header_ !=
nullptr;
343 inline bool RestResponse::has_header()
const {
344 return _internal_has_header();
346 inline const ::ignition::msgs::Header& RestResponse::_internal_header()
const {
347 const ::ignition::msgs::Header* p = header_;
348 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Header&
>(
351 inline const ::ignition::msgs::Header& RestResponse::header()
const {
353 return _internal_header();
355 inline void RestResponse::unsafe_arena_set_allocated_header(
356 ::ignition::msgs::Header* header) {
357 if (GetArena() ==
nullptr) {
358 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
368 inline ::ignition::msgs::Header* RestResponse::release_header() {
370 ::ignition::msgs::Header* temp = header_;
372 if (GetArena() !=
nullptr) {
373 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
377 inline ::ignition::msgs::Header* RestResponse::unsafe_arena_release_header() {
380 ::ignition::msgs::Header* temp = header_;
384 inline ::ignition::msgs::Header* RestResponse::_internal_mutable_header() {
386 if (header_ ==
nullptr) {
387 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
392 inline ::ignition::msgs::Header* RestResponse::mutable_header() {
394 return _internal_mutable_header();
396 inline void RestResponse::set_allocated_header(::ignition::msgs::Header* header) {
397 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
398 if (message_arena ==
nullptr) {
399 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
402 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
403 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header)->GetArena();
404 if (message_arena != submessage_arena) {
405 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
406 message_arena, header, submessage_arena);
417 inline void RestResponse::clear_id() {
420 inline ::PROTOBUF_NAMESPACE_ID::uint32 RestResponse::_internal_id()
const {
423 inline ::PROTOBUF_NAMESPACE_ID::uint32 RestResponse::id()
const {
425 return _internal_id();
427 inline void RestResponse::_internal_set_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
431 inline void RestResponse::set_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
432 _internal_set_id(value);
437 inline void RestResponse::clear_type() {
445 return _internal_type();
452 _internal_set_type(value);
457 inline void RestResponse::clear_msg() {
460 inline const std::string& RestResponse::msg()
const {
462 return _internal_msg();
464 inline void RestResponse::set_msg(
const std::string& value) {
465 _internal_set_msg(value);
470 return _internal_mutable_msg();
472 inline const std::string& RestResponse::_internal_msg()
const {
475 inline void RestResponse::_internal_set_msg(
const std::string& value) {
477 msg_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
479 inline void RestResponse::set_msg(
std::string&& value) {
482 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
485 inline void RestResponse::set_msg(
const char* value) {
486 GOOGLE_DCHECK(value !=
nullptr);
488 msg_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
::std::string(value), GetArena());
491 inline void RestResponse::set_msg(
const char* value,
494 msg_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
::std::string(
495 reinterpret_cast<const char*
>(value), size), GetArena());
498 inline std::string* RestResponse::_internal_mutable_msg() {
500 return msg_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
504 return msg_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
506 inline void RestResponse::set_allocated_msg(
std::string* msg) {
507 if (msg !=
nullptr) {
512 msg_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), msg,
518 #pragma GCC diagnostic pop
530 PROTOBUF_NAMESPACE_OPEN
534 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::RestResponse_Type>() {
538 PROTOBUF_NAMESPACE_CLOSE
545 #include <google/protobuf/port_undef.inc>
RestResponse & operator=(const RestResponse &from)
Definition: rest_response.pb.h:123
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: rest_response.pb.h:142
static const std::string & Type_Name(T enum_t_value)
Definition: rest_response.pb.h:243
RestResponse(RestResponse &&from) noexcept
Definition: rest_response.pb.h:118
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
const std::string & msg() const
::ignition::msgs::Header * release_header()
::ignition::msgs::Header * mutable_header()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: rest_response.pb.h:136
std::string * mutable_msg()
void set_id(::PROTOBUF_NAMESPACE_ID::uint32 value)
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Type_descriptor()
Definition: rest_response.pb.h:239
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
RestResponse(const RestResponse &from)
static const RestResponse * internal_default_instance()
Definition: rest_response.pb.h:147
::ignition::msgs::RestResponse_Type type() const
static bool Type_IsValid(int value)
Definition: rest_response.pb.h:229
RestResponse_Type Type
Definition: rest_response.pb.h:220
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
void MergeFrom(const RestResponse &from)
RestResponse()
Definition: rest_response.pb.h:114
std::string * release_msg()
void UnsafeArenaSwap(RestResponse *other)
Definition: rest_response.pb.h:165
void set_type(::ignition::msgs::RestResponse_Type value)
void Swap(RestResponse *other)
Definition: rest_response.pb.h:157
friend void swap(RestResponse &a, RestResponse &b)
Definition: rest_response.pb.h:154
void set_msg(std::string &&value)
::ignition::msgs::Header * unsafe_arena_release_header()
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
RestResponse & operator=(RestResponse &&from) noexcept
Definition: rest_response.pb.h:127
void set_msg(const std::string &value)
void set_msg(const char *value)
static bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Type *value)
Definition: rest_response.pb.h:249
RestResponse * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: rest_response.pb.h:177
void set_allocated_header(::ignition::msgs::Header *header)
void set_allocated_msg(std::string *msg)
void CopyFrom(const RestResponse &from)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
::PROTOBUF_NAMESPACE_ID::uint32 id() const
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: rest_response.pb.h:139
static const RestResponse & default_instance()
void set_msg(const char *value, size_t size)
RestResponse(::PROTOBUF_NAMESPACE_ID::Arena *arena)
RestResponse * New() const final
Definition: rest_response.pb.h:173
const ::ignition::msgs::Header & header() const
const std::string & RestResponse_Type_Name(T enum_t_value)
Definition: rest_response.pb.h:97
std::unique_ptr< RestResponse > RestResponseUniquePtr
Definition: rest_response.pb.h:521
std::unique_ptr< const RestResponse > ConstRestResponseUniquePtr
Definition: rest_response.pb.h:522
bool RestResponse_Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, RestResponse_Type *value)
Definition: rest_response.pb.h:104
std::shared_ptr< RestResponse > RestResponseSharedPtr
Definition: rest_response.pb.h:523
IGNITION_MSGS_VISIBLE RestResponseDefaultTypeInternal _RestResponse_default_instance_
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * RestResponse_Type_descriptor()
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
RestResponse_Type
Definition: rest_response.pb.h:82
@ RestResponse_Type_RestResponse_Type_INT_MAX_SENTINEL_DO_NOT_USE_
Definition: rest_response.pb.h:88
@ RestResponse_Type_LOGOUT
Definition: rest_response.pb.h:86
@ RestResponse_Type_SUCCESS
Definition: rest_response.pb.h:83
@ RestResponse_Type_LOGIN
Definition: rest_response.pb.h:85
@ RestResponse_Type_RestResponse_Type_INT_MIN_SENTINEL_DO_NOT_USE_
Definition: rest_response.pb.h:87
@ RestResponse_Type_ERR
Definition: rest_response.pb.h:84
std::shared_ptr< const RestResponse > ConstRestResponseSharedPtr
Definition: rest_response.pb.h:524
IGNITION_MSGS_VISIBLE bool RestResponse_Type_IsValid(int value)
constexpr RestResponse_Type RestResponse_Type_Type_MAX
Definition: rest_response.pb.h:92
constexpr int RestResponse_Type_Type_ARRAYSIZE
Definition: rest_response.pb.h:93
Atmosphere_Type
Definition: atmosphere.pb.h:82
constexpr RestResponse_Type RestResponse_Type_Type_MIN
Definition: rest_response.pb.h:91
Definition: actor.pb.h:52
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2frest_5fresponse_2eproto
Definition: rest_response.pb.h:57
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)