4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2frest_5fpost_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2frest_5fpost_2eproto
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3019000
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 3019000 < 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/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 #include <google/protobuf/port_def.inc>
48 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2frest_5fpost_2eproto IGNITION_MSGS_VISIBLE
49 PROTOBUF_NAMESPACE_OPEN
53 PROTOBUF_NAMESPACE_CLOSE
57 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
59 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
61 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
63 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
64 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
65 static const uint32_t offsets[];
71 struct RestPostDefaultTypeInternal;
75 PROTOBUF_NAMESPACE_OPEN
76 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::RestPost* Arena::CreateMaybeMessage<::ignition::msgs::RestPost>(Arena*);
77 PROTOBUF_NAMESPACE_CLOSE
84 public ::PROTOBUF_NAMESPACE_ID::Message {
88 explicit constexpr
RestPost(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
93 *
this = ::std::move(from);
101 if (
this == &from)
return *
this;
102 if (GetOwningArena() == from.GetOwningArena()
103 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
104 && GetOwningArena() !=
nullptr
114 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
115 return GetDescriptor();
118 return default_instance().GetMetadata().descriptor;
121 return default_instance().GetMetadata().reflection;
124 return *internal_default_instance();
127 return reinterpret_cast<const RestPost*
>(
130 static constexpr
int kIndexInFileMessages =
137 if (other ==
this)
return;
138 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
139 if (GetOwningArena() !=
nullptr &&
140 GetOwningArena() == other->GetOwningArena()) {
142 if (GetOwningArena() == other->GetOwningArena()) {
146 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
150 if (other ==
this)
return;
151 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
157 RestPost*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
158 return CreateMaybeMessage<RestPost>(arena);
160 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
162 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
165 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
167 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
168 bool IsInitialized() const final;
170 size_t ByteSizeLong() const final;
171 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
172 uint8_t* _InternalSerialize(
173 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
174 int GetCachedSize() const final {
return _cached_size_.Get(); }
179 void SetCachedSize(
int size)
const final;
183 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
184 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
185 return "ignition.msgs.RestPost";
188 explicit RestPost(::PROTOBUF_NAMESPACE_ID::Arena* arena,
189 bool is_message_owned =
false);
191 static void ArenaDtor(
void*
object);
192 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
196 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
198 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
205 kRouteFieldNumber = 3,
206 kJsonFieldNumber = 4,
207 kHeaderFieldNumber = 1,
213 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
220 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_route(
const std::string& value);
227 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
234 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_json(
const std::string& value);
239 bool has_header()
const;
241 bool _internal_has_header()
const;
244 const ::ignition::msgs::Header& header()
const;
245 PROTOBUF_NODISCARD ::ignition::msgs::Header* release_header();
249 const ::ignition::msgs::Header& _internal_header()
const;
252 void unsafe_arena_set_allocated_header(
259 void set_id(uint32_t value);
261 uint32_t _internal_id()
const;
262 void _internal_set_id(uint32_t value);
269 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
270 typedef void InternalArenaConstructable_;
271 typedef void DestructorSkippable_;
272 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr route_;
273 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr json_;
276 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
277 friend struct ::TableStruct_ignition_2fmsgs_2frest_5fpost_2eproto;
285 #pragma GCC diagnostic push
286 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
291 inline bool RestPost::_internal_has_header()
const {
292 return this != internal_default_instance() && header_ !=
nullptr;
295 return _internal_has_header();
297 inline const ::ignition::msgs::Header& RestPost::_internal_header()
const {
298 const ::ignition::msgs::Header* p = header_;
304 return _internal_header();
308 if (GetArenaForAllocation() ==
nullptr) {
309 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
323 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
324 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
325 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
326 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
328 if (GetArenaForAllocation() !=
nullptr) {
329 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
341 inline ::ignition::msgs::Header* RestPost::_internal_mutable_header() {
343 if (header_ ==
nullptr) {
344 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaForAllocation());
355 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
356 if (message_arena ==
nullptr) {
357 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
360 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
361 ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
362 ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
363 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header));
364 if (message_arena != submessage_arena) {
365 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
366 message_arena, header, submessage_arena);
380 inline uint32_t RestPost::_internal_id()
const {
385 return _internal_id();
387 inline void RestPost::_internal_set_id(uint32_t value) {
392 _internal_set_id(value);
398 route_.ClearToEmpty();
402 return _internal_route();
404 template <
typename ArgT0,
typename... ArgT>
405 inline PROTOBUF_ALWAYS_INLINE
408 route_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
416 inline const std::string& RestPost::_internal_route()
const {
419 inline void RestPost::_internal_set_route(
const std::string& value) {
421 route_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
423 inline std::string* RestPost::_internal_mutable_route() {
425 return route_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
429 return route_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
432 if (route !=
nullptr) {
437 route_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), route,
438 GetArenaForAllocation());
439 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
440 if (route_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
441 route_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
"", GetArenaForAllocation());
449 json_.ClearToEmpty();
453 return _internal_json();
455 template <
typename ArgT0,
typename... ArgT>
456 inline PROTOBUF_ALWAYS_INLINE
459 json_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
467 inline const std::string& RestPost::_internal_json()
const {
470 inline void RestPost::_internal_set_json(
const std::string& value) {
472 json_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
474 inline std::string* RestPost::_internal_mutable_json() {
476 return json_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
480 return json_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
483 if (json !=
nullptr) {
488 json_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), json,
489 GetArenaForAllocation());
490 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
491 if (json_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
492 json_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
"", GetArenaForAllocation());
499 #pragma GCC diagnostic pop
516 #include <google/protobuf/port_undef.inc>
Definition: rest_post.pb.h:84
static const RestPost * internal_default_instance()
Definition: rest_post.pb.h:126
RestPost()
Definition: rest_post.pb.h:86
const std::string & json() const
Definition: rest_post.pb.h:451
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: rest_post.pb.h:120
RestPost & operator=(const RestPost &from)
Definition: rest_post.pb.h:96
void clear_route()
Definition: rest_post.pb.h:397
void CopyFrom(const RestPost &from)
bool has_header() const
Definition: rest_post.pb.h:294
constexpr RestPost(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
::ignition::msgs::Header * mutable_header()
Definition: rest_post.pb.h:349
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void UnsafeArenaSwap(RestPost *other)
Definition: rest_post.pb.h:149
void set_allocated_route(std::string *route)
Definition: rest_post.pb.h:431
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: rest_post.pb.h:114
void set_allocated_json(std::string *json)
Definition: rest_post.pb.h:482
RestPost(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
const std::string & route() const
Definition: rest_post.pb.h:400
void clear_id()
Definition: rest_post.pb.h:377
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
Definition: rest_post.pb.h:306
PROTOBUF_NODISCARD std::string * release_route()
Definition: rest_post.pb.h:427
static const RestPost & default_instance()
Definition: rest_post.pb.h:123
void set_route(ArgT0 &&arg0, ArgT... args)
RestPost & operator=(RestPost &&from) noexcept
Definition: rest_post.pb.h:100
void set_allocated_header(::ignition::msgs::Header *header)
Definition: rest_post.pb.h:354
std::string * mutable_route()
Definition: rest_post.pb.h:411
void set_json(ArgT0 &&arg0, ArgT... args)
RestPost * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition: rest_post.pb.h:157
PROTOBUF_NODISCARD ::ignition::msgs::Header * release_header()
Definition: rest_post.pb.h:319
void MergeFrom(const RestPost &from)
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
friend void swap(RestPost &a, RestPost &b)
Definition: rest_post.pb.h:133
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: rest_post.pb.h:117
const ::ignition::msgs::Header & header() const
Definition: rest_post.pb.h:302
void clear_json()
Definition: rest_post.pb.h:448
static const ClassData _class_data_
Definition: rest_post.pb.h:195
RestPost(const RestPost &from)
::ignition::msgs::Header * unsafe_arena_release_header()
Definition: rest_post.pb.h:334
void set_id(uint32_t value)
Definition: rest_post.pb.h:391
uint32_t id() const
Definition: rest_post.pb.h:383
PROTOBUF_NODISCARD std::string * release_json()
Definition: rest_post.pb.h:478
void Swap(RestPost *other)
Definition: rest_post.pb.h:136
std::string * mutable_json()
Definition: rest_post.pb.h:462
RestPost(RestPost &&from) noexcept
Definition: rest_post.pb.h:91
std::shared_ptr< RestPost > RestPostSharedPtr
Definition: rest_post.pb.h:504
std::unique_ptr< RestPost > RestPostUniquePtr
Definition: rest_post.pb.h:502
std::unique_ptr< const RestPost > ConstRestPostUniquePtr
Definition: rest_post.pb.h:503
IGNITION_MSGS_VISIBLE RestPostDefaultTypeInternal _RestPost_default_instance_
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::shared_ptr< const RestPost > ConstRestPostSharedPtr
Definition: rest_post.pb.h:505
Definition: actor.pb.h:52
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2frest_5fpost_2eproto
Definition: rest_post.pb.h:56
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)