Ignition Msgs

API Reference

8.2.0
request.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/request.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2frequest_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2frequest_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
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
14 #error your headers.
15 #endif
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.
20 #endif
21 
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>
31 #ifndef _MSC_VER
32 #pragma GCC system_header
33 #else
34 #pragma warning(push)
35 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
36 #endif
37 #ifdef __linux__
38 #include <sys/sysmacros.h>
39 #endif
40 #include <memory>
41 #include <ignition/msgs/Export.hh>
42 // @@protoc_insertion_point(includes)
43 
44 namespace ignition {
45 namespace msgs {
46 
47 // Internal implementation detail -- do not call these.
48 void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2frequest_2eproto();
51 
52 class Request;
53 
54 // ===================================================================
55 
56 class IGNITION_MSGS_VISIBLE Request : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Request) */ {
57  public:
58  Request();
59  virtual ~Request();
60 
61  Request(const Request& from);
62 
63  inline Request& operator=(const Request& from) {
64  CopyFrom(from);
65  return *this;
66  }
67 
68  static const ::google::protobuf::Descriptor* descriptor();
69  static const Request& default_instance();
70 
71  void Swap(Request* other);
72 
73  // implements Message ----------------------------------------------
74 
75  inline Request* New() const { return New(NULL); }
76 
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);
82  void Clear();
83  bool IsInitialized() const;
84 
85  int ByteSize() 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;
92  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
93  return InternalSerializeWithCachedSizesToArray(false, output);
94  }
95  int GetCachedSize() const { return _cached_size_; }
96  private:
97  void SharedCtor();
98  void SharedDtor();
99  void SetCachedSize(int size) const;
100  void InternalSwap(Request* other);
101  private:
102  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
103  return _internal_metadata_.arena();
104  }
105  inline void* MaybeArenaPtr() const {
106  return _internal_metadata_.raw_arena_ptr();
107  }
108  public:
109 
110  ::google::protobuf::Metadata GetMetadata() const;
111 
112  // nested types ----------------------------------------------------
113 
114  // accessors -------------------------------------------------------
115 
116  // optional .ignition.msgs.Header header = 1;
117  bool has_header() const;
118  void clear_header();
119  static const int kHeaderFieldNumber = 1;
120  const ::ignition::msgs::Header& header() const;
121  ::ignition::msgs::Header* mutable_header();
122  ::ignition::msgs::Header* release_header();
123  void set_allocated_header(::ignition::msgs::Header* header);
124 
125  // optional int32 id = 2;
126  void clear_id();
127  static const int kIdFieldNumber = 2;
128  ::google::protobuf::int32 id() const;
129  void set_id(::google::protobuf::int32 value);
130 
131  // optional string request = 3;
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);
138  ::std::string* mutable_request();
139  ::std::string* release_request();
140  void set_allocated_request(::std::string* request);
141 
142  // optional string data = 4;
143  void clear_data();
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);
149  ::std::string* mutable_data();
150  ::std::string* release_data();
151  void set_allocated_data(::std::string* data);
152 
153  // optional double dbl_data = 5;
154  void clear_dbl_data();
155  static const int kDblDataFieldNumber = 5;
156  double dbl_data() const;
157  void set_dbl_data(double value);
158 
159  // @@protoc_insertion_point(class_scope:ignition.msgs.Request)
160  private:
161 
162  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
163  bool _is_default_instance_;
164  ::ignition::msgs::Header* header_;
165  ::google::protobuf::internal::ArenaStringPtr request_;
166  ::google::protobuf::internal::ArenaStringPtr data_;
167  double dbl_data_;
168  ::google::protobuf::int32 id_;
169  mutable int _cached_size_;
170  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2frequest_2eproto();
173 
174  void InitAsDefaultInstance();
175  static Request* default_instance_;
176 };
177 // ===================================================================
178 
179 
180 // ===================================================================
181 
182 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
183 // Request
184 
185 // optional .ignition.msgs.Header header = 1;
186 inline bool Request::has_header() const {
187  return !_is_default_instance_ && header_ != NULL;
188 }
189 inline void Request::clear_header() {
190  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
191  header_ = NULL;
192 }
193 inline const ::ignition::msgs::Header& Request::header() const {
194  // @@protoc_insertion_point(field_get:ignition.msgs.Request.header)
195  return header_ != NULL ? *header_ : *default_instance_->header_;
196 }
197 inline ::ignition::msgs::Header* Request::mutable_header() {
198 
199  if (header_ == NULL) {
200  header_ = new ::ignition::msgs::Header;
201  }
202  // @@protoc_insertion_point(field_mutable:ignition.msgs.Request.header)
203  return header_;
204 }
205 inline ::ignition::msgs::Header* Request::release_header() {
206  // @@protoc_insertion_point(field_release:ignition.msgs.Request.header)
207 
208  ::ignition::msgs::Header* temp = header_;
209  header_ = NULL;
210  return temp;
211 }
213  delete header_;
214  header_ = header;
215  if (header) {
216 
217  } else {
218 
219  }
220  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Request.header)
221 }
222 
223 // optional int32 id = 2;
224 inline void Request::clear_id() {
225  id_ = 0;
226 }
227 inline ::google::protobuf::int32 Request::id() const {
228  // @@protoc_insertion_point(field_get:ignition.msgs.Request.id)
229  return id_;
230 }
231 inline void Request::set_id(::google::protobuf::int32 value) {
232 
233  id_ = value;
234  // @@protoc_insertion_point(field_set:ignition.msgs.Request.id)
235 }
236 
237 // optional string request = 3;
238 inline void Request::clear_request() {
239  request_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
240 }
241 inline const ::std::string& Request::request() const {
242  // @@protoc_insertion_point(field_get:ignition.msgs.Request.request)
243  return request_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
244 }
245 inline void Request::set_request(const ::std::string& value) {
246 
247  request_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
248  // @@protoc_insertion_point(field_set:ignition.msgs.Request.request)
249 }
250 inline void Request::set_request(const char* value) {
251 
252  request_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
253  // @@protoc_insertion_point(field_set_char:ignition.msgs.Request.request)
254 }
255 inline void Request::set_request(const char* value, size_t size) {
256 
257  request_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
258  ::std::string(reinterpret_cast<const char*>(value), size));
259  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Request.request)
260 }
261 inline ::std::string* Request::mutable_request() {
262 
263  // @@protoc_insertion_point(field_mutable:ignition.msgs.Request.request)
264  return request_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
265 }
266 inline ::std::string* Request::release_request() {
267  // @@protoc_insertion_point(field_release:ignition.msgs.Request.request)
268 
269  return request_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
270 }
272  if (request != NULL) {
273 
274  } else {
275 
276  }
277  request_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), request);
278  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Request.request)
279 }
280 
281 // optional string data = 4;
282 inline void Request::clear_data() {
283  data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
284 }
285 inline const ::std::string& Request::data() const {
286  // @@protoc_insertion_point(field_get:ignition.msgs.Request.data)
287  return data_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
288 }
289 inline void Request::set_data(const ::std::string& value) {
290 
291  data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
292  // @@protoc_insertion_point(field_set:ignition.msgs.Request.data)
293 }
294 inline void Request::set_data(const char* value) {
295 
296  data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
297  // @@protoc_insertion_point(field_set_char:ignition.msgs.Request.data)
298 }
299 inline void Request::set_data(const char* value, size_t size) {
300 
301  data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
302  ::std::string(reinterpret_cast<const char*>(value), size));
303  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Request.data)
304 }
305 inline ::std::string* Request::mutable_data() {
306 
307  // @@protoc_insertion_point(field_mutable:ignition.msgs.Request.data)
308  return data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
309 }
310 inline ::std::string* Request::release_data() {
311  // @@protoc_insertion_point(field_release:ignition.msgs.Request.data)
312 
313  return data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
314 }
316  if (data != NULL) {
317 
318  } else {
319 
320  }
321  data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data);
322  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Request.data)
323 }
324 
325 // optional double dbl_data = 5;
326 inline void Request::clear_dbl_data() {
327  dbl_data_ = 0;
328 }
329 inline double Request::dbl_data() const {
330  // @@protoc_insertion_point(field_get:ignition.msgs.Request.dbl_data)
331  return dbl_data_;
332 }
333 inline void Request::set_dbl_data(double value) {
334 
335  dbl_data_ = value;
336  // @@protoc_insertion_point(field_set:ignition.msgs.Request.dbl_data)
337 }
338 
339 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
340 
345 // @@protoc_insertion_point(namespace_scope)
346 
347 } // namespace msgs
348 } // namespace ignition
349 
350 #ifdef _MSC_VER
351 #pragma warning(pop)
352 #endif
353 // @@protoc_insertion_point(global_scope)
354 
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
Definition: header.pb.h:161
STL class.
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
STL class.
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