Go to the documentation of this file.
4 #ifndef PROTOBUF_INCLUDED_ignition_2fmsgs_2frest_5fresponse_2eproto
5 #define PROTOBUF_INCLUDED_ignition_2fmsgs_2frest_5fresponse_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/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
36 #pragma GCC system_header
39 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
42 #include <sys/sysmacros.h>
47 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2frest_5fresponse_2eproto IGNITION_MSGS_VISIBLE
52 static const ::google::protobuf::internal::ParseTableField entries[];
53 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
54 static const ::google::protobuf::internal::ParseTable schema[1];
55 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
56 static const ::google::protobuf::internal::SerializationTable serialization_table[];
57 static const ::google::protobuf::uint32 offsets[];
64 class RestResponseDefaultTypeInternal;
70 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::RestResponse* Arena::CreateMaybeMessage<::ignition::msgs::RestResponse>(Arena*);
91 return ::google::protobuf::internal::NameOfEnum(
96 return ::google::protobuf::internal::ParseNamedEnum<RestResponse_Type>(
101 class IGNITION_MSGS_VISIBLE
RestResponse :
public ::google::protobuf::Message {
115 *
this = ::std::move(from);
118 inline RestResponse& operator=(RestResponse&& from) noexcept {
119 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
120 if (
this != &from) InternalSwap(&from);
127 static const ::google::protobuf::Descriptor* descriptor();
128 static const RestResponse& default_instance();
130 static void InitAsDefaultInstance();
135 static constexpr
int kIndexInFileMessages =
146 return CreateMaybeMessage<RestResponse>(NULL);
150 return CreateMaybeMessage<RestResponse>(arena);
152 void CopyFrom(const ::google::protobuf::Message& from)
final;
153 void MergeFrom(const ::google::protobuf::Message& from)
final;
157 bool IsInitialized() const final;
159 size_t ByteSizeLong() const final;
160 bool MergePartialFromCodedStream(
161 ::
google::protobuf::io::CodedInputStream* input) final;
162 void SerializeWithCachedSizes(
163 ::
google::protobuf::io::CodedOutputStream* output) const final;
164 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
165 bool deterministic, ::
google::protobuf::uint8* target) const final;
166 int GetCachedSize() const final {
return _cached_size_.Get(); }
171 void SetCachedSize(
int size)
const final;
174 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
177 inline void* MaybeArenaPtr()
const {
182 ::google::protobuf::Metadata GetMetadata() const final;
195 static inline
bool Type_IsValid(
int value) {
202 static const int Type_ARRAYSIZE =
204 static inline const ::google::protobuf::EnumDescriptor*
220 static const int kMsgFieldNumber = 4;
221 const ::std::string& msg()
const;
222 void set_msg(const ::std::string& value);
226 void set_msg(
const char* value);
227 void set_msg(
const char* value,
size_t size);
233 bool has_header()
const;
235 static const int kHeaderFieldNumber = 1;
237 const ::ignition::msgs::Header& _internal_header()
const;
239 const ::ignition::msgs::Header& header()
const;
246 static const int kIdFieldNumber = 2;
247 ::google::protobuf::uint32 id()
const;
248 void set_id(::google::protobuf::uint32 value);
252 static const int kTypeFieldNumber = 3;
259 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
260 ::google::protobuf::internal::ArenaStringPtr msg_;
262 ::google::protobuf::uint32 id_;
264 mutable ::google::protobuf::internal::CachedSize _cached_size_;
265 friend struct ::protobuf_ignition_2fmsgs_2frest_5fresponse_2eproto::TableStruct;
273 #pragma GCC diagnostic push
274 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
282 inline const ::ignition::msgs::Header& RestResponse::_internal_header()
const {
286 const ::ignition::msgs::Header* p = header_;
300 if (header_ == NULL) {
301 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
308 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
309 if (message_arena == NULL) {
310 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
313 ::google::protobuf::Arena* submessage_arena = NULL;
314 if (message_arena != submessage_arena) {
315 header = ::google::protobuf::internal::GetOwnedMessage(
316 message_arena,
header, submessage_arena);
356 msg_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
360 return msg_.GetNoArena();
364 msg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
371 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
376 GOOGLE_DCHECK(value != NULL);
378 msg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
383 msg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
384 ::
std::string(
reinterpret_cast<const char*
>(value), size));
390 return msg_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
395 return msg_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
403 msg_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
msg);
408 #pragma GCC diagnostic pop
425 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::RestResponse_Type>() {
437 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2frest_5fresponse_2eproto
Definition: rest_response.pb.h:101
void set_msg(const ::std::string &value)
Definition: rest_response.pb.h:362
Definition: rest_response.pb.h:51
const int RestResponse_Type_Type_ARRAYSIZE
Definition: rest_response.pb.h:87
@ RestResponse_Type_ERR
Definition: rest_response.pb.h:78
@ RestResponse_Type_RestResponse_Type_INT_MAX_SENTINEL_DO_NOT_USE_
Definition: rest_response.pb.h:82
::std::string * release_msg()
Definition: rest_response.pb.h:392
Definition: rest_response.pb.h:49
RestResponse * New() const final
Definition: rest_response.pb.h:145
void set_allocated_header(::ignition::msgs::Header *header)
Definition: rest_response.pb.h:307
IGNITION_MSGS_VISIBLE RestResponseDefaultTypeInternal _RestResponse_default_instance_
@ RestResponse_Type_SUCCESS
Definition: rest_response.pb.h:77
bool has_header() const
Definition: rest_response.pb.h:279
IGNITION_MSGS_VISIBLE bool RestResponse_Type_IsValid(int value)
RestResponse * New(::google::protobuf::Arena *arena) const final
Definition: rest_response.pb.h:149
const IGNITION_MSGS_VISIBLE ::google::protobuf::EnumDescriptor * RestResponse_Type_descriptor()
void set_type(::ignition::msgs::RestResponse_Type value)
Definition: rest_response.pb.h:348
static bool Type_Parse(const ::std::string &name, Type *value)
Definition: rest_response.pb.h:211
static const ::std::string & Type_Name(Type value)
Definition: rest_response.pb.h:208
bool RestResponse_Type_Parse(const ::std::string &name, RestResponse_Type *value)
Definition: rest_response.pb.h:94
RestResponse & operator=(const RestResponse &from)
Definition: rest_response.pb.h:108
std::unique_ptr< const RestResponse > ConstRestResponseUniquePtr
Definition: rest_response.pb.h:412
const RestResponse_Type RestResponse_Type_Type_MAX
Definition: rest_response.pb.h:86
std::shared_ptr< const RestResponse > ConstRestResponseSharedPtr
Definition: rest_response.pb.h:414
void clear_type()
Definition: rest_response.pb.h:341
void IGNITION_MSGS_VISIBLE AddDescriptors()
RestResponse_Type
Definition: rest_response.pb.h:76
::ignition::msgs::Header * mutable_header()
Definition: rest_response.pb.h:298
::ignition::msgs::Header * release_header()
Definition: rest_response.pb.h:291
::google::protobuf::uint32 id() const
Definition: rest_response.pb.h:330
void clear_msg()
Definition: rest_response.pb.h:355
const RestResponse_Type RestResponse_Type_Type_MIN
Definition: rest_response.pb.h:85
const ::std::string & RestResponse_Type_Name(RestResponse_Type value)
Definition: rest_response.pb.h:90
void set_id(::google::protobuf::uint32 value)
Definition: rest_response.pb.h:334
void set_allocated_msg(::std::string *msg)
Definition: rest_response.pb.h:397
@ RestResponse_Type_LOGOUT
Definition: rest_response.pb.h:80
std::unique_ptr< RestResponse > RestResponseUniquePtr
Definition: rest_response.pb.h:411
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
@ RestResponse_Type_RestResponse_Type_INT_MIN_SENTINEL_DO_NOT_USE_
Definition: rest_response.pb.h:81
const ::ignition::msgs::Header & header() const
Definition: rest_response.pb.h:285
const ::std::string & msg() const
Definition: rest_response.pb.h:358
friend void swap(RestResponse &a, RestResponse &b)
Definition: rest_response.pb.h:139
::std::string * mutable_msg()
Definition: rest_response.pb.h:387
void clear_id()
Definition: rest_response.pb.h:327
@ RestResponse_Type_LOGIN
Definition: rest_response.pb.h:79
std::shared_ptr< RestResponse > RestResponseSharedPtr
Definition: rest_response.pb.h:413
static const ::google::protobuf::EnumDescriptor * Type_descriptor()
Definition: rest_response.pb.h:205
::ignition::msgs::RestResponse_Type type() const
Definition: rest_response.pb.h:344
Definition: actor.pb.h:78
void Swap(RestResponse *other)
static const RestResponse * internal_default_instance()
Definition: rest_response.pb.h:131