rib-entry.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: rib-entry.proto
3 
4 #ifndef PROTOBUF_rib_2dentry_2eproto__INCLUDED
5 #define PROTOBUF_rib_2dentry_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 // For backwards compatibility with system that install an older Protobuf (e.g. Ubuntu)),
12 // include the older output from protoc so that the sample program compiles.
13 #if GOOGLE_PROTOBUF_VERSION < 2005000
14 
15 #if GOOGLE_PROTOBUF_VERSION < 2004000
16 #error This file was generated by a newer version of protoc which is
17 #error incompatible with your Protocol Buffer headers. Please update
18 #error your headers.
19 #endif
20 #if 2004001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
21 #error This file was generated by an older version of protoc which is
22 #error incompatible with your Protocol Buffer headers. Please
23 #error regenerate this file with a newer version of protoc.
24 #endif
25 
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/repeated_field.h>
28 #include <google/protobuf/extension_set.h>
29 #include <google/protobuf/generated_message_reflection.h>
30 // @@protoc_insertion_point(includes)
31 
32 namespace ndn_message {
33 
34 // Internal implementation detail -- do not call these.
35 void protobuf_AddDesc_rib_2dentry_2eproto();
36 void protobuf_AssignDesc_rib_2dentry_2eproto();
37 void protobuf_ShutdownFile_rib_2dentry_2eproto();
38 
39 class RibEntryMessage;
40 class RibEntryMessage_Name;
41 class RibEntryMessage_Route;
42 class RibEntryMessage_RibEntry;
43 
44 // ===================================================================
45 
46 class RibEntryMessage_Name : public ::google::protobuf::Message {
47  public:
49  virtual ~RibEntryMessage_Name();
50 
52 
53  inline RibEntryMessage_Name& operator=(const RibEntryMessage_Name& from) {
54  CopyFrom(from);
55  return *this;
56  }
57 
58  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
59  return _unknown_fields_;
60  }
61 
62  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
63  return &_unknown_fields_;
64  }
65 
66  static const ::google::protobuf::Descriptor* descriptor();
67  static const RibEntryMessage_Name& default_instance();
68 
69  void Swap(RibEntryMessage_Name* other);
70 
71  // implements Message ----------------------------------------------
72 
73  RibEntryMessage_Name* New() const;
74  void CopyFrom(const ::google::protobuf::Message& from);
75  void MergeFrom(const ::google::protobuf::Message& from);
76  void CopyFrom(const RibEntryMessage_Name& from);
77  void MergeFrom(const RibEntryMessage_Name& from);
78  void Clear();
79  bool IsInitialized() const;
80 
81  int ByteSize() const;
82  bool MergePartialFromCodedStream(
83  ::google::protobuf::io::CodedInputStream* input);
84  void SerializeWithCachedSizes(
85  ::google::protobuf::io::CodedOutputStream* output) const;
86  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
87  int GetCachedSize() const { return _cached_size_; }
88  private:
89  void SharedCtor();
90  void SharedDtor();
91  void SetCachedSize(int size) const;
92  public:
93 
94  ::google::protobuf::Metadata GetMetadata() const;
95 
96  // nested types ----------------------------------------------------
97 
98  // accessors -------------------------------------------------------
99 
100  // repeated bytes component = 8;
101  inline int component_size() const;
102  inline void clear_component();
103  static const int kComponentFieldNumber = 8;
104  inline const ::std::string& component(int index) const;
105  inline ::std::string* mutable_component(int index);
106  inline void set_component(int index, const ::std::string& value);
107  inline void set_component(int index, const char* value);
108  inline void set_component(int index, const void* value, size_t size);
109  inline ::std::string* add_component();
110  inline void add_component(const ::std::string& value);
111  inline void add_component(const char* value);
112  inline void add_component(const void* value, size_t size);
113  inline const ::google::protobuf::RepeatedPtrField< ::std::string>& component() const;
114  inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_component();
115 
116  // @@protoc_insertion_point(class_scope:ndn_message.RibEntryMessage.Name)
117  private:
118 
119  ::google::protobuf::UnknownFieldSet _unknown_fields_;
120 
122 
123  mutable int _cached_size_;
124  ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
125 
126  friend void protobuf_AddDesc_rib_2dentry_2eproto();
127  friend void protobuf_AssignDesc_rib_2dentry_2eproto();
128  friend void protobuf_ShutdownFile_rib_2dentry_2eproto();
129 
130  void InitAsDefaultInstance();
131  static RibEntryMessage_Name* default_instance_;
132 };
133 // -------------------------------------------------------------------
134 
135 class RibEntryMessage_Route : public ::google::protobuf::Message {
136  public:
138  virtual ~RibEntryMessage_Route();
139 
141 
142  inline RibEntryMessage_Route& operator=(const RibEntryMessage_Route& from) {
143  CopyFrom(from);
144  return *this;
145  }
146 
147  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
148  return _unknown_fields_;
149  }
150 
151  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
152  return &_unknown_fields_;
153  }
154 
155  static const ::google::protobuf::Descriptor* descriptor();
156  static const RibEntryMessage_Route& default_instance();
157 
158  void Swap(RibEntryMessage_Route* other);
159 
160  // implements Message ----------------------------------------------
161 
162  RibEntryMessage_Route* New() const;
163  void CopyFrom(const ::google::protobuf::Message& from);
164  void MergeFrom(const ::google::protobuf::Message& from);
165  void CopyFrom(const RibEntryMessage_Route& from);
166  void MergeFrom(const RibEntryMessage_Route& from);
167  void Clear();
168  bool IsInitialized() const;
169 
170  int ByteSize() const;
171  bool MergePartialFromCodedStream(
172  ::google::protobuf::io::CodedInputStream* input);
173  void SerializeWithCachedSizes(
174  ::google::protobuf::io::CodedOutputStream* output) const;
175  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
176  int GetCachedSize() const { return _cached_size_; }
177  private:
178  void SharedCtor();
179  void SharedDtor();
180  void SetCachedSize(int size) const;
181  public:
182 
183  ::google::protobuf::Metadata GetMetadata() const;
184 
185  // nested types ----------------------------------------------------
186 
187  // accessors -------------------------------------------------------
188 
189  // required uint32 face_id = 105;
190  inline bool has_face_id() const;
191  inline void clear_face_id();
192  static const int kFaceIdFieldNumber = 105;
193  inline ::google::protobuf::uint32 face_id() const;
194  inline void set_face_id(::google::protobuf::uint32 value);
195 
196  // required uint32 origin = 111;
197  inline bool has_origin() const;
198  inline void clear_origin();
199  static const int kOriginFieldNumber = 111;
200  inline ::google::protobuf::uint32 origin() const;
201  inline void set_origin(::google::protobuf::uint32 value);
202 
203  // required uint32 cost = 106;
204  inline bool has_cost() const;
205  inline void clear_cost();
206  static const int kCostFieldNumber = 106;
207  inline ::google::protobuf::uint32 cost() const;
208  inline void set_cost(::google::protobuf::uint32 value);
209 
210  // required uint32 flags = 108;
211  inline bool has_flags() const;
212  inline void clear_flags();
213  static const int kFlagsFieldNumber = 108;
214  inline ::google::protobuf::uint32 flags() const;
215  inline void set_flags(::google::protobuf::uint32 value);
216 
217  // optional uint32 expiration_period = 109;
218  inline bool has_expiration_period() const;
219  inline void clear_expiration_period();
220  static const int kExpirationPeriodFieldNumber = 109;
221  inline ::google::protobuf::uint32 expiration_period() const;
222  inline void set_expiration_period(::google::protobuf::uint32 value);
223 
224  // @@protoc_insertion_point(class_scope:ndn_message.RibEntryMessage.Route)
225  private:
226  inline void set_has_face_id();
227  inline void clear_has_face_id();
228  inline void set_has_origin();
229  inline void clear_has_origin();
230  inline void set_has_cost();
231  inline void clear_has_cost();
232  inline void set_has_flags();
233  inline void clear_has_flags();
234  inline void set_has_expiration_period();
235  inline void clear_has_expiration_period();
236 
237  ::google::protobuf::UnknownFieldSet _unknown_fields_;
238 
239  ::google::protobuf::uint32 face_id_;
240  ::google::protobuf::uint32 origin_;
241  ::google::protobuf::uint32 cost_;
242  ::google::protobuf::uint32 flags_;
243  ::google::protobuf::uint32 expiration_period_;
244 
245  mutable int _cached_size_;
246  ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32];
247 
248  friend void protobuf_AddDesc_rib_2dentry_2eproto();
249  friend void protobuf_AssignDesc_rib_2dentry_2eproto();
250  friend void protobuf_ShutdownFile_rib_2dentry_2eproto();
251 
252  void InitAsDefaultInstance();
253  static RibEntryMessage_Route* default_instance_;
254 };
255 // -------------------------------------------------------------------
256 
257 class RibEntryMessage_RibEntry : public ::google::protobuf::Message {
258  public:
260  virtual ~RibEntryMessage_RibEntry();
261 
263 
264  inline RibEntryMessage_RibEntry& operator=(const RibEntryMessage_RibEntry& from) {
265  CopyFrom(from);
266  return *this;
267  }
268 
269  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
270  return _unknown_fields_;
271  }
272 
273  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
274  return &_unknown_fields_;
275  }
276 
277  static const ::google::protobuf::Descriptor* descriptor();
278  static const RibEntryMessage_RibEntry& default_instance();
279 
280  void Swap(RibEntryMessage_RibEntry* other);
281 
282  // implements Message ----------------------------------------------
283 
284  RibEntryMessage_RibEntry* New() const;
285  void CopyFrom(const ::google::protobuf::Message& from);
286  void MergeFrom(const ::google::protobuf::Message& from);
287  void CopyFrom(const RibEntryMessage_RibEntry& from);
288  void MergeFrom(const RibEntryMessage_RibEntry& from);
289  void Clear();
290  bool IsInitialized() const;
291 
292  int ByteSize() const;
293  bool MergePartialFromCodedStream(
294  ::google::protobuf::io::CodedInputStream* input);
295  void SerializeWithCachedSizes(
296  ::google::protobuf::io::CodedOutputStream* output) const;
297  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
298  int GetCachedSize() const { return _cached_size_; }
299  private:
300  void SharedCtor();
301  void SharedDtor();
302  void SetCachedSize(int size) const;
303  public:
304 
305  ::google::protobuf::Metadata GetMetadata() const;
306 
307  // nested types ----------------------------------------------------
308 
309  // accessors -------------------------------------------------------
310 
311  // required .ndn_message.RibEntryMessage.Name name = 7;
312  inline bool has_name() const;
313  inline void clear_name();
314  static const int kNameFieldNumber = 7;
315  inline const ::ndn_message::RibEntryMessage_Name& name() const;
316  inline ::ndn_message::RibEntryMessage_Name* mutable_name();
317  inline ::ndn_message::RibEntryMessage_Name* release_name();
318 
319  // repeated .ndn_message.RibEntryMessage.Route routes = 129;
320  inline int routes_size() const;
321  inline void clear_routes();
322  static const int kRoutesFieldNumber = 129;
323  inline const ::ndn_message::RibEntryMessage_Route& routes(int index) const;
324  inline ::ndn_message::RibEntryMessage_Route* mutable_routes(int index);
325  inline ::ndn_message::RibEntryMessage_Route* add_routes();
326  inline const ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_Route >&
327  routes() const;
328  inline ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_Route >*
329  mutable_routes();
330 
331  // @@protoc_insertion_point(class_scope:ndn_message.RibEntryMessage.RibEntry)
332  private:
333  inline void set_has_name();
334  inline void clear_has_name();
335 
336  ::google::protobuf::UnknownFieldSet _unknown_fields_;
337 
340 
341  mutable int _cached_size_;
342  ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
343 
344  friend void protobuf_AddDesc_rib_2dentry_2eproto();
345  friend void protobuf_AssignDesc_rib_2dentry_2eproto();
346  friend void protobuf_ShutdownFile_rib_2dentry_2eproto();
347 
348  void InitAsDefaultInstance();
349  static RibEntryMessage_RibEntry* default_instance_;
350 };
351 // -------------------------------------------------------------------
352 
353 class RibEntryMessage : public ::google::protobuf::Message {
354  public:
355  RibEntryMessage();
356  virtual ~RibEntryMessage();
357 
358  RibEntryMessage(const RibEntryMessage& from);
359 
360  inline RibEntryMessage& operator=(const RibEntryMessage& from) {
361  CopyFrom(from);
362  return *this;
363  }
364 
365  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
366  return _unknown_fields_;
367  }
368 
369  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
370  return &_unknown_fields_;
371  }
372 
373  static const ::google::protobuf::Descriptor* descriptor();
374  static const RibEntryMessage& default_instance();
375 
376  void Swap(RibEntryMessage* other);
377 
378  // implements Message ----------------------------------------------
379 
380  RibEntryMessage* New() const;
381  void CopyFrom(const ::google::protobuf::Message& from);
382  void MergeFrom(const ::google::protobuf::Message& from);
383  void CopyFrom(const RibEntryMessage& from);
384  void MergeFrom(const RibEntryMessage& from);
385  void Clear();
386  bool IsInitialized() const;
387 
388  int ByteSize() const;
389  bool MergePartialFromCodedStream(
390  ::google::protobuf::io::CodedInputStream* input);
391  void SerializeWithCachedSizes(
392  ::google::protobuf::io::CodedOutputStream* output) const;
393  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
394  int GetCachedSize() const { return _cached_size_; }
395  private:
396  void SharedCtor();
397  void SharedDtor();
398  void SetCachedSize(int size) const;
399  public:
400 
401  ::google::protobuf::Metadata GetMetadata() const;
402 
403  // nested types ----------------------------------------------------
404 
405  typedef RibEntryMessage_Name Name;
408 
409  // accessors -------------------------------------------------------
410 
411  // repeated .ndn_message.RibEntryMessage.RibEntry rib_entry = 128;
412  inline int rib_entry_size() const;
413  inline void clear_rib_entry();
414  static const int kRibEntryFieldNumber = 128;
415  inline const ::ndn_message::RibEntryMessage_RibEntry& rib_entry(int index) const;
416  inline ::ndn_message::RibEntryMessage_RibEntry* mutable_rib_entry(int index);
417  inline ::ndn_message::RibEntryMessage_RibEntry* add_rib_entry();
418  inline const ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_RibEntry >&
419  rib_entry() const;
420  inline ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_RibEntry >*
421  mutable_rib_entry();
422 
423  // @@protoc_insertion_point(class_scope:ndn_message.RibEntryMessage)
424  private:
425 
426  ::google::protobuf::UnknownFieldSet _unknown_fields_;
427 
429 
430  mutable int _cached_size_;
431  ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
432 
433  friend void protobuf_AddDesc_rib_2dentry_2eproto();
434  friend void protobuf_AssignDesc_rib_2dentry_2eproto();
435  friend void protobuf_ShutdownFile_rib_2dentry_2eproto();
436 
437  void InitAsDefaultInstance();
438  static RibEntryMessage* default_instance_;
439 };
440 // ===================================================================
441 
442 
443 // ===================================================================
444 
445 // RibEntryMessage_Name
446 
447 // repeated bytes component = 8;
448 inline int RibEntryMessage_Name::component_size() const {
449  return component_.size();
450 }
451 inline void RibEntryMessage_Name::clear_component() {
452  component_.Clear();
453 }
454 inline const ::std::string& RibEntryMessage_Name::component(int index) const {
455  return component_.Get(index);
456 }
457 inline ::std::string* RibEntryMessage_Name::mutable_component(int index) {
458  return component_.Mutable(index);
459 }
460 inline void RibEntryMessage_Name::set_component(int index, const ::std::string& value) {
461  component_.Mutable(index)->assign(value);
462 }
463 inline void RibEntryMessage_Name::set_component(int index, const char* value) {
464  component_.Mutable(index)->assign(value);
465 }
466 inline void RibEntryMessage_Name::set_component(int index, const void* value, size_t size) {
467  component_.Mutable(index)->assign(
468  reinterpret_cast<const char*>(value), size);
469 }
470 inline ::std::string* RibEntryMessage_Name::add_component() {
471  return component_.Add();
472 }
473 inline void RibEntryMessage_Name::add_component(const ::std::string& value) {
474  component_.Add()->assign(value);
475 }
476 inline void RibEntryMessage_Name::add_component(const char* value) {
477  component_.Add()->assign(value);
478 }
479 inline void RibEntryMessage_Name::add_component(const void* value, size_t size) {
480  component_.Add()->assign(reinterpret_cast<const char*>(value), size);
481 }
482 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
483 RibEntryMessage_Name::component() const {
484  return component_;
485 }
486 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
487 RibEntryMessage_Name::mutable_component() {
488  return &component_;
489 }
490 
491 // -------------------------------------------------------------------
492 
493 // RibEntryMessage_Route
494 
495 // required uint32 face_id = 105;
496 inline bool RibEntryMessage_Route::has_face_id() const {
497  return (_has_bits_[0] & 0x00000001u) != 0;
498 }
499 inline void RibEntryMessage_Route::set_has_face_id() {
500  _has_bits_[0] |= 0x00000001u;
501 }
502 inline void RibEntryMessage_Route::clear_has_face_id() {
503  _has_bits_[0] &= ~0x00000001u;
504 }
505 inline void RibEntryMessage_Route::clear_face_id() {
506  face_id_ = 0u;
507  clear_has_face_id();
508 }
509 inline ::google::protobuf::uint32 RibEntryMessage_Route::face_id() const {
510  return face_id_;
511 }
512 inline void RibEntryMessage_Route::set_face_id(::google::protobuf::uint32 value) {
513  set_has_face_id();
514  face_id_ = value;
515 }
516 
517 // required uint32 origin = 111;
518 inline bool RibEntryMessage_Route::has_origin() const {
519  return (_has_bits_[0] & 0x00000002u) != 0;
520 }
521 inline void RibEntryMessage_Route::set_has_origin() {
522  _has_bits_[0] |= 0x00000002u;
523 }
524 inline void RibEntryMessage_Route::clear_has_origin() {
525  _has_bits_[0] &= ~0x00000002u;
526 }
527 inline void RibEntryMessage_Route::clear_origin() {
528  origin_ = 0u;
529  clear_has_origin();
530 }
531 inline ::google::protobuf::uint32 RibEntryMessage_Route::origin() const {
532  return origin_;
533 }
534 inline void RibEntryMessage_Route::set_origin(::google::protobuf::uint32 value) {
535  set_has_origin();
536  origin_ = value;
537 }
538 
539 // required uint32 cost = 106;
540 inline bool RibEntryMessage_Route::has_cost() const {
541  return (_has_bits_[0] & 0x00000004u) != 0;
542 }
543 inline void RibEntryMessage_Route::set_has_cost() {
544  _has_bits_[0] |= 0x00000004u;
545 }
546 inline void RibEntryMessage_Route::clear_has_cost() {
547  _has_bits_[0] &= ~0x00000004u;
548 }
549 inline void RibEntryMessage_Route::clear_cost() {
550  cost_ = 0u;
551  clear_has_cost();
552 }
553 inline ::google::protobuf::uint32 RibEntryMessage_Route::cost() const {
554  return cost_;
555 }
556 inline void RibEntryMessage_Route::set_cost(::google::protobuf::uint32 value) {
557  set_has_cost();
558  cost_ = value;
559 }
560 
561 // required uint32 flags = 108;
562 inline bool RibEntryMessage_Route::has_flags() const {
563  return (_has_bits_[0] & 0x00000008u) != 0;
564 }
565 inline void RibEntryMessage_Route::set_has_flags() {
566  _has_bits_[0] |= 0x00000008u;
567 }
568 inline void RibEntryMessage_Route::clear_has_flags() {
569  _has_bits_[0] &= ~0x00000008u;
570 }
571 inline void RibEntryMessage_Route::clear_flags() {
572  flags_ = 0u;
573  clear_has_flags();
574 }
575 inline ::google::protobuf::uint32 RibEntryMessage_Route::flags() const {
576  return flags_;
577 }
578 inline void RibEntryMessage_Route::set_flags(::google::protobuf::uint32 value) {
579  set_has_flags();
580  flags_ = value;
581 }
582 
583 // optional uint32 expiration_period = 109;
584 inline bool RibEntryMessage_Route::has_expiration_period() const {
585  return (_has_bits_[0] & 0x00000010u) != 0;
586 }
587 inline void RibEntryMessage_Route::set_has_expiration_period() {
588  _has_bits_[0] |= 0x00000010u;
589 }
590 inline void RibEntryMessage_Route::clear_has_expiration_period() {
591  _has_bits_[0] &= ~0x00000010u;
592 }
593 inline void RibEntryMessage_Route::clear_expiration_period() {
594  expiration_period_ = 0u;
595  clear_has_expiration_period();
596 }
597 inline ::google::protobuf::uint32 RibEntryMessage_Route::expiration_period() const {
598  return expiration_period_;
599 }
600 inline void RibEntryMessage_Route::set_expiration_period(::google::protobuf::uint32 value) {
601  set_has_expiration_period();
602  expiration_period_ = value;
603 }
604 
605 // -------------------------------------------------------------------
606 
607 // RibEntryMessage_RibEntry
608 
609 // required .ndn_message.RibEntryMessage.Name name = 7;
610 inline bool RibEntryMessage_RibEntry::has_name() const {
611  return (_has_bits_[0] & 0x00000001u) != 0;
612 }
613 inline void RibEntryMessage_RibEntry::set_has_name() {
614  _has_bits_[0] |= 0x00000001u;
615 }
616 inline void RibEntryMessage_RibEntry::clear_has_name() {
617  _has_bits_[0] &= ~0x00000001u;
618 }
619 inline void RibEntryMessage_RibEntry::clear_name() {
620  if (name_ != NULL) name_->::ndn_message::RibEntryMessage_Name::Clear();
621  clear_has_name();
622 }
623 inline const ::ndn_message::RibEntryMessage_Name& RibEntryMessage_RibEntry::name() const {
624  return name_ != NULL ? *name_ : *default_instance_->name_;
625 }
626 inline ::ndn_message::RibEntryMessage_Name* RibEntryMessage_RibEntry::mutable_name() {
627  set_has_name();
628  if (name_ == NULL) name_ = new ::ndn_message::RibEntryMessage_Name;
629  return name_;
630 }
631 inline ::ndn_message::RibEntryMessage_Name* RibEntryMessage_RibEntry::release_name() {
632  clear_has_name();
634  name_ = NULL;
635  return temp;
636 }
637 
638 // repeated .ndn_message.RibEntryMessage.Route routes = 129;
639 inline int RibEntryMessage_RibEntry::routes_size() const {
640  return routes_.size();
641 }
642 inline void RibEntryMessage_RibEntry::clear_routes() {
643  routes_.Clear();
644 }
645 inline const ::ndn_message::RibEntryMessage_Route& RibEntryMessage_RibEntry::routes(int index) const {
646  return routes_.Get(index);
647 }
648 inline ::ndn_message::RibEntryMessage_Route* RibEntryMessage_RibEntry::mutable_routes(int index) {
649  return routes_.Mutable(index);
650 }
651 inline ::ndn_message::RibEntryMessage_Route* RibEntryMessage_RibEntry::add_routes() {
652  return routes_.Add();
653 }
654 inline const ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_Route >&
655 RibEntryMessage_RibEntry::routes() const {
656  return routes_;
657 }
658 inline ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_Route >*
659 RibEntryMessage_RibEntry::mutable_routes() {
660  return &routes_;
661 }
662 
663 // -------------------------------------------------------------------
664 
665 // RibEntryMessage
666 
667 // repeated .ndn_message.RibEntryMessage.RibEntry rib_entry = 128;
668 inline int RibEntryMessage::rib_entry_size() const {
669  return rib_entry_.size();
670 }
671 inline void RibEntryMessage::clear_rib_entry() {
672  rib_entry_.Clear();
673 }
674 inline const ::ndn_message::RibEntryMessage_RibEntry& RibEntryMessage::rib_entry(int index) const {
675  return rib_entry_.Get(index);
676 }
677 inline ::ndn_message::RibEntryMessage_RibEntry* RibEntryMessage::mutable_rib_entry(int index) {
678  return rib_entry_.Mutable(index);
679 }
680 inline ::ndn_message::RibEntryMessage_RibEntry* RibEntryMessage::add_rib_entry() {
681  return rib_entry_.Add();
682 }
683 inline const ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_RibEntry >&
684 RibEntryMessage::rib_entry() const {
685  return rib_entry_;
686 }
687 inline ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_RibEntry >*
688 RibEntryMessage::mutable_rib_entry() {
689  return &rib_entry_;
690 }
691 
692 
693 // @@protoc_insertion_point(namespace_scope)
694 
695 } // namespace ndn_message
696 
697 #ifndef SWIG
698 namespace google {
699 namespace protobuf {
700 
701 
702 } // namespace google
703 } // namespace protobuf
704 #endif // SWIG
705 
706 // @@protoc_insertion_point(global_scope)
707 
708 #else // GOOGLE_PROTOBUF_VERSION < 2005000
709 
710 #if GOOGLE_PROTOBUF_VERSION < 2005000
711 #error This file was generated by a newer version of protoc which is
712 #error incompatible with your Protocol Buffer headers. Please update
713 #error your headers.
714 #endif
715 #if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
716 #error This file was generated by an older version of protoc which is
717 #error incompatible with your Protocol Buffer headers. Please
718 #error regenerate this file with a newer version of protoc.
719 #endif
720 
721 #include <google/protobuf/generated_message_util.h>
722 #include <google/protobuf/message.h>
723 #include <google/protobuf/repeated_field.h>
724 #include <google/protobuf/extension_set.h>
725 #include <google/protobuf/unknown_field_set.h>
726 // @@protoc_insertion_point(includes)
727 
728 namespace ndn_message {
729 
730 // Internal implementation detail -- do not call these.
731 void protobuf_AddDesc_rib_2dentry_2eproto();
732 void protobuf_AssignDesc_rib_2dentry_2eproto();
733 void protobuf_ShutdownFile_rib_2dentry_2eproto();
734 
735 class RibEntryMessage;
736 class RibEntryMessage_Name;
737 class RibEntryMessage_Route;
738 class RibEntryMessage_RibEntry;
739 
740 // ===================================================================
741 
742 class RibEntryMessage_Name : public ::google::protobuf::Message {
743  public:
744  RibEntryMessage_Name();
745  virtual ~RibEntryMessage_Name();
746 
747  RibEntryMessage_Name(const RibEntryMessage_Name& from);
748 
749  inline RibEntryMessage_Name& operator=(const RibEntryMessage_Name& from) {
750  CopyFrom(from);
751  return *this;
752  }
753 
754  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
755  return _unknown_fields_;
756  }
757 
758  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
759  return &_unknown_fields_;
760  }
761 
762  static const ::google::protobuf::Descriptor* descriptor();
763  static const RibEntryMessage_Name& default_instance();
764 
765  void Swap(RibEntryMessage_Name* other);
766 
767  // implements Message ----------------------------------------------
768 
769  RibEntryMessage_Name* New() const;
770  void CopyFrom(const ::google::protobuf::Message& from);
771  void MergeFrom(const ::google::protobuf::Message& from);
772  void CopyFrom(const RibEntryMessage_Name& from);
773  void MergeFrom(const RibEntryMessage_Name& from);
774  void Clear();
775  bool IsInitialized() const;
776 
777  int ByteSize() const;
778  bool MergePartialFromCodedStream(
779  ::google::protobuf::io::CodedInputStream* input);
780  void SerializeWithCachedSizes(
781  ::google::protobuf::io::CodedOutputStream* output) const;
782  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
783  int GetCachedSize() const { return _cached_size_; }
784  private:
785  void SharedCtor();
786  void SharedDtor();
787  void SetCachedSize(int size) const;
788  public:
789 
790  ::google::protobuf::Metadata GetMetadata() const;
791 
792  // nested types ----------------------------------------------------
793 
794  // accessors -------------------------------------------------------
795 
796  // repeated bytes component = 8;
797  inline int component_size() const;
798  inline void clear_component();
799  static const int kComponentFieldNumber = 8;
800  inline const ::std::string& component(int index) const;
801  inline ::std::string* mutable_component(int index);
802  inline void set_component(int index, const ::std::string& value);
803  inline void set_component(int index, const char* value);
804  inline void set_component(int index, const void* value, size_t size);
805  inline ::std::string* add_component();
806  inline void add_component(const ::std::string& value);
807  inline void add_component(const char* value);
808  inline void add_component(const void* value, size_t size);
809  inline const ::google::protobuf::RepeatedPtrField< ::std::string>& component() const;
810  inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_component();
811 
812  // @@protoc_insertion_point(class_scope:ndn_message.RibEntryMessage.Name)
813  private:
814 
815  ::google::protobuf::UnknownFieldSet _unknown_fields_;
816 
818 
819  mutable int _cached_size_;
820  ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
821 
822  friend void protobuf_AddDesc_rib_2dentry_2eproto();
823  friend void protobuf_AssignDesc_rib_2dentry_2eproto();
824  friend void protobuf_ShutdownFile_rib_2dentry_2eproto();
825 
826  void InitAsDefaultInstance();
827  static RibEntryMessage_Name* default_instance_;
828 };
829 // -------------------------------------------------------------------
830 
831 class RibEntryMessage_Route : public ::google::protobuf::Message {
832  public:
833  RibEntryMessage_Route();
834  virtual ~RibEntryMessage_Route();
835 
836  RibEntryMessage_Route(const RibEntryMessage_Route& from);
837 
838  inline RibEntryMessage_Route& operator=(const RibEntryMessage_Route& from) {
839  CopyFrom(from);
840  return *this;
841  }
842 
843  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
844  return _unknown_fields_;
845  }
846 
847  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
848  return &_unknown_fields_;
849  }
850 
851  static const ::google::protobuf::Descriptor* descriptor();
852  static const RibEntryMessage_Route& default_instance();
853 
854  void Swap(RibEntryMessage_Route* other);
855 
856  // implements Message ----------------------------------------------
857 
858  RibEntryMessage_Route* New() const;
859  void CopyFrom(const ::google::protobuf::Message& from);
860  void MergeFrom(const ::google::protobuf::Message& from);
861  void CopyFrom(const RibEntryMessage_Route& from);
862  void MergeFrom(const RibEntryMessage_Route& from);
863  void Clear();
864  bool IsInitialized() const;
865 
866  int ByteSize() const;
867  bool MergePartialFromCodedStream(
868  ::google::protobuf::io::CodedInputStream* input);
869  void SerializeWithCachedSizes(
870  ::google::protobuf::io::CodedOutputStream* output) const;
871  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
872  int GetCachedSize() const { return _cached_size_; }
873  private:
874  void SharedCtor();
875  void SharedDtor();
876  void SetCachedSize(int size) const;
877  public:
878 
879  ::google::protobuf::Metadata GetMetadata() const;
880 
881  // nested types ----------------------------------------------------
882 
883  // accessors -------------------------------------------------------
884 
885  // required uint32 face_id = 105;
886  inline bool has_face_id() const;
887  inline void clear_face_id();
888  static const int kFaceIdFieldNumber = 105;
889  inline ::google::protobuf::uint32 face_id() const;
890  inline void set_face_id(::google::protobuf::uint32 value);
891 
892  // required uint32 origin = 111;
893  inline bool has_origin() const;
894  inline void clear_origin();
895  static const int kOriginFieldNumber = 111;
896  inline ::google::protobuf::uint32 origin() const;
897  inline void set_origin(::google::protobuf::uint32 value);
898 
899  // required uint32 cost = 106;
900  inline bool has_cost() const;
901  inline void clear_cost();
902  static const int kCostFieldNumber = 106;
903  inline ::google::protobuf::uint32 cost() const;
904  inline void set_cost(::google::protobuf::uint32 value);
905 
906  // required uint32 flags = 108;
907  inline bool has_flags() const;
908  inline void clear_flags();
909  static const int kFlagsFieldNumber = 108;
910  inline ::google::protobuf::uint32 flags() const;
911  inline void set_flags(::google::protobuf::uint32 value);
912 
913  // optional uint32 expiration_period = 109;
914  inline bool has_expiration_period() const;
915  inline void clear_expiration_period();
916  static const int kExpirationPeriodFieldNumber = 109;
917  inline ::google::protobuf::uint32 expiration_period() const;
918  inline void set_expiration_period(::google::protobuf::uint32 value);
919 
920  // @@protoc_insertion_point(class_scope:ndn_message.RibEntryMessage.Route)
921  private:
922  inline void set_has_face_id();
923  inline void clear_has_face_id();
924  inline void set_has_origin();
925  inline void clear_has_origin();
926  inline void set_has_cost();
927  inline void clear_has_cost();
928  inline void set_has_flags();
929  inline void clear_has_flags();
930  inline void set_has_expiration_period();
931  inline void clear_has_expiration_period();
932 
933  ::google::protobuf::UnknownFieldSet _unknown_fields_;
934 
935  ::google::protobuf::uint32 face_id_;
936  ::google::protobuf::uint32 origin_;
937  ::google::protobuf::uint32 cost_;
938  ::google::protobuf::uint32 flags_;
939  ::google::protobuf::uint32 expiration_period_;
940 
941  mutable int _cached_size_;
942  ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32];
943 
944  friend void protobuf_AddDesc_rib_2dentry_2eproto();
945  friend void protobuf_AssignDesc_rib_2dentry_2eproto();
946  friend void protobuf_ShutdownFile_rib_2dentry_2eproto();
947 
948  void InitAsDefaultInstance();
949  static RibEntryMessage_Route* default_instance_;
950 };
951 // -------------------------------------------------------------------
952 
953 class RibEntryMessage_RibEntry : public ::google::protobuf::Message {
954  public:
955  RibEntryMessage_RibEntry();
956  virtual ~RibEntryMessage_RibEntry();
957 
958  RibEntryMessage_RibEntry(const RibEntryMessage_RibEntry& from);
959 
960  inline RibEntryMessage_RibEntry& operator=(const RibEntryMessage_RibEntry& from) {
961  CopyFrom(from);
962  return *this;
963  }
964 
965  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
966  return _unknown_fields_;
967  }
968 
969  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
970  return &_unknown_fields_;
971  }
972 
973  static const ::google::protobuf::Descriptor* descriptor();
974  static const RibEntryMessage_RibEntry& default_instance();
975 
976  void Swap(RibEntryMessage_RibEntry* other);
977 
978  // implements Message ----------------------------------------------
979 
980  RibEntryMessage_RibEntry* New() const;
981  void CopyFrom(const ::google::protobuf::Message& from);
982  void MergeFrom(const ::google::protobuf::Message& from);
983  void CopyFrom(const RibEntryMessage_RibEntry& from);
984  void MergeFrom(const RibEntryMessage_RibEntry& from);
985  void Clear();
986  bool IsInitialized() const;
987 
988  int ByteSize() const;
989  bool MergePartialFromCodedStream(
990  ::google::protobuf::io::CodedInputStream* input);
991  void SerializeWithCachedSizes(
992  ::google::protobuf::io::CodedOutputStream* output) const;
993  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
994  int GetCachedSize() const { return _cached_size_; }
995  private:
996  void SharedCtor();
997  void SharedDtor();
998  void SetCachedSize(int size) const;
999  public:
1000 
1001  ::google::protobuf::Metadata GetMetadata() const;
1002 
1003  // nested types ----------------------------------------------------
1004 
1005  // accessors -------------------------------------------------------
1006 
1007  // required .ndn_message.RibEntryMessage.Name name = 7;
1008  inline bool has_name() const;
1009  inline void clear_name();
1010  static const int kNameFieldNumber = 7;
1011  inline const ::ndn_message::RibEntryMessage_Name& name() const;
1012  inline ::ndn_message::RibEntryMessage_Name* mutable_name();
1013  inline ::ndn_message::RibEntryMessage_Name* release_name();
1014  inline void set_allocated_name(::ndn_message::RibEntryMessage_Name* name);
1015 
1016  // repeated .ndn_message.RibEntryMessage.Route routes = 129;
1017  inline int routes_size() const;
1018  inline void clear_routes();
1019  static const int kRoutesFieldNumber = 129;
1020  inline const ::ndn_message::RibEntryMessage_Route& routes(int index) const;
1021  inline ::ndn_message::RibEntryMessage_Route* mutable_routes(int index);
1022  inline ::ndn_message::RibEntryMessage_Route* add_routes();
1023  inline const ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_Route >&
1024  routes() const;
1025  inline ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_Route >*
1026  mutable_routes();
1027 
1028  // @@protoc_insertion_point(class_scope:ndn_message.RibEntryMessage.RibEntry)
1029  private:
1030  inline void set_has_name();
1031  inline void clear_has_name();
1032 
1033  ::google::protobuf::UnknownFieldSet _unknown_fields_;
1034 
1037 
1038  mutable int _cached_size_;
1039  ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
1040 
1041  friend void protobuf_AddDesc_rib_2dentry_2eproto();
1042  friend void protobuf_AssignDesc_rib_2dentry_2eproto();
1043  friend void protobuf_ShutdownFile_rib_2dentry_2eproto();
1044 
1045  void InitAsDefaultInstance();
1046  static RibEntryMessage_RibEntry* default_instance_;
1047 };
1048 // -------------------------------------------------------------------
1049 
1050 class RibEntryMessage : public ::google::protobuf::Message {
1051  public:
1052  RibEntryMessage();
1053  virtual ~RibEntryMessage();
1054 
1055  RibEntryMessage(const RibEntryMessage& from);
1056 
1057  inline RibEntryMessage& operator=(const RibEntryMessage& from) {
1058  CopyFrom(from);
1059  return *this;
1060  }
1061 
1062  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1063  return _unknown_fields_;
1064  }
1065 
1066  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1067  return &_unknown_fields_;
1068  }
1069 
1070  static const ::google::protobuf::Descriptor* descriptor();
1071  static const RibEntryMessage& default_instance();
1072 
1073  void Swap(RibEntryMessage* other);
1074 
1075  // implements Message ----------------------------------------------
1076 
1077  RibEntryMessage* New() const;
1078  void CopyFrom(const ::google::protobuf::Message& from);
1079  void MergeFrom(const ::google::protobuf::Message& from);
1080  void CopyFrom(const RibEntryMessage& from);
1081  void MergeFrom(const RibEntryMessage& from);
1082  void Clear();
1083  bool IsInitialized() const;
1084 
1085  int ByteSize() const;
1086  bool MergePartialFromCodedStream(
1087  ::google::protobuf::io::CodedInputStream* input);
1088  void SerializeWithCachedSizes(
1089  ::google::protobuf::io::CodedOutputStream* output) const;
1090  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1091  int GetCachedSize() const { return _cached_size_; }
1092  private:
1093  void SharedCtor();
1094  void SharedDtor();
1095  void SetCachedSize(int size) const;
1096  public:
1097 
1098  ::google::protobuf::Metadata GetMetadata() const;
1099 
1100  // nested types ----------------------------------------------------
1101 
1102  typedef RibEntryMessage_Name Name;
1103  typedef RibEntryMessage_Route Route;
1104  typedef RibEntryMessage_RibEntry RibEntry;
1105 
1106  // accessors -------------------------------------------------------
1107 
1108  // repeated .ndn_message.RibEntryMessage.RibEntry rib_entry = 128;
1109  inline int rib_entry_size() const;
1110  inline void clear_rib_entry();
1111  static const int kRibEntryFieldNumber = 128;
1112  inline const ::ndn_message::RibEntryMessage_RibEntry& rib_entry(int index) const;
1113  inline ::ndn_message::RibEntryMessage_RibEntry* mutable_rib_entry(int index);
1114  inline ::ndn_message::RibEntryMessage_RibEntry* add_rib_entry();
1115  inline const ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_RibEntry >&
1116  rib_entry() const;
1117  inline ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_RibEntry >*
1118  mutable_rib_entry();
1119 
1120  // @@protoc_insertion_point(class_scope:ndn_message.RibEntryMessage)
1121  private:
1122 
1123  ::google::protobuf::UnknownFieldSet _unknown_fields_;
1124 
1126 
1127  mutable int _cached_size_;
1128  ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
1129 
1130  friend void protobuf_AddDesc_rib_2dentry_2eproto();
1131  friend void protobuf_AssignDesc_rib_2dentry_2eproto();
1132  friend void protobuf_ShutdownFile_rib_2dentry_2eproto();
1133 
1134  void InitAsDefaultInstance();
1135  static RibEntryMessage* default_instance_;
1136 };
1137 // ===================================================================
1138 
1139 
1140 // ===================================================================
1141 
1142 // RibEntryMessage_Name
1143 
1144 // repeated bytes component = 8;
1145 inline int RibEntryMessage_Name::component_size() const {
1146  return component_.size();
1147 }
1148 inline void RibEntryMessage_Name::clear_component() {
1149  component_.Clear();
1150 }
1151 inline const ::std::string& RibEntryMessage_Name::component(int index) const {
1152  return component_.Get(index);
1153 }
1154 inline ::std::string* RibEntryMessage_Name::mutable_component(int index) {
1155  return component_.Mutable(index);
1156 }
1157 inline void RibEntryMessage_Name::set_component(int index, const ::std::string& value) {
1158  component_.Mutable(index)->assign(value);
1159 }
1160 inline void RibEntryMessage_Name::set_component(int index, const char* value) {
1161  component_.Mutable(index)->assign(value);
1162 }
1163 inline void RibEntryMessage_Name::set_component(int index, const void* value, size_t size) {
1164  component_.Mutable(index)->assign(
1165  reinterpret_cast<const char*>(value), size);
1166 }
1167 inline ::std::string* RibEntryMessage_Name::add_component() {
1168  return component_.Add();
1169 }
1170 inline void RibEntryMessage_Name::add_component(const ::std::string& value) {
1171  component_.Add()->assign(value);
1172 }
1173 inline void RibEntryMessage_Name::add_component(const char* value) {
1174  component_.Add()->assign(value);
1175 }
1176 inline void RibEntryMessage_Name::add_component(const void* value, size_t size) {
1177  component_.Add()->assign(reinterpret_cast<const char*>(value), size);
1178 }
1179 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
1180 RibEntryMessage_Name::component() const {
1181  return component_;
1182 }
1183 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
1184 RibEntryMessage_Name::mutable_component() {
1185  return &component_;
1186 }
1187 
1188 // -------------------------------------------------------------------
1189 
1190 // RibEntryMessage_Route
1191 
1192 // required uint32 face_id = 105;
1193 inline bool RibEntryMessage_Route::has_face_id() const {
1194  return (_has_bits_[0] & 0x00000001u) != 0;
1195 }
1196 inline void RibEntryMessage_Route::set_has_face_id() {
1197  _has_bits_[0] |= 0x00000001u;
1198 }
1199 inline void RibEntryMessage_Route::clear_has_face_id() {
1200  _has_bits_[0] &= ~0x00000001u;
1201 }
1202 inline void RibEntryMessage_Route::clear_face_id() {
1203  face_id_ = 0u;
1204  clear_has_face_id();
1205 }
1206 inline ::google::protobuf::uint32 RibEntryMessage_Route::face_id() const {
1207  return face_id_;
1208 }
1209 inline void RibEntryMessage_Route::set_face_id(::google::protobuf::uint32 value) {
1210  set_has_face_id();
1211  face_id_ = value;
1212 }
1213 
1214 // required uint32 origin = 111;
1215 inline bool RibEntryMessage_Route::has_origin() const {
1216  return (_has_bits_[0] & 0x00000002u) != 0;
1217 }
1218 inline void RibEntryMessage_Route::set_has_origin() {
1219  _has_bits_[0] |= 0x00000002u;
1220 }
1221 inline void RibEntryMessage_Route::clear_has_origin() {
1222  _has_bits_[0] &= ~0x00000002u;
1223 }
1224 inline void RibEntryMessage_Route::clear_origin() {
1225  origin_ = 0u;
1226  clear_has_origin();
1227 }
1228 inline ::google::protobuf::uint32 RibEntryMessage_Route::origin() const {
1229  return origin_;
1230 }
1231 inline void RibEntryMessage_Route::set_origin(::google::protobuf::uint32 value) {
1232  set_has_origin();
1233  origin_ = value;
1234 }
1235 
1236 // required uint32 cost = 106;
1237 inline bool RibEntryMessage_Route::has_cost() const {
1238  return (_has_bits_[0] & 0x00000004u) != 0;
1239 }
1240 inline void RibEntryMessage_Route::set_has_cost() {
1241  _has_bits_[0] |= 0x00000004u;
1242 }
1243 inline void RibEntryMessage_Route::clear_has_cost() {
1244  _has_bits_[0] &= ~0x00000004u;
1245 }
1246 inline void RibEntryMessage_Route::clear_cost() {
1247  cost_ = 0u;
1248  clear_has_cost();
1249 }
1250 inline ::google::protobuf::uint32 RibEntryMessage_Route::cost() const {
1251  return cost_;
1252 }
1253 inline void RibEntryMessage_Route::set_cost(::google::protobuf::uint32 value) {
1254  set_has_cost();
1255  cost_ = value;
1256 }
1257 
1258 // required uint32 flags = 108;
1259 inline bool RibEntryMessage_Route::has_flags() const {
1260  return (_has_bits_[0] & 0x00000008u) != 0;
1261 }
1262 inline void RibEntryMessage_Route::set_has_flags() {
1263  _has_bits_[0] |= 0x00000008u;
1264 }
1265 inline void RibEntryMessage_Route::clear_has_flags() {
1266  _has_bits_[0] &= ~0x00000008u;
1267 }
1268 inline void RibEntryMessage_Route::clear_flags() {
1269  flags_ = 0u;
1270  clear_has_flags();
1271 }
1272 inline ::google::protobuf::uint32 RibEntryMessage_Route::flags() const {
1273  return flags_;
1274 }
1275 inline void RibEntryMessage_Route::set_flags(::google::protobuf::uint32 value) {
1276  set_has_flags();
1277  flags_ = value;
1278 }
1279 
1280 // optional uint32 expiration_period = 109;
1281 inline bool RibEntryMessage_Route::has_expiration_period() const {
1282  return (_has_bits_[0] & 0x00000010u) != 0;
1283 }
1284 inline void RibEntryMessage_Route::set_has_expiration_period() {
1285  _has_bits_[0] |= 0x00000010u;
1286 }
1287 inline void RibEntryMessage_Route::clear_has_expiration_period() {
1288  _has_bits_[0] &= ~0x00000010u;
1289 }
1290 inline void RibEntryMessage_Route::clear_expiration_period() {
1291  expiration_period_ = 0u;
1292  clear_has_expiration_period();
1293 }
1294 inline ::google::protobuf::uint32 RibEntryMessage_Route::expiration_period() const {
1295  return expiration_period_;
1296 }
1297 inline void RibEntryMessage_Route::set_expiration_period(::google::protobuf::uint32 value) {
1298  set_has_expiration_period();
1299  expiration_period_ = value;
1300 }
1301 
1302 // -------------------------------------------------------------------
1303 
1304 // RibEntryMessage_RibEntry
1305 
1306 // required .ndn_message.RibEntryMessage.Name name = 7;
1307 inline bool RibEntryMessage_RibEntry::has_name() const {
1308  return (_has_bits_[0] & 0x00000001u) != 0;
1309 }
1310 inline void RibEntryMessage_RibEntry::set_has_name() {
1311  _has_bits_[0] |= 0x00000001u;
1312 }
1313 inline void RibEntryMessage_RibEntry::clear_has_name() {
1314  _has_bits_[0] &= ~0x00000001u;
1315 }
1316 inline void RibEntryMessage_RibEntry::clear_name() {
1317  if (name_ != NULL) name_->::ndn_message::RibEntryMessage_Name::Clear();
1318  clear_has_name();
1319 }
1320 inline const ::ndn_message::RibEntryMessage_Name& RibEntryMessage_RibEntry::name() const {
1321  return name_ != NULL ? *name_ : *default_instance_->name_;
1322 }
1323 inline ::ndn_message::RibEntryMessage_Name* RibEntryMessage_RibEntry::mutable_name() {
1324  set_has_name();
1325  if (name_ == NULL) name_ = new ::ndn_message::RibEntryMessage_Name;
1326  return name_;
1327 }
1328 inline ::ndn_message::RibEntryMessage_Name* RibEntryMessage_RibEntry::release_name() {
1329  clear_has_name();
1331  name_ = NULL;
1332  return temp;
1333 }
1334 inline void RibEntryMessage_RibEntry::set_allocated_name(::ndn_message::RibEntryMessage_Name* name) {
1335  delete name_;
1336  name_ = name;
1337  if (name) {
1338  set_has_name();
1339  } else {
1340  clear_has_name();
1341  }
1342 }
1343 
1344 // repeated .ndn_message.RibEntryMessage.Route routes = 129;
1345 inline int RibEntryMessage_RibEntry::routes_size() const {
1346  return routes_.size();
1347 }
1348 inline void RibEntryMessage_RibEntry::clear_routes() {
1349  routes_.Clear();
1350 }
1351 inline const ::ndn_message::RibEntryMessage_Route& RibEntryMessage_RibEntry::routes(int index) const {
1352  return routes_.Get(index);
1353 }
1354 inline ::ndn_message::RibEntryMessage_Route* RibEntryMessage_RibEntry::mutable_routes(int index) {
1355  return routes_.Mutable(index);
1356 }
1357 inline ::ndn_message::RibEntryMessage_Route* RibEntryMessage_RibEntry::add_routes() {
1358  return routes_.Add();
1359 }
1360 inline const ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_Route >&
1361 RibEntryMessage_RibEntry::routes() const {
1362  return routes_;
1363 }
1364 inline ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_Route >*
1365 RibEntryMessage_RibEntry::mutable_routes() {
1366  return &routes_;
1367 }
1368 
1369 // -------------------------------------------------------------------
1370 
1371 // RibEntryMessage
1372 
1373 // repeated .ndn_message.RibEntryMessage.RibEntry rib_entry = 128;
1374 inline int RibEntryMessage::rib_entry_size() const {
1375  return rib_entry_.size();
1376 }
1377 inline void RibEntryMessage::clear_rib_entry() {
1378  rib_entry_.Clear();
1379 }
1380 inline const ::ndn_message::RibEntryMessage_RibEntry& RibEntryMessage::rib_entry(int index) const {
1381  return rib_entry_.Get(index);
1382 }
1383 inline ::ndn_message::RibEntryMessage_RibEntry* RibEntryMessage::mutable_rib_entry(int index) {
1384  return rib_entry_.Mutable(index);
1385 }
1386 inline ::ndn_message::RibEntryMessage_RibEntry* RibEntryMessage::add_rib_entry() {
1387  return rib_entry_.Add();
1388 }
1389 inline const ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_RibEntry >&
1390 RibEntryMessage::rib_entry() const {
1391  return rib_entry_;
1392 }
1393 inline ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_RibEntry >*
1394 RibEntryMessage::mutable_rib_entry() {
1395  return &rib_entry_;
1396 }
1397 
1398 
1399 // @@protoc_insertion_point(namespace_scope)
1400 
1401 } // namespace ndn_message
1402 
1403 #ifndef SWIG
1404 namespace google {
1405 namespace protobuf {
1406 
1407 
1408 } // namespace google
1409 } // namespace protobuf
1410 #endif // SWIG
1411 
1412 // @@protoc_insertion_point(global_scope)
1413 
1414 #endif // GOOGLE_PROTOBUF_VERSION < 2005000
1415 
1416 #endif // PROTOBUF_rib_2dentry_2eproto__INCLUDED
Definition: channel-status.pb.h:32
Definition: rib-entry.pb.h:46
Definition: rib-entry.pb.h:257
Copyright (C) 2014-2015 Regents of the University of California.
Definition: channel-status.pb.h:315
Definition: rib-entry.pb.h:135
Definition: rib-entry.pb.h:353