Ignition Msgs

API Reference

7.1.0
publish.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/publish.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fpublish_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fpublish_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_2fpublish_2eproto();
51 
52 class Publish;
53 
54 // ===================================================================
55 
56 class IGNITION_MSGS_VISIBLE Publish : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Publish) */ {
57  public:
58  Publish();
59  virtual ~Publish();
60 
61  Publish(const Publish& from);
62 
63  inline Publish& operator=(const Publish& from) {
64  CopyFrom(from);
65  return *this;
66  }
67 
68  static const ::google::protobuf::Descriptor* descriptor();
69  static const Publish& default_instance();
70 
71  void Swap(Publish* other);
72 
73  // implements Message ----------------------------------------------
74 
75  inline Publish* New() const { return New(NULL); }
76 
77  Publish* 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 Publish& from);
81  void MergeFrom(const Publish& 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(Publish* 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 string topic = 2;
126  void clear_topic();
127  static const int kTopicFieldNumber = 2;
128  const ::std::string& topic() const;
129  void set_topic(const ::std::string& value);
130  void set_topic(const char* value);
131  void set_topic(const char* value, size_t size);
132  ::std::string* mutable_topic();
133  ::std::string* release_topic();
134  void set_allocated_topic(::std::string* topic);
135 
136  // optional string msg_type = 3;
137  void clear_msg_type();
138  static const int kMsgTypeFieldNumber = 3;
139  const ::std::string& msg_type() const;
140  void set_msg_type(const ::std::string& value);
141  void set_msg_type(const char* value);
142  void set_msg_type(const char* value, size_t size);
143  ::std::string* mutable_msg_type();
144  ::std::string* release_msg_type();
145  void set_allocated_msg_type(::std::string* msg_type);
146 
147  // optional string host = 4;
148  void clear_host();
149  static const int kHostFieldNumber = 4;
150  const ::std::string& host() const;
151  void set_host(const ::std::string& value);
152  void set_host(const char* value);
153  void set_host(const char* value, size_t size);
154  ::std::string* mutable_host();
155  ::std::string* release_host();
156  void set_allocated_host(::std::string* host);
157 
158  // optional uint32 port = 5;
159  void clear_port();
160  static const int kPortFieldNumber = 5;
161  ::google::protobuf::uint32 port() const;
162  void set_port(::google::protobuf::uint32 value);
163 
164  // @@protoc_insertion_point(class_scope:ignition.msgs.Publish)
165  private:
166 
167  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
168  bool _is_default_instance_;
169  ::ignition::msgs::Header* header_;
170  ::google::protobuf::internal::ArenaStringPtr topic_;
171  ::google::protobuf::internal::ArenaStringPtr msg_type_;
172  ::google::protobuf::internal::ArenaStringPtr host_;
173  ::google::protobuf::uint32 port_;
174  mutable int _cached_size_;
175  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fpublish_2eproto();
178 
179  void InitAsDefaultInstance();
180  static Publish* default_instance_;
181 };
182 // ===================================================================
183 
184 
185 // ===================================================================
186 
187 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
188 // Publish
189 
190 // optional .ignition.msgs.Header header = 1;
191 inline bool Publish::has_header() const {
192  return !_is_default_instance_ && header_ != NULL;
193 }
194 inline void Publish::clear_header() {
195  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
196  header_ = NULL;
197 }
198 inline const ::ignition::msgs::Header& Publish::header() const {
199  // @@protoc_insertion_point(field_get:ignition.msgs.Publish.header)
200  return header_ != NULL ? *header_ : *default_instance_->header_;
201 }
202 inline ::ignition::msgs::Header* Publish::mutable_header() {
203 
204  if (header_ == NULL) {
205  header_ = new ::ignition::msgs::Header;
206  }
207  // @@protoc_insertion_point(field_mutable:ignition.msgs.Publish.header)
208  return header_;
209 }
210 inline ::ignition::msgs::Header* Publish::release_header() {
211  // @@protoc_insertion_point(field_release:ignition.msgs.Publish.header)
212 
213  ::ignition::msgs::Header* temp = header_;
214  header_ = NULL;
215  return temp;
216 }
218  delete header_;
219  header_ = header;
220  if (header) {
221 
222  } else {
223 
224  }
225  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Publish.header)
226 }
227 
228 // optional string topic = 2;
229 inline void Publish::clear_topic() {
230  topic_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
231 }
232 inline const ::std::string& Publish::topic() const {
233  // @@protoc_insertion_point(field_get:ignition.msgs.Publish.topic)
234  return topic_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
235 }
236 inline void Publish::set_topic(const ::std::string& value) {
237 
238  topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
239  // @@protoc_insertion_point(field_set:ignition.msgs.Publish.topic)
240 }
241 inline void Publish::set_topic(const char* value) {
242 
243  topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
244  // @@protoc_insertion_point(field_set_char:ignition.msgs.Publish.topic)
245 }
246 inline void Publish::set_topic(const char* value, size_t size) {
247 
248  topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
249  ::std::string(reinterpret_cast<const char*>(value), size));
250  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Publish.topic)
251 }
252 inline ::std::string* Publish::mutable_topic() {
253 
254  // @@protoc_insertion_point(field_mutable:ignition.msgs.Publish.topic)
255  return topic_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
256 }
257 inline ::std::string* Publish::release_topic() {
258  // @@protoc_insertion_point(field_release:ignition.msgs.Publish.topic)
259 
260  return topic_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
261 }
263  if (topic != NULL) {
264 
265  } else {
266 
267  }
268  topic_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), topic);
269  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Publish.topic)
270 }
271 
272 // optional string msg_type = 3;
273 inline void Publish::clear_msg_type() {
274  msg_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
275 }
276 inline const ::std::string& Publish::msg_type() const {
277  // @@protoc_insertion_point(field_get:ignition.msgs.Publish.msg_type)
278  return msg_type_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
279 }
280 inline void Publish::set_msg_type(const ::std::string& value) {
281 
282  msg_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
283  // @@protoc_insertion_point(field_set:ignition.msgs.Publish.msg_type)
284 }
285 inline void Publish::set_msg_type(const char* value) {
286 
287  msg_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
288  // @@protoc_insertion_point(field_set_char:ignition.msgs.Publish.msg_type)
289 }
290 inline void Publish::set_msg_type(const char* value, size_t size) {
291 
292  msg_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
293  ::std::string(reinterpret_cast<const char*>(value), size));
294  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Publish.msg_type)
295 }
296 inline ::std::string* Publish::mutable_msg_type() {
297 
298  // @@protoc_insertion_point(field_mutable:ignition.msgs.Publish.msg_type)
299  return msg_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
300 }
301 inline ::std::string* Publish::release_msg_type() {
302  // @@protoc_insertion_point(field_release:ignition.msgs.Publish.msg_type)
303 
304  return msg_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
305 }
307  if (msg_type != NULL) {
308 
309  } else {
310 
311  }
312  msg_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), msg_type);
313  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Publish.msg_type)
314 }
315 
316 // optional string host = 4;
317 inline void Publish::clear_host() {
318  host_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
319 }
320 inline const ::std::string& Publish::host() const {
321  // @@protoc_insertion_point(field_get:ignition.msgs.Publish.host)
322  return host_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
323 }
324 inline void Publish::set_host(const ::std::string& value) {
325 
326  host_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
327  // @@protoc_insertion_point(field_set:ignition.msgs.Publish.host)
328 }
329 inline void Publish::set_host(const char* value) {
330 
331  host_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
332  // @@protoc_insertion_point(field_set_char:ignition.msgs.Publish.host)
333 }
334 inline void Publish::set_host(const char* value, size_t size) {
335 
336  host_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
337  ::std::string(reinterpret_cast<const char*>(value), size));
338  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Publish.host)
339 }
340 inline ::std::string* Publish::mutable_host() {
341 
342  // @@protoc_insertion_point(field_mutable:ignition.msgs.Publish.host)
343  return host_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
344 }
345 inline ::std::string* Publish::release_host() {
346  // @@protoc_insertion_point(field_release:ignition.msgs.Publish.host)
347 
348  return host_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
349 }
351  if (host != NULL) {
352 
353  } else {
354 
355  }
356  host_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), host);
357  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Publish.host)
358 }
359 
360 // optional uint32 port = 5;
361 inline void Publish::clear_port() {
362  port_ = 0u;
363 }
364 inline ::google::protobuf::uint32 Publish::port() const {
365  // @@protoc_insertion_point(field_get:ignition.msgs.Publish.port)
366  return port_;
367 }
368 inline void Publish::set_port(::google::protobuf::uint32 value) {
369 
370  port_ = value;
371  // @@protoc_insertion_point(field_set:ignition.msgs.Publish.port)
372 }
373 
374 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
375 
380 // @@protoc_insertion_point(namespace_scope)
381 
382 } // namespace msgs
383 } // namespace ignition
384 
385 #ifdef _MSC_VER
386 #pragma warning(pop)
387 #endif
388 // @@protoc_insertion_point(global_scope)
389 
390 #endif // PROTOBUF_ignition_2fmsgs_2fpublish_2eproto__INCLUDED
const ::std::string & msg_type() const
Definition: publish.pb.h:276
void clear_msg_type()
Definition: publish.pb.h:273
Publish * New() const
Definition: publish.pb.h:75
void clear_topic()
Definition: publish.pb.h:229
bool has_header() const
Definition: publish.pb.h:191
::std::string * mutable_msg_type()
Definition: publish.pb.h:296
void set_host(const ::std::string &value)
Definition: publish.pb.h:324
const ::ignition::msgs::Header & header() const
Definition: publish.pb.h:198
const ::std::string & topic() const
Definition: publish.pb.h:232
void set_topic(const ::std::string &value)
Definition: publish.pb.h:236
Definition: header.pb.h:161
STL class.
void clear_header()
Definition: publish.pb.h:194
Publish & operator=(const Publish &from)
Definition: publish.pb.h:63
::std::string * release_host()
Definition: publish.pb.h:345
::ignition::msgs::Header * mutable_header()
Definition: publish.pb.h:202
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: publish.pb.h:92
::std::string * mutable_topic()
Definition: publish.pb.h:252
void set_allocated_msg_type(::std::string *msg_type)
Definition: publish.pb.h:306
::std::string * release_topic()
Definition: publish.pb.h:257
STL class.
std::unique_ptr< Publish > PublishUniquePtr
Definition: publish.pb.h:376
void protobuf_ShutdownFile_ignition_2fmsgs_2fpublish_2eproto()
::std::string * mutable_host()
Definition: publish.pb.h:340
::ignition::msgs::Header * release_header()
Definition: publish.pb.h:210
int GetCachedSize() const
Definition: publish.pb.h:95
void set_msg_type(const ::std::string &value)
Definition: publish.pb.h:280
std::shared_ptr< const Publish > ConstPublishSharedPtr
Definition: publish.pb.h:379
void protobuf_AssignDesc_ignition_2fmsgs_2fpublish_2eproto()
void set_port(::google::protobuf::uint32 value)
Definition: publish.pb.h:368
void set_allocated_host(::std::string *host)
Definition: publish.pb.h:350
std::shared_ptr< Publish > PublishSharedPtr
Definition: publish.pb.h:378
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fpublish_2eproto()
::google::protobuf::uint32 port() const
Definition: publish.pb.h:364
Definition: publish.pb.h:56
::std::string * release_msg_type()
Definition: publish.pb.h:301
std::unique_ptr< const Publish > ConstPublishUniquePtr
Definition: publish.pb.h:377
void clear_port()
Definition: publish.pb.h:361
void set_allocated_header(::ignition::msgs::Header *header)
Definition: publish.pb.h:217
const ::std::string & host() const
Definition: publish.pb.h:320
void set_allocated_topic(::std::string *topic)
Definition: publish.pb.h:262
void clear_host()
Definition: publish.pb.h:317