4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2frequest_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2frequest_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_2frequest_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 RequestDefaultTypeInternal;
75 PROTOBUF_NAMESPACE_OPEN
76 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Request* Arena::CreateMaybeMessage<::ignition::msgs::Request>(Arena*);
77 PROTOBUF_NAMESPACE_CLOSE
83 class IGNITION_MSGS_VISIBLE
Request final :
84 public ::PROTOBUF_NAMESPACE_ID::Message {
88 explicit constexpr
Request(::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 Request*
>(
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 Request*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
158 return CreateMaybeMessage<Request>(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;
180 void InternalSwap(
Request* other);
183 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
184 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
185 return "ignition.msgs.Request";
188 explicit Request(::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 kRequestFieldNumber = 3,
206 kDataFieldNumber = 4,
207 kHeaderFieldNumber = 1,
208 kDblDataFieldNumber = 5,
212 void clear_request();
214 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
221 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_request(
const std::string& value);
228 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
235 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_data(
const std::string& value);
240 bool has_header()
const;
242 bool _internal_has_header()
const;
245 const ::ignition::msgs::Header& header()
const;
246 PROTOBUF_NODISCARD ::ignition::msgs::Header* release_header();
250 const ::ignition::msgs::Header& _internal_header()
const;
253 void unsafe_arena_set_allocated_header(
258 void clear_dbl_data();
259 double dbl_data()
const;
260 void set_dbl_data(
double value);
262 double _internal_dbl_data()
const;
263 void _internal_set_dbl_data(
double value);
269 void set_id(int32_t value);
271 int32_t _internal_id()
const;
272 void _internal_set_id(int32_t value);
279 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
280 typedef void InternalArenaConstructable_;
281 typedef void DestructorSkippable_;
282 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr request_;
283 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_;
287 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
288 friend struct ::TableStruct_ignition_2fmsgs_2frequest_2eproto;
296 #pragma GCC diagnostic push
297 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
302 inline bool Request::_internal_has_header()
const {
303 return this != internal_default_instance() && header_ !=
nullptr;
306 return _internal_has_header();
308 inline const ::ignition::msgs::Header& Request::_internal_header()
const {
309 const ::ignition::msgs::Header* p = header_;
315 return _internal_header();
319 if (GetArenaForAllocation() ==
nullptr) {
320 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
334 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
335 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
336 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
337 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
339 if (GetArenaForAllocation() !=
nullptr) {
340 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
352 inline ::ignition::msgs::Header* Request::_internal_mutable_header() {
354 if (header_ ==
nullptr) {
355 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaForAllocation());
366 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
367 if (message_arena ==
nullptr) {
368 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
371 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
372 ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
373 ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
374 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header));
375 if (message_arena != submessage_arena) {
376 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
377 message_arena, header, submessage_arena);
391 inline int32_t Request::_internal_id()
const {
396 return _internal_id();
398 inline void Request::_internal_set_id(int32_t value) {
403 _internal_set_id(value);
409 request_.ClearToEmpty();
413 return _internal_request();
415 template <
typename ArgT0,
typename... ArgT>
416 inline PROTOBUF_ALWAYS_INLINE
419 request_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
427 inline const std::string& Request::_internal_request()
const {
428 return request_.Get();
430 inline void Request::_internal_set_request(
const std::string& value) {
432 request_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
434 inline std::string* Request::_internal_mutable_request() {
436 return request_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
440 return request_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
443 if (request !=
nullptr) {
448 request_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), request,
449 GetArenaForAllocation());
450 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
451 if (request_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
452 request_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
"", GetArenaForAllocation());
460 data_.ClearToEmpty();
464 return _internal_data();
466 template <
typename ArgT0,
typename... ArgT>
467 inline PROTOBUF_ALWAYS_INLINE
470 data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
478 inline const std::string& Request::_internal_data()
const {
481 inline void Request::_internal_set_data(
const std::string& value) {
483 data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
485 inline std::string* Request::_internal_mutable_data() {
487 return data_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
491 return data_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
494 if (data !=
nullptr) {
499 data_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), data,
500 GetArenaForAllocation());
501 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
502 if (data_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
503 data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
"", GetArenaForAllocation());
513 inline double Request::_internal_dbl_data()
const {
518 return _internal_dbl_data();
520 inline void Request::_internal_set_dbl_data(
double value) {
525 _internal_set_dbl_data(value);
530 #pragma GCC diagnostic pop
547 #include <google/protobuf/port_undef.inc>
Definition: request.pb.h:84
void clear_data()
Definition: request.pb.h:459
void set_allocated_data(std::string *data)
Definition: request.pb.h:493
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: request.pb.h:120
Request(const Request &from)
void clear_request()
Definition: request.pb.h:408
bool has_header() const
Definition: request.pb.h:305
::ignition::msgs::Header * mutable_header()
Definition: request.pb.h:360
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void set_allocated_request(std::string *request)
Definition: request.pb.h:442
Request & operator=(Request &&from) noexcept
Definition: request.pb.h:100
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: request.pb.h:114
static const Request & default_instance()
Definition: request.pb.h:123
void Swap(Request *other)
Definition: request.pb.h:136
void clear_dbl_data()
Definition: request.pb.h:510
PROTOBUF_NODISCARD std::string * release_data()
Definition: request.pb.h:489
const std::string & data() const
Definition: request.pb.h:462
void clear_id()
Definition: request.pb.h:388
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
Definition: request.pb.h:317
Request(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
void set_id(int32_t value)
Definition: request.pb.h:402
void MergeFrom(const Request &from)
static const Request * internal_default_instance()
Definition: request.pb.h:126
std::string * mutable_request()
Definition: request.pb.h:422
Request * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition: request.pb.h:157
Request(Request &&from) noexcept
Definition: request.pb.h:91
void set_allocated_header(::ignition::msgs::Header *header)
Definition: request.pb.h:365
int32_t id() const
Definition: request.pb.h:394
double dbl_data() const
Definition: request.pb.h:516
PROTOBUF_NODISCARD ::ignition::msgs::Header * release_header()
Definition: request.pb.h:330
std::string * mutable_data()
Definition: request.pb.h:473
void UnsafeArenaSwap(Request *other)
Definition: request.pb.h:149
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
Request & operator=(const Request &from)
Definition: request.pb.h:96
void set_data(ArgT0 &&arg0, ArgT... args)
void set_dbl_data(double value)
Definition: request.pb.h:524
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: request.pb.h:117
void CopyFrom(const Request &from)
const ::ignition::msgs::Header & header() const
Definition: request.pb.h:313
constexpr Request(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
friend void swap(Request &a, Request &b)
Definition: request.pb.h:133
Request()
Definition: request.pb.h:86
static const ClassData _class_data_
Definition: request.pb.h:195
::ignition::msgs::Header * unsafe_arena_release_header()
Definition: request.pb.h:345
PROTOBUF_NODISCARD std::string * release_request()
Definition: request.pb.h:438
const std::string & request() const
Definition: request.pb.h:411
void set_request(ArgT0 &&arg0, ArgT... args)
std::shared_ptr< const Request > ConstRequestSharedPtr
Definition: request.pb.h:536
std::unique_ptr< Request > RequestUniquePtr
Definition: request.pb.h:533
std::shared_ptr< Request > RequestSharedPtr
Definition: request.pb.h:535
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
IGNITION_MSGS_VISIBLE RequestDefaultTypeInternal _Request_default_instance_
std::unique_ptr< const Request > ConstRequestUniquePtr
Definition: request.pb.h:534
Definition: actor.pb.h:52
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2frequest_2eproto
Definition: request.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)