4 #ifndef PROTOBUF_ignition_2fmsgs_2frequest_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2frequest_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/unknown_field_set.h> 32 #pragma GCC system_header 35 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251) 38 #include <sys/sysmacros.h> 56 class IGNITION_MSGS_VISIBLE
Request :
public ::google::protobuf::Message {
68 static const ::google::protobuf::Descriptor* descriptor();
69 static const Request& default_instance();
77 Request* New(::google::protobuf::Arena* arena)
const;
78 void CopyFrom(const ::google::protobuf::Message& from);
79 void MergeFrom(const ::google::protobuf::Message& from);
80 void CopyFrom(
const Request& from);
81 void MergeFrom(
const Request& from);
83 bool IsInitialized()
const;
86 bool MergePartialFromCodedStream(
87 ::google::protobuf::io::CodedInputStream* input);
88 void SerializeWithCachedSizes(
89 ::google::protobuf::io::CodedOutputStream* output)
const;
90 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
91 bool deterministic, ::google::protobuf::uint8* output)
const;
93 return InternalSerializeWithCachedSizesToArray(
false, output);
99 void SetCachedSize(
int size)
const;
100 void InternalSwap(
Request* other);
102 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
103 return _internal_metadata_.arena();
105 inline void* MaybeArenaPtr()
const {
106 return _internal_metadata_.raw_arena_ptr();
110 ::google::protobuf::Metadata GetMetadata()
const;
117 bool has_header()
const;
119 static const int kHeaderFieldNumber = 1;
120 const ::ignition::msgs::Header& header()
const;
127 static const int kIdFieldNumber = 2;
128 ::google::protobuf::int32 id()
const;
129 void set_id(::google::protobuf::int32 value);
132 void clear_request();
133 static const int kRequestFieldNumber = 3;
134 const ::std::string& request()
const;
135 void set_request(const ::std::string& value);
136 void set_request(
const char* value);
137 void set_request(
const char* value,
size_t size);
140 void set_allocated_request(::
std::string* request);
144 static const int kDataFieldNumber = 4;
145 const ::std::string& data()
const;
146 void set_data(const ::std::string& value);
147 void set_data(
const char* value);
148 void set_data(
const char* value,
size_t size);
154 void clear_dbl_data();
155 static const int kDblDataFieldNumber = 5;
156 double dbl_data()
const;
157 void set_dbl_data(
double value);
162 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
163 bool _is_default_instance_;
165 ::google::protobuf::internal::ArenaStringPtr request_;
166 ::google::protobuf::internal::ArenaStringPtr data_;
168 ::google::protobuf::int32 id_;
169 mutable int _cached_size_;
174 void InitAsDefaultInstance();
175 static Request* default_instance_;
182 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 187 return !_is_default_instance_ && header_ != NULL;
190 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
195 return header_ != NULL ? *header_ : *default_instance_->header_;
199 if (header_ == NULL) {
200 header_ = new ::ignition::msgs::Header;
239 request_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
243 return request_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
247 request_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
252 request_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
257 request_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
258 ::
std::string(reinterpret_cast<const char*>(value), size));
264 return request_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
269 return request_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
272 if (request != NULL) {
277 request_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), request);
283 data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
287 return data_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
291 data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
296 data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
301 data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
302 ::
std::string(reinterpret_cast<const char*>(value), size));
308 return data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
313 return data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
321 data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data);
339 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 355 #endif // PROTOBUF_ignition_2fmsgs_2frequest_2eproto__INCLUDED double dbl_data() const
Definition: request.pb.h:329
void protobuf_ShutdownFile_ignition_2fmsgs_2frequest_2eproto()
::std::string * mutable_request()
Definition: request.pb.h:261
std::shared_ptr< const Request > ConstRequestSharedPtr
Definition: request.pb.h:344
::ignition::msgs::Header * mutable_header()
Definition: request.pb.h:197
void set_allocated_data(::std::string *data)
Definition: request.pb.h:315
void set_dbl_data(double value)
Definition: request.pb.h:333
int GetCachedSize() const
Definition: request.pb.h:95
::ignition::msgs::Header * release_header()
Definition: request.pb.h:205
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2frequest_2eproto()
std::unique_ptr< Request > RequestUniquePtr
Definition: request.pb.h:341
void clear_data()
Definition: request.pb.h:282
Definition: request.pb.h:56
void set_request(const ::std::string &value)
Definition: request.pb.h:245
bool has_header() const
Definition: request.pb.h:186
void clear_request()
Definition: request.pb.h:238
void set_allocated_request(::std::string *request)
Definition: request.pb.h:271
const ::std::string & request() const
Definition: request.pb.h:241
void set_id(::google::protobuf::int32 value)
Definition: request.pb.h:231
void clear_header()
Definition: request.pb.h:189
const ::ignition::msgs::Header & header() const
Definition: request.pb.h:193
std::shared_ptr< Request > RequestSharedPtr
Definition: request.pb.h:343
::google::protobuf::int32 id() const
Definition: request.pb.h:227
void clear_id()
Definition: request.pb.h:224
void clear_dbl_data()
Definition: request.pb.h:326
::std::string * release_data()
Definition: request.pb.h:310
std::unique_ptr< const Request > ConstRequestUniquePtr
Definition: request.pb.h:342
Request * New() const
Definition: request.pb.h:75
void set_allocated_header(::ignition::msgs::Header *header)
Definition: request.pb.h:212
Request & operator=(const Request &from)
Definition: request.pb.h:63
void protobuf_AssignDesc_ignition_2fmsgs_2frequest_2eproto()
const ::std::string & data() const
Definition: request.pb.h:285
::std::string * mutable_data()
Definition: request.pb.h:305
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: request.pb.h:92
::std::string * release_request()
Definition: request.pb.h:266
void set_data(const ::std::string &value)
Definition: request.pb.h:289