4 #ifndef PROTOBUF_ignition_2fmsgs_2frest_5fresponse_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2frest_5fresponse_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 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 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. 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/generated_enum_reflection.h> 30 #include <google/protobuf/unknown_field_set.h> 33 #pragma GCC system_header 36 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251) 39 #include <sys/sysmacros.h> 70 return ::google::protobuf::internal::NameOfEnum(
75 return ::google::protobuf::internal::ParseNamedEnum<RestResponse_Type>(
80 class IGNITION_MSGS_VISIBLE
RestResponse :
public ::google::protobuf::Message {
92 static const ::google::protobuf::Descriptor* descriptor();
101 RestResponse* New(::google::protobuf::Arena* arena)
const;
102 void CopyFrom(const ::google::protobuf::Message& from);
103 void MergeFrom(const ::google::protobuf::Message& from);
107 bool IsInitialized()
const;
109 int ByteSize()
const;
110 bool MergePartialFromCodedStream(
111 ::google::protobuf::io::CodedInputStream* input);
112 void SerializeWithCachedSizes(
113 ::google::protobuf::io::CodedOutputStream* output)
const;
114 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
115 bool deterministic, ::google::protobuf::uint8* output)
const;
117 return InternalSerializeWithCachedSizesToArray(
false, output);
123 void SetCachedSize(
int size)
const;
126 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
127 return _internal_metadata_.arena();
129 inline void* MaybeArenaPtr()
const {
130 return _internal_metadata_.raw_arena_ptr();
134 ::google::protobuf::Metadata GetMetadata()
const;
139 static const Type SUCCESS =
141 static const Type ERR =
143 static const Type LOGIN =
145 static const Type LOGOUT =
150 static const Type Type_MIN =
152 static const Type Type_MAX =
154 static const int Type_ARRAYSIZE =
156 static inline const ::google::protobuf::EnumDescriptor*
160 static inline const ::std::string&
Type_Name(Type value) {
171 bool has_header()
const;
173 static const int kHeaderFieldNumber = 1;
174 const ::ignition::msgs::Header& header()
const;
181 static const int kIdFieldNumber = 2;
182 ::google::protobuf::uint32 id()
const;
183 void set_id(::google::protobuf::uint32 value);
187 static const int kTypeFieldNumber = 3;
193 static const int kMsgFieldNumber = 4;
194 const ::std::string& msg()
const;
195 void set_msg(const ::std::string& value);
196 void set_msg(
const char* value);
197 void set_msg(
const char* value,
size_t size);
205 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
206 bool _is_default_instance_;
208 ::google::protobuf::uint32 id_;
210 ::google::protobuf::internal::ArenaStringPtr msg_;
211 mutable int _cached_size_;
216 void InitAsDefaultInstance();
224 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 229 return !_is_default_instance_ && header_ != NULL;
232 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
237 return header_ != NULL ? *header_ : *default_instance_->header_;
241 if (header_ == NULL) {
242 header_ = new ::ignition::msgs::Header;
295 msg_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
299 return msg_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
303 msg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
308 msg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
313 msg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
314 ::
std::string(reinterpret_cast<const char*>(value), size));
320 return msg_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
325 return msg_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
333 msg_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), msg);
337 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 354 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::RestResponse_Type>() {
367 #endif // PROTOBUF_ignition_2fmsgs_2frest_5fresponse_2eproto__INCLUDED void set_allocated_msg(::std::string *msg)
Definition: rest_response.pb.h:327
int GetCachedSize() const
Definition: rest_response.pb.h:119
Definition: rest_response.pb.h:56
void clear_id()
Definition: rest_response.pb.h:266
void clear_type()
Definition: rest_response.pb.h:280
static bool Type_IsValid(int value)
Definition: rest_response.pb.h:147
Definition: rest_response.pb.h:60
void set_msg(const ::std::string &value)
Definition: rest_response.pb.h:301
::std::string * release_msg()
Definition: rest_response.pb.h:322
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: rest_response.pb.h:116
std::shared_ptr< RestResponse > RestResponseSharedPtr
Definition: rest_response.pb.h:341
RestResponse & operator=(const RestResponse &from)
Definition: rest_response.pb.h:87
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2frest_5fresponse_2eproto()
void set_type(::ignition::msgs::RestResponse_Type value)
Definition: rest_response.pb.h:287
const ::std::string & msg() const
Definition: rest_response.pb.h:297
std::shared_ptr< const RestResponse > ConstRestResponseSharedPtr
Definition: rest_response.pb.h:342
static const ::std::string & Type_Name(Type value)
Definition: rest_response.pb.h:160
::ignition::msgs::Header * mutable_header()
Definition: rest_response.pb.h:239
const RestResponse_Type RestResponse_Type_Type_MAX
Definition: rest_response.pb.h:65
void set_allocated_header(::ignition::msgs::Header *header)
Definition: rest_response.pb.h:254
void clear_header()
Definition: rest_response.pb.h:231
void clear_msg()
Definition: rest_response.pb.h:294
static bool Type_Parse(const ::std::string &name, Type *value)
Definition: rest_response.pb.h:163
Definition: rest_response.pb.h:59
::ignition::msgs::Header * release_header()
Definition: rest_response.pb.h:247
const ::ignition::msgs::Header & header() const
Definition: rest_response.pb.h:235
RestResponse_Type Type
Definition: rest_response.pb.h:138
const int RestResponse_Type_Type_ARRAYSIZE
Definition: rest_response.pb.h:66
Definition: rest_response.pb.h:80
::google::protobuf::uint32 id() const
Definition: rest_response.pb.h:269
::ignition::msgs::RestResponse_Type type() const
Definition: rest_response.pb.h:283
void protobuf_AssignDesc_ignition_2fmsgs_2frest_5fresponse_2eproto()
void protobuf_ShutdownFile_ignition_2fmsgs_2frest_5fresponse_2eproto()
Definition: rest_response.pb.h:58
bool RestResponse_Type_Parse(const ::std::string &name, RestResponse_Type *value)
Definition: rest_response.pb.h:73
void set_id(::google::protobuf::uint32 value)
Definition: rest_response.pb.h:273
std::unique_ptr< const RestResponse > ConstRestResponseUniquePtr
Definition: rest_response.pb.h:340
IGNITION_MSGS_VISIBLEconst ::google::protobuf::EnumDescriptor * RestResponse_Type_descriptor()
std::unique_ptr< RestResponse > RestResponseUniquePtr
Definition: rest_response.pb.h:339
const ::std::string & RestResponse_Type_Name(RestResponse_Type value)
Definition: rest_response.pb.h:69
Definition: rest_response.pb.h:57
Definition: rest_response.pb.h:61
const RestResponse_Type RestResponse_Type_Type_MIN
Definition: rest_response.pb.h:64
::std::string * mutable_msg()
Definition: rest_response.pb.h:317
IGNITION_MSGS_VISIBLE bool RestResponse_Type_IsValid(int value)
RestResponse_Type
Definition: rest_response.pb.h:55
RestResponse * New() const
Definition: rest_response.pb.h:99
bool has_header() const
Definition: rest_response.pb.h:228
static const ::google::protobuf::EnumDescriptor * Type_descriptor()
Definition: rest_response.pb.h:157