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 #elif GOOGLE_PROTOBUF_VERSION < 2006000
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 #else // GOOGLE_PROTOBUF_VERSION < 2006000
1415 
1416 #if GOOGLE_PROTOBUF_VERSION < 2006000
1417 #error This file was generated by a newer version of protoc which is
1418 #error incompatible with your Protocol Buffer headers. Please update
1419 #error your headers.
1420 #endif
1421 #if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
1422 #error This file was generated by an older version of protoc which is
1423 #error incompatible with your Protocol Buffer headers. Please
1424 #error regenerate this file with a newer version of protoc.
1425 #endif
1426 
1427 #include <google/protobuf/generated_message_util.h>
1428 #include <google/protobuf/message.h>
1429 #include <google/protobuf/repeated_field.h>
1430 #include <google/protobuf/extension_set.h>
1431 #include <google/protobuf/unknown_field_set.h>
1432 // @@protoc_insertion_point(includes)
1433 
1434 namespace ndn_message {
1435 
1436 // Internal implementation detail -- do not call these.
1437 void protobuf_AddDesc_rib_2dentry_2eproto();
1438 void protobuf_AssignDesc_rib_2dentry_2eproto();
1439 void protobuf_ShutdownFile_rib_2dentry_2eproto();
1440 
1441 class RibEntryMessage;
1442 class RibEntryMessage_Name;
1443 class RibEntryMessage_Route;
1444 class RibEntryMessage_RibEntry;
1445 
1446 // ===================================================================
1447 
1448 class RibEntryMessage_Name : public ::google::protobuf::Message {
1449  public:
1450  RibEntryMessage_Name();
1451  virtual ~RibEntryMessage_Name();
1452 
1453  RibEntryMessage_Name(const RibEntryMessage_Name& from);
1454 
1455  inline RibEntryMessage_Name& operator=(const RibEntryMessage_Name& from) {
1456  CopyFrom(from);
1457  return *this;
1458  }
1459 
1460  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1461  return _unknown_fields_;
1462  }
1463 
1464  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1465  return &_unknown_fields_;
1466  }
1467 
1468  static const ::google::protobuf::Descriptor* descriptor();
1469  static const RibEntryMessage_Name& default_instance();
1470 
1471  void Swap(RibEntryMessage_Name* other);
1472 
1473  // implements Message ----------------------------------------------
1474 
1475  RibEntryMessage_Name* New() const;
1476  void CopyFrom(const ::google::protobuf::Message& from);
1477  void MergeFrom(const ::google::protobuf::Message& from);
1478  void CopyFrom(const RibEntryMessage_Name& from);
1479  void MergeFrom(const RibEntryMessage_Name& from);
1480  void Clear();
1481  bool IsInitialized() const;
1482 
1483  int ByteSize() const;
1484  bool MergePartialFromCodedStream(
1485  ::google::protobuf::io::CodedInputStream* input);
1486  void SerializeWithCachedSizes(
1487  ::google::protobuf::io::CodedOutputStream* output) const;
1488  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1489  int GetCachedSize() const { return _cached_size_; }
1490  private:
1491  void SharedCtor();
1492  void SharedDtor();
1493  void SetCachedSize(int size) const;
1494  public:
1495  ::google::protobuf::Metadata GetMetadata() const;
1496 
1497  // nested types ----------------------------------------------------
1498 
1499  // accessors -------------------------------------------------------
1500 
1501  // repeated bytes component = 8;
1502  inline int component_size() const;
1503  inline void clear_component();
1504  static const int kComponentFieldNumber = 8;
1505  inline const ::std::string& component(int index) const;
1506  inline ::std::string* mutable_component(int index);
1507  inline void set_component(int index, const ::std::string& value);
1508  inline void set_component(int index, const char* value);
1509  inline void set_component(int index, const void* value, size_t size);
1510  inline ::std::string* add_component();
1511  inline void add_component(const ::std::string& value);
1512  inline void add_component(const char* value);
1513  inline void add_component(const void* value, size_t size);
1514  inline const ::google::protobuf::RepeatedPtrField< ::std::string>& component() const;
1515  inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_component();
1516 
1517  // @@protoc_insertion_point(class_scope:ndn_message.RibEntryMessage.Name)
1518  private:
1519 
1520  ::google::protobuf::UnknownFieldSet _unknown_fields_;
1521 
1522  ::google::protobuf::uint32 _has_bits_[1];
1523  mutable int _cached_size_;
1525  friend void protobuf_AddDesc_rib_2dentry_2eproto();
1526  friend void protobuf_AssignDesc_rib_2dentry_2eproto();
1527  friend void protobuf_ShutdownFile_rib_2dentry_2eproto();
1528 
1529  void InitAsDefaultInstance();
1530  static RibEntryMessage_Name* default_instance_;
1531 };
1532 // -------------------------------------------------------------------
1533 
1534 class RibEntryMessage_Route : public ::google::protobuf::Message {
1535  public:
1536  RibEntryMessage_Route();
1537  virtual ~RibEntryMessage_Route();
1538 
1539  RibEntryMessage_Route(const RibEntryMessage_Route& from);
1540 
1541  inline RibEntryMessage_Route& operator=(const RibEntryMessage_Route& from) {
1542  CopyFrom(from);
1543  return *this;
1544  }
1545 
1546  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1547  return _unknown_fields_;
1548  }
1549 
1550  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1551  return &_unknown_fields_;
1552  }
1553 
1554  static const ::google::protobuf::Descriptor* descriptor();
1555  static const RibEntryMessage_Route& default_instance();
1556 
1557  void Swap(RibEntryMessage_Route* other);
1558 
1559  // implements Message ----------------------------------------------
1560 
1561  RibEntryMessage_Route* New() const;
1562  void CopyFrom(const ::google::protobuf::Message& from);
1563  void MergeFrom(const ::google::protobuf::Message& from);
1564  void CopyFrom(const RibEntryMessage_Route& from);
1565  void MergeFrom(const RibEntryMessage_Route& from);
1566  void Clear();
1567  bool IsInitialized() const;
1568 
1569  int ByteSize() const;
1570  bool MergePartialFromCodedStream(
1571  ::google::protobuf::io::CodedInputStream* input);
1572  void SerializeWithCachedSizes(
1573  ::google::protobuf::io::CodedOutputStream* output) const;
1574  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1575  int GetCachedSize() const { return _cached_size_; }
1576  private:
1577  void SharedCtor();
1578  void SharedDtor();
1579  void SetCachedSize(int size) const;
1580  public:
1581  ::google::protobuf::Metadata GetMetadata() const;
1582 
1583  // nested types ----------------------------------------------------
1584 
1585  // accessors -------------------------------------------------------
1586 
1587  // required uint32 face_id = 105;
1588  inline bool has_face_id() const;
1589  inline void clear_face_id();
1590  static const int kFaceIdFieldNumber = 105;
1591  inline ::google::protobuf::uint32 face_id() const;
1592  inline void set_face_id(::google::protobuf::uint32 value);
1593 
1594  // required uint32 origin = 111;
1595  inline bool has_origin() const;
1596  inline void clear_origin();
1597  static const int kOriginFieldNumber = 111;
1598  inline ::google::protobuf::uint32 origin() const;
1599  inline void set_origin(::google::protobuf::uint32 value);
1600 
1601  // required uint32 cost = 106;
1602  inline bool has_cost() const;
1603  inline void clear_cost();
1604  static const int kCostFieldNumber = 106;
1605  inline ::google::protobuf::uint32 cost() const;
1606  inline void set_cost(::google::protobuf::uint32 value);
1607 
1608  // required uint32 flags = 108;
1609  inline bool has_flags() const;
1610  inline void clear_flags();
1611  static const int kFlagsFieldNumber = 108;
1612  inline ::google::protobuf::uint32 flags() const;
1613  inline void set_flags(::google::protobuf::uint32 value);
1614 
1615  // optional uint32 expiration_period = 109;
1616  inline bool has_expiration_period() const;
1617  inline void clear_expiration_period();
1618  static const int kExpirationPeriodFieldNumber = 109;
1619  inline ::google::protobuf::uint32 expiration_period() const;
1620  inline void set_expiration_period(::google::protobuf::uint32 value);
1621 
1622  // @@protoc_insertion_point(class_scope:ndn_message.RibEntryMessage.Route)
1623  private:
1624  inline void set_has_face_id();
1625  inline void clear_has_face_id();
1626  inline void set_has_origin();
1627  inline void clear_has_origin();
1628  inline void set_has_cost();
1629  inline void clear_has_cost();
1630  inline void set_has_flags();
1631  inline void clear_has_flags();
1632  inline void set_has_expiration_period();
1633  inline void clear_has_expiration_period();
1634 
1635  ::google::protobuf::UnknownFieldSet _unknown_fields_;
1636 
1637  ::google::protobuf::uint32 _has_bits_[1];
1638  mutable int _cached_size_;
1639  ::google::protobuf::uint32 face_id_;
1640  ::google::protobuf::uint32 origin_;
1641  ::google::protobuf::uint32 cost_;
1642  ::google::protobuf::uint32 flags_;
1643  ::google::protobuf::uint32 expiration_period_;
1644  friend void protobuf_AddDesc_rib_2dentry_2eproto();
1645  friend void protobuf_AssignDesc_rib_2dentry_2eproto();
1646  friend void protobuf_ShutdownFile_rib_2dentry_2eproto();
1647 
1648  void InitAsDefaultInstance();
1649  static RibEntryMessage_Route* default_instance_;
1650 };
1651 // -------------------------------------------------------------------
1652 
1653 class RibEntryMessage_RibEntry : public ::google::protobuf::Message {
1654  public:
1655  RibEntryMessage_RibEntry();
1656  virtual ~RibEntryMessage_RibEntry();
1657 
1658  RibEntryMessage_RibEntry(const RibEntryMessage_RibEntry& from);
1659 
1660  inline RibEntryMessage_RibEntry& operator=(const RibEntryMessage_RibEntry& from) {
1661  CopyFrom(from);
1662  return *this;
1663  }
1664 
1665  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1666  return _unknown_fields_;
1667  }
1668 
1669  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1670  return &_unknown_fields_;
1671  }
1672 
1673  static const ::google::protobuf::Descriptor* descriptor();
1674  static const RibEntryMessage_RibEntry& default_instance();
1675 
1676  void Swap(RibEntryMessage_RibEntry* other);
1677 
1678  // implements Message ----------------------------------------------
1679 
1680  RibEntryMessage_RibEntry* New() const;
1681  void CopyFrom(const ::google::protobuf::Message& from);
1682  void MergeFrom(const ::google::protobuf::Message& from);
1683  void CopyFrom(const RibEntryMessage_RibEntry& from);
1684  void MergeFrom(const RibEntryMessage_RibEntry& from);
1685  void Clear();
1686  bool IsInitialized() const;
1687 
1688  int ByteSize() const;
1689  bool MergePartialFromCodedStream(
1690  ::google::protobuf::io::CodedInputStream* input);
1691  void SerializeWithCachedSizes(
1692  ::google::protobuf::io::CodedOutputStream* output) const;
1693  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1694  int GetCachedSize() const { return _cached_size_; }
1695  private:
1696  void SharedCtor();
1697  void SharedDtor();
1698  void SetCachedSize(int size) const;
1699  public:
1700  ::google::protobuf::Metadata GetMetadata() const;
1701 
1702  // nested types ----------------------------------------------------
1703 
1704  // accessors -------------------------------------------------------
1705 
1706  // required .ndn_message.RibEntryMessage.Name name = 7;
1707  inline bool has_name() const;
1708  inline void clear_name();
1709  static const int kNameFieldNumber = 7;
1710  inline const ::ndn_message::RibEntryMessage_Name& name() const;
1711  inline ::ndn_message::RibEntryMessage_Name* mutable_name();
1712  inline ::ndn_message::RibEntryMessage_Name* release_name();
1713  inline void set_allocated_name(::ndn_message::RibEntryMessage_Name* name);
1714 
1715  // repeated .ndn_message.RibEntryMessage.Route routes = 129;
1716  inline int routes_size() const;
1717  inline void clear_routes();
1718  static const int kRoutesFieldNumber = 129;
1719  inline const ::ndn_message::RibEntryMessage_Route& routes(int index) const;
1720  inline ::ndn_message::RibEntryMessage_Route* mutable_routes(int index);
1721  inline ::ndn_message::RibEntryMessage_Route* add_routes();
1722  inline const ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_Route >&
1723  routes() const;
1724  inline ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_Route >*
1725  mutable_routes();
1726 
1727  // @@protoc_insertion_point(class_scope:ndn_message.RibEntryMessage.RibEntry)
1728  private:
1729  inline void set_has_name();
1730  inline void clear_has_name();
1731 
1732  ::google::protobuf::UnknownFieldSet _unknown_fields_;
1733 
1734  ::google::protobuf::uint32 _has_bits_[1];
1735  mutable int _cached_size_;
1738  friend void protobuf_AddDesc_rib_2dentry_2eproto();
1739  friend void protobuf_AssignDesc_rib_2dentry_2eproto();
1740  friend void protobuf_ShutdownFile_rib_2dentry_2eproto();
1741 
1742  void InitAsDefaultInstance();
1743  static RibEntryMessage_RibEntry* default_instance_;
1744 };
1745 // -------------------------------------------------------------------
1746 
1747 class RibEntryMessage : public ::google::protobuf::Message {
1748  public:
1749  RibEntryMessage();
1750  virtual ~RibEntryMessage();
1751 
1752  RibEntryMessage(const RibEntryMessage& from);
1753 
1754  inline RibEntryMessage& operator=(const RibEntryMessage& from) {
1755  CopyFrom(from);
1756  return *this;
1757  }
1758 
1759  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1760  return _unknown_fields_;
1761  }
1762 
1763  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1764  return &_unknown_fields_;
1765  }
1766 
1767  static const ::google::protobuf::Descriptor* descriptor();
1768  static const RibEntryMessage& default_instance();
1769 
1770  void Swap(RibEntryMessage* other);
1771 
1772  // implements Message ----------------------------------------------
1773 
1774  RibEntryMessage* New() const;
1775  void CopyFrom(const ::google::protobuf::Message& from);
1776  void MergeFrom(const ::google::protobuf::Message& from);
1777  void CopyFrom(const RibEntryMessage& from);
1778  void MergeFrom(const RibEntryMessage& from);
1779  void Clear();
1780  bool IsInitialized() const;
1781 
1782  int ByteSize() const;
1783  bool MergePartialFromCodedStream(
1784  ::google::protobuf::io::CodedInputStream* input);
1785  void SerializeWithCachedSizes(
1786  ::google::protobuf::io::CodedOutputStream* output) const;
1787  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1788  int GetCachedSize() const { return _cached_size_; }
1789  private:
1790  void SharedCtor();
1791  void SharedDtor();
1792  void SetCachedSize(int size) const;
1793  public:
1794  ::google::protobuf::Metadata GetMetadata() const;
1795 
1796  // nested types ----------------------------------------------------
1797 
1798  typedef RibEntryMessage_Name Name;
1799  typedef RibEntryMessage_Route Route;
1800  typedef RibEntryMessage_RibEntry RibEntry;
1801 
1802  // accessors -------------------------------------------------------
1803 
1804  // repeated .ndn_message.RibEntryMessage.RibEntry rib_entry = 128;
1805  inline int rib_entry_size() const;
1806  inline void clear_rib_entry();
1807  static const int kRibEntryFieldNumber = 128;
1808  inline const ::ndn_message::RibEntryMessage_RibEntry& rib_entry(int index) const;
1809  inline ::ndn_message::RibEntryMessage_RibEntry* mutable_rib_entry(int index);
1810  inline ::ndn_message::RibEntryMessage_RibEntry* add_rib_entry();
1811  inline const ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_RibEntry >&
1812  rib_entry() const;
1813  inline ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_RibEntry >*
1814  mutable_rib_entry();
1815 
1816  // @@protoc_insertion_point(class_scope:ndn_message.RibEntryMessage)
1817  private:
1818 
1819  ::google::protobuf::UnknownFieldSet _unknown_fields_;
1820 
1821  ::google::protobuf::uint32 _has_bits_[1];
1822  mutable int _cached_size_;
1824  friend void protobuf_AddDesc_rib_2dentry_2eproto();
1825  friend void protobuf_AssignDesc_rib_2dentry_2eproto();
1826  friend void protobuf_ShutdownFile_rib_2dentry_2eproto();
1827 
1828  void InitAsDefaultInstance();
1829  static RibEntryMessage* default_instance_;
1830 };
1831 // ===================================================================
1832 
1833 
1834 // ===================================================================
1835 
1836 // RibEntryMessage_Name
1837 
1838 // repeated bytes component = 8;
1839 inline int RibEntryMessage_Name::component_size() const {
1840  return component_.size();
1841 }
1842 inline void RibEntryMessage_Name::clear_component() {
1843  component_.Clear();
1844 }
1845 inline const ::std::string& RibEntryMessage_Name::component(int index) const {
1846  // @@protoc_insertion_point(field_get:ndn_message.RibEntryMessage.Name.component)
1847  return component_.Get(index);
1848 }
1849 inline ::std::string* RibEntryMessage_Name::mutable_component(int index) {
1850  // @@protoc_insertion_point(field_mutable:ndn_message.RibEntryMessage.Name.component)
1851  return component_.Mutable(index);
1852 }
1853 inline void RibEntryMessage_Name::set_component(int index, const ::std::string& value) {
1854  // @@protoc_insertion_point(field_set:ndn_message.RibEntryMessage.Name.component)
1855  component_.Mutable(index)->assign(value);
1856 }
1857 inline void RibEntryMessage_Name::set_component(int index, const char* value) {
1858  component_.Mutable(index)->assign(value);
1859  // @@protoc_insertion_point(field_set_char:ndn_message.RibEntryMessage.Name.component)
1860 }
1861 inline void RibEntryMessage_Name::set_component(int index, const void* value, size_t size) {
1862  component_.Mutable(index)->assign(
1863  reinterpret_cast<const char*>(value), size);
1864  // @@protoc_insertion_point(field_set_pointer:ndn_message.RibEntryMessage.Name.component)
1865 }
1866 inline ::std::string* RibEntryMessage_Name::add_component() {
1867  return component_.Add();
1868 }
1869 inline void RibEntryMessage_Name::add_component(const ::std::string& value) {
1870  component_.Add()->assign(value);
1871  // @@protoc_insertion_point(field_add:ndn_message.RibEntryMessage.Name.component)
1872 }
1873 inline void RibEntryMessage_Name::add_component(const char* value) {
1874  component_.Add()->assign(value);
1875  // @@protoc_insertion_point(field_add_char:ndn_message.RibEntryMessage.Name.component)
1876 }
1877 inline void RibEntryMessage_Name::add_component(const void* value, size_t size) {
1878  component_.Add()->assign(reinterpret_cast<const char*>(value), size);
1879  // @@protoc_insertion_point(field_add_pointer:ndn_message.RibEntryMessage.Name.component)
1880 }
1881 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
1882 RibEntryMessage_Name::component() const {
1883  // @@protoc_insertion_point(field_list:ndn_message.RibEntryMessage.Name.component)
1884  return component_;
1885 }
1886 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
1887 RibEntryMessage_Name::mutable_component() {
1888  // @@protoc_insertion_point(field_mutable_list:ndn_message.RibEntryMessage.Name.component)
1889  return &component_;
1890 }
1891 
1892 // -------------------------------------------------------------------
1893 
1894 // RibEntryMessage_Route
1895 
1896 // required uint32 face_id = 105;
1897 inline bool RibEntryMessage_Route::has_face_id() const {
1898  return (_has_bits_[0] & 0x00000001u) != 0;
1899 }
1900 inline void RibEntryMessage_Route::set_has_face_id() {
1901  _has_bits_[0] |= 0x00000001u;
1902 }
1903 inline void RibEntryMessage_Route::clear_has_face_id() {
1904  _has_bits_[0] &= ~0x00000001u;
1905 }
1906 inline void RibEntryMessage_Route::clear_face_id() {
1907  face_id_ = 0u;
1908  clear_has_face_id();
1909 }
1910 inline ::google::protobuf::uint32 RibEntryMessage_Route::face_id() const {
1911  // @@protoc_insertion_point(field_get:ndn_message.RibEntryMessage.Route.face_id)
1912  return face_id_;
1913 }
1914 inline void RibEntryMessage_Route::set_face_id(::google::protobuf::uint32 value) {
1915  set_has_face_id();
1916  face_id_ = value;
1917  // @@protoc_insertion_point(field_set:ndn_message.RibEntryMessage.Route.face_id)
1918 }
1919 
1920 // required uint32 origin = 111;
1921 inline bool RibEntryMessage_Route::has_origin() const {
1922  return (_has_bits_[0] & 0x00000002u) != 0;
1923 }
1924 inline void RibEntryMessage_Route::set_has_origin() {
1925  _has_bits_[0] |= 0x00000002u;
1926 }
1927 inline void RibEntryMessage_Route::clear_has_origin() {
1928  _has_bits_[0] &= ~0x00000002u;
1929 }
1930 inline void RibEntryMessage_Route::clear_origin() {
1931  origin_ = 0u;
1932  clear_has_origin();
1933 }
1934 inline ::google::protobuf::uint32 RibEntryMessage_Route::origin() const {
1935  // @@protoc_insertion_point(field_get:ndn_message.RibEntryMessage.Route.origin)
1936  return origin_;
1937 }
1938 inline void RibEntryMessage_Route::set_origin(::google::protobuf::uint32 value) {
1939  set_has_origin();
1940  origin_ = value;
1941  // @@protoc_insertion_point(field_set:ndn_message.RibEntryMessage.Route.origin)
1942 }
1943 
1944 // required uint32 cost = 106;
1945 inline bool RibEntryMessage_Route::has_cost() const {
1946  return (_has_bits_[0] & 0x00000004u) != 0;
1947 }
1948 inline void RibEntryMessage_Route::set_has_cost() {
1949  _has_bits_[0] |= 0x00000004u;
1950 }
1951 inline void RibEntryMessage_Route::clear_has_cost() {
1952  _has_bits_[0] &= ~0x00000004u;
1953 }
1954 inline void RibEntryMessage_Route::clear_cost() {
1955  cost_ = 0u;
1956  clear_has_cost();
1957 }
1958 inline ::google::protobuf::uint32 RibEntryMessage_Route::cost() const {
1959  // @@protoc_insertion_point(field_get:ndn_message.RibEntryMessage.Route.cost)
1960  return cost_;
1961 }
1962 inline void RibEntryMessage_Route::set_cost(::google::protobuf::uint32 value) {
1963  set_has_cost();
1964  cost_ = value;
1965  // @@protoc_insertion_point(field_set:ndn_message.RibEntryMessage.Route.cost)
1966 }
1967 
1968 // required uint32 flags = 108;
1969 inline bool RibEntryMessage_Route::has_flags() const {
1970  return (_has_bits_[0] & 0x00000008u) != 0;
1971 }
1972 inline void RibEntryMessage_Route::set_has_flags() {
1973  _has_bits_[0] |= 0x00000008u;
1974 }
1975 inline void RibEntryMessage_Route::clear_has_flags() {
1976  _has_bits_[0] &= ~0x00000008u;
1977 }
1978 inline void RibEntryMessage_Route::clear_flags() {
1979  flags_ = 0u;
1980  clear_has_flags();
1981 }
1982 inline ::google::protobuf::uint32 RibEntryMessage_Route::flags() const {
1983  // @@protoc_insertion_point(field_get:ndn_message.RibEntryMessage.Route.flags)
1984  return flags_;
1985 }
1986 inline void RibEntryMessage_Route::set_flags(::google::protobuf::uint32 value) {
1987  set_has_flags();
1988  flags_ = value;
1989  // @@protoc_insertion_point(field_set:ndn_message.RibEntryMessage.Route.flags)
1990 }
1991 
1992 // optional uint32 expiration_period = 109;
1993 inline bool RibEntryMessage_Route::has_expiration_period() const {
1994  return (_has_bits_[0] & 0x00000010u) != 0;
1995 }
1996 inline void RibEntryMessage_Route::set_has_expiration_period() {
1997  _has_bits_[0] |= 0x00000010u;
1998 }
1999 inline void RibEntryMessage_Route::clear_has_expiration_period() {
2000  _has_bits_[0] &= ~0x00000010u;
2001 }
2002 inline void RibEntryMessage_Route::clear_expiration_period() {
2003  expiration_period_ = 0u;
2004  clear_has_expiration_period();
2005 }
2006 inline ::google::protobuf::uint32 RibEntryMessage_Route::expiration_period() const {
2007  // @@protoc_insertion_point(field_get:ndn_message.RibEntryMessage.Route.expiration_period)
2008  return expiration_period_;
2009 }
2010 inline void RibEntryMessage_Route::set_expiration_period(::google::protobuf::uint32 value) {
2011  set_has_expiration_period();
2012  expiration_period_ = value;
2013  // @@protoc_insertion_point(field_set:ndn_message.RibEntryMessage.Route.expiration_period)
2014 }
2015 
2016 // -------------------------------------------------------------------
2017 
2018 // RibEntryMessage_RibEntry
2019 
2020 // required .ndn_message.RibEntryMessage.Name name = 7;
2021 inline bool RibEntryMessage_RibEntry::has_name() const {
2022  return (_has_bits_[0] & 0x00000001u) != 0;
2023 }
2024 inline void RibEntryMessage_RibEntry::set_has_name() {
2025  _has_bits_[0] |= 0x00000001u;
2026 }
2027 inline void RibEntryMessage_RibEntry::clear_has_name() {
2028  _has_bits_[0] &= ~0x00000001u;
2029 }
2030 inline void RibEntryMessage_RibEntry::clear_name() {
2031  if (name_ != NULL) name_->::ndn_message::RibEntryMessage_Name::Clear();
2032  clear_has_name();
2033 }
2034 inline const ::ndn_message::RibEntryMessage_Name& RibEntryMessage_RibEntry::name() const {
2035  // @@protoc_insertion_point(field_get:ndn_message.RibEntryMessage.RibEntry.name)
2036  return name_ != NULL ? *name_ : *default_instance_->name_;
2037 }
2038 inline ::ndn_message::RibEntryMessage_Name* RibEntryMessage_RibEntry::mutable_name() {
2039  set_has_name();
2040  if (name_ == NULL) name_ = new ::ndn_message::RibEntryMessage_Name;
2041  // @@protoc_insertion_point(field_mutable:ndn_message.RibEntryMessage.RibEntry.name)
2042  return name_;
2043 }
2044 inline ::ndn_message::RibEntryMessage_Name* RibEntryMessage_RibEntry::release_name() {
2045  clear_has_name();
2047  name_ = NULL;
2048  return temp;
2049 }
2050 inline void RibEntryMessage_RibEntry::set_allocated_name(::ndn_message::RibEntryMessage_Name* name) {
2051  delete name_;
2052  name_ = name;
2053  if (name) {
2054  set_has_name();
2055  } else {
2056  clear_has_name();
2057  }
2058  // @@protoc_insertion_point(field_set_allocated:ndn_message.RibEntryMessage.RibEntry.name)
2059 }
2060 
2061 // repeated .ndn_message.RibEntryMessage.Route routes = 129;
2062 inline int RibEntryMessage_RibEntry::routes_size() const {
2063  return routes_.size();
2064 }
2065 inline void RibEntryMessage_RibEntry::clear_routes() {
2066  routes_.Clear();
2067 }
2068 inline const ::ndn_message::RibEntryMessage_Route& RibEntryMessage_RibEntry::routes(int index) const {
2069  // @@protoc_insertion_point(field_get:ndn_message.RibEntryMessage.RibEntry.routes)
2070  return routes_.Get(index);
2071 }
2072 inline ::ndn_message::RibEntryMessage_Route* RibEntryMessage_RibEntry::mutable_routes(int index) {
2073  // @@protoc_insertion_point(field_mutable:ndn_message.RibEntryMessage.RibEntry.routes)
2074  return routes_.Mutable(index);
2075 }
2076 inline ::ndn_message::RibEntryMessage_Route* RibEntryMessage_RibEntry::add_routes() {
2077  // @@protoc_insertion_point(field_add:ndn_message.RibEntryMessage.RibEntry.routes)
2078  return routes_.Add();
2079 }
2080 inline const ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_Route >&
2081 RibEntryMessage_RibEntry::routes() const {
2082  // @@protoc_insertion_point(field_list:ndn_message.RibEntryMessage.RibEntry.routes)
2083  return routes_;
2084 }
2085 inline ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_Route >*
2086 RibEntryMessage_RibEntry::mutable_routes() {
2087  // @@protoc_insertion_point(field_mutable_list:ndn_message.RibEntryMessage.RibEntry.routes)
2088  return &routes_;
2089 }
2090 
2091 // -------------------------------------------------------------------
2092 
2093 // RibEntryMessage
2094 
2095 // repeated .ndn_message.RibEntryMessage.RibEntry rib_entry = 128;
2096 inline int RibEntryMessage::rib_entry_size() const {
2097  return rib_entry_.size();
2098 }
2099 inline void RibEntryMessage::clear_rib_entry() {
2100  rib_entry_.Clear();
2101 }
2102 inline const ::ndn_message::RibEntryMessage_RibEntry& RibEntryMessage::rib_entry(int index) const {
2103  // @@protoc_insertion_point(field_get:ndn_message.RibEntryMessage.rib_entry)
2104  return rib_entry_.Get(index);
2105 }
2106 inline ::ndn_message::RibEntryMessage_RibEntry* RibEntryMessage::mutable_rib_entry(int index) {
2107  // @@protoc_insertion_point(field_mutable:ndn_message.RibEntryMessage.rib_entry)
2108  return rib_entry_.Mutable(index);
2109 }
2110 inline ::ndn_message::RibEntryMessage_RibEntry* RibEntryMessage::add_rib_entry() {
2111  // @@protoc_insertion_point(field_add:ndn_message.RibEntryMessage.rib_entry)
2112  return rib_entry_.Add();
2113 }
2114 inline const ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_RibEntry >&
2115 RibEntryMessage::rib_entry() const {
2116  // @@protoc_insertion_point(field_list:ndn_message.RibEntryMessage.rib_entry)
2117  return rib_entry_;
2118 }
2119 inline ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_RibEntry >*
2120 RibEntryMessage::mutable_rib_entry() {
2121  // @@protoc_insertion_point(field_mutable_list:ndn_message.RibEntryMessage.rib_entry)
2122  return &rib_entry_;
2123 }
2124 
2125 
2126 // @@protoc_insertion_point(namespace_scope)
2127 
2128 } // namespace ndn_message
2129 
2130 #ifndef SWIG
2131 namespace google {
2132 namespace protobuf {
2133 
2134 
2135 } // namespace google
2136 } // namespace protobuf
2137 #endif // SWIG
2138 
2139 // @@protoc_insertion_point(global_scope)
2140 
2141 #endif // GOOGLE_PROTOBUF_VERSION < 2006000
2142 
2143 #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-2016 Regents of the University of California.
Definition: channel-status.pb.h:315
Definition: rib-entry.pb.h:135
Definition: rib-entry.pb.h:353