fib-entry.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: fib-entry.proto
3 
4 #ifndef PROTOBUF_fib_2dentry_2eproto__INCLUDED
5 #define PROTOBUF_fib_2dentry_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 // For backwards compatibility with system that install an older Protobuf (e.g. Ubuntu)),
11 // include the older output from protoc so that the sample program compiles.
12 #if GOOGLE_PROTOBUF_VERSION < 2005000
13 
14 #if GOOGLE_PROTOBUF_VERSION < 2004000
15 #error This file was generated by a newer version of protoc which is
16 #error incompatible with your Protocol Buffer headers. Please update
17 #error your headers.
18 #endif
19 #if 2004001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
20 #error This file was generated by an older version of protoc which is
21 #error incompatible with your Protocol Buffer headers. Please
22 #error regenerate this file with a newer version of protoc.
23 #endif
24 
25 #include <google/protobuf/generated_message_util.h>
26 #include <google/protobuf/repeated_field.h>
27 #include <google/protobuf/extension_set.h>
28 #include <google/protobuf/generated_message_reflection.h>
29 // @@protoc_insertion_point(includes)
30 
31 namespace ndn_message {
32 
33 // Internal implementation detail -- do not call these.
34 void protobuf_AddDesc_fib_2dentry_2eproto();
35 void protobuf_AssignDesc_fib_2dentry_2eproto();
36 void protobuf_ShutdownFile_fib_2dentry_2eproto();
37 
38 class FibEntryMessage;
39 class FibEntryMessage_Name;
40 class FibEntryMessage_NextHopRecord;
41 class FibEntryMessage_FibEntry;
42 
43 // ===================================================================
44 
45 class FibEntryMessage_Name : public ::google::protobuf::Message {
46  public:
48  virtual ~FibEntryMessage_Name();
49 
51 
52  inline FibEntryMessage_Name& operator=(const FibEntryMessage_Name& from) {
53  CopyFrom(from);
54  return *this;
55  }
56 
57  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
58  return _unknown_fields_;
59  }
60 
61  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
62  return &_unknown_fields_;
63  }
64 
65  static const ::google::protobuf::Descriptor* descriptor();
66  static const FibEntryMessage_Name& default_instance();
67 
68  void Swap(FibEntryMessage_Name* other);
69 
70  // implements Message ----------------------------------------------
71 
72  FibEntryMessage_Name* New() const;
73  void CopyFrom(const ::google::protobuf::Message& from);
74  void MergeFrom(const ::google::protobuf::Message& from);
75  void CopyFrom(const FibEntryMessage_Name& from);
76  void MergeFrom(const FibEntryMessage_Name& from);
77  void Clear();
78  bool IsInitialized() const;
79 
80  int ByteSize() const;
81  bool MergePartialFromCodedStream(
82  ::google::protobuf::io::CodedInputStream* input);
83  void SerializeWithCachedSizes(
84  ::google::protobuf::io::CodedOutputStream* output) const;
85  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
86  int GetCachedSize() const { return _cached_size_; }
87  private:
88  void SharedCtor();
89  void SharedDtor();
90  void SetCachedSize(int size) const;
91  public:
92 
93  ::google::protobuf::Metadata GetMetadata() const;
94 
95  // nested types ----------------------------------------------------
96 
97  // accessors -------------------------------------------------------
98 
99  // repeated bytes component = 8;
100  inline int component_size() const;
101  inline void clear_component();
102  static const int kComponentFieldNumber = 8;
103  inline const ::std::string& component(int index) const;
104  inline ::std::string* mutable_component(int index);
105  inline void set_component(int index, const ::std::string& value);
106  inline void set_component(int index, const char* value);
107  inline void set_component(int index, const void* value, size_t size);
108  inline ::std::string* add_component();
109  inline void add_component(const ::std::string& value);
110  inline void add_component(const char* value);
111  inline void add_component(const void* value, size_t size);
112  inline const ::google::protobuf::RepeatedPtrField< ::std::string>& component() const;
113  inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_component();
114 
115  // @@protoc_insertion_point(class_scope:ndn_message.FibEntryMessage.Name)
116  private:
117 
118  ::google::protobuf::UnknownFieldSet _unknown_fields_;
119 
121 
122  mutable int _cached_size_;
123  ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
124 
125  friend void protobuf_AddDesc_fib_2dentry_2eproto();
126  friend void protobuf_AssignDesc_fib_2dentry_2eproto();
127  friend void protobuf_ShutdownFile_fib_2dentry_2eproto();
128 
129  void InitAsDefaultInstance();
130  static FibEntryMessage_Name* default_instance_;
131 };
132 // -------------------------------------------------------------------
133 
134 class FibEntryMessage_NextHopRecord : public ::google::protobuf::Message {
135  public:
138 
140 
141  inline FibEntryMessage_NextHopRecord& operator=(const FibEntryMessage_NextHopRecord& from) {
142  CopyFrom(from);
143  return *this;
144  }
145 
146  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
147  return _unknown_fields_;
148  }
149 
150  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
151  return &_unknown_fields_;
152  }
153 
154  static const ::google::protobuf::Descriptor* descriptor();
155  static const FibEntryMessage_NextHopRecord& default_instance();
156 
157  void Swap(FibEntryMessage_NextHopRecord* other);
158 
159  // implements Message ----------------------------------------------
160 
161  FibEntryMessage_NextHopRecord* New() const;
162  void CopyFrom(const ::google::protobuf::Message& from);
163  void MergeFrom(const ::google::protobuf::Message& from);
164  void CopyFrom(const FibEntryMessage_NextHopRecord& from);
165  void MergeFrom(const FibEntryMessage_NextHopRecord& from);
166  void Clear();
167  bool IsInitialized() const;
168 
169  int ByteSize() const;
170  bool MergePartialFromCodedStream(
171  ::google::protobuf::io::CodedInputStream* input);
172  void SerializeWithCachedSizes(
173  ::google::protobuf::io::CodedOutputStream* output) const;
174  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
175  int GetCachedSize() const { return _cached_size_; }
176  private:
177  void SharedCtor();
178  void SharedDtor();
179  void SetCachedSize(int size) const;
180  public:
181 
182  ::google::protobuf::Metadata GetMetadata() const;
183 
184  // nested types ----------------------------------------------------
185 
186  // accessors -------------------------------------------------------
187 
188  // required uint32 face_id = 105;
189  inline bool has_face_id() const;
190  inline void clear_face_id();
191  static const int kFaceIdFieldNumber = 105;
192  inline ::google::protobuf::uint32 face_id() const;
193  inline void set_face_id(::google::protobuf::uint32 value);
194 
195  // required uint32 cost = 106;
196  inline bool has_cost() const;
197  inline void clear_cost();
198  static const int kCostFieldNumber = 106;
199  inline ::google::protobuf::uint32 cost() const;
200  inline void set_cost(::google::protobuf::uint32 value);
201 
202  // @@protoc_insertion_point(class_scope:ndn_message.FibEntryMessage.NextHopRecord)
203  private:
204  inline void set_has_face_id();
205  inline void clear_has_face_id();
206  inline void set_has_cost();
207  inline void clear_has_cost();
208 
209  ::google::protobuf::UnknownFieldSet _unknown_fields_;
210 
211  ::google::protobuf::uint32 face_id_;
212  ::google::protobuf::uint32 cost_;
213 
214  mutable int _cached_size_;
215  ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
216 
217  friend void protobuf_AddDesc_fib_2dentry_2eproto();
218  friend void protobuf_AssignDesc_fib_2dentry_2eproto();
219  friend void protobuf_ShutdownFile_fib_2dentry_2eproto();
220 
221  void InitAsDefaultInstance();
222  static FibEntryMessage_NextHopRecord* default_instance_;
223 };
224 // -------------------------------------------------------------------
225 
226 class FibEntryMessage_FibEntry : public ::google::protobuf::Message {
227  public:
229  virtual ~FibEntryMessage_FibEntry();
230 
232 
233  inline FibEntryMessage_FibEntry& operator=(const FibEntryMessage_FibEntry& from) {
234  CopyFrom(from);
235  return *this;
236  }
237 
238  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
239  return _unknown_fields_;
240  }
241 
242  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
243  return &_unknown_fields_;
244  }
245 
246  static const ::google::protobuf::Descriptor* descriptor();
247  static const FibEntryMessage_FibEntry& default_instance();
248 
249  void Swap(FibEntryMessage_FibEntry* other);
250 
251  // implements Message ----------------------------------------------
252 
253  FibEntryMessage_FibEntry* New() const;
254  void CopyFrom(const ::google::protobuf::Message& from);
255  void MergeFrom(const ::google::protobuf::Message& from);
256  void CopyFrom(const FibEntryMessage_FibEntry& from);
257  void MergeFrom(const FibEntryMessage_FibEntry& from);
258  void Clear();
259  bool IsInitialized() const;
260 
261  int ByteSize() const;
262  bool MergePartialFromCodedStream(
263  ::google::protobuf::io::CodedInputStream* input);
264  void SerializeWithCachedSizes(
265  ::google::protobuf::io::CodedOutputStream* output) const;
266  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
267  int GetCachedSize() const { return _cached_size_; }
268  private:
269  void SharedCtor();
270  void SharedDtor();
271  void SetCachedSize(int size) const;
272  public:
273 
274  ::google::protobuf::Metadata GetMetadata() const;
275 
276  // nested types ----------------------------------------------------
277 
278  // accessors -------------------------------------------------------
279 
280  // required .ndn_message.FibEntryMessage.Name name = 7;
281  inline bool has_name() const;
282  inline void clear_name();
283  static const int kNameFieldNumber = 7;
284  inline const ::ndn_message::FibEntryMessage_Name& name() const;
285  inline ::ndn_message::FibEntryMessage_Name* mutable_name();
286  inline ::ndn_message::FibEntryMessage_Name* release_name();
287 
288  // repeated .ndn_message.FibEntryMessage.NextHopRecord next_hop_records = 129;
289  inline int next_hop_records_size() const;
290  inline void clear_next_hop_records();
291  static const int kNextHopRecordsFieldNumber = 129;
292  inline const ::ndn_message::FibEntryMessage_NextHopRecord& next_hop_records(int index) const;
293  inline ::ndn_message::FibEntryMessage_NextHopRecord* mutable_next_hop_records(int index);
294  inline ::ndn_message::FibEntryMessage_NextHopRecord* add_next_hop_records();
295  inline const ::google::protobuf::RepeatedPtrField< ::ndn_message::FibEntryMessage_NextHopRecord >&
296  next_hop_records() const;
297  inline ::google::protobuf::RepeatedPtrField< ::ndn_message::FibEntryMessage_NextHopRecord >*
298  mutable_next_hop_records();
299 
300  // @@protoc_insertion_point(class_scope:ndn_message.FibEntryMessage.FibEntry)
301  private:
302  inline void set_has_name();
303  inline void clear_has_name();
304 
305  ::google::protobuf::UnknownFieldSet _unknown_fields_;
306 
309 
310  mutable int _cached_size_;
311  ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
312 
313  friend void protobuf_AddDesc_fib_2dentry_2eproto();
314  friend void protobuf_AssignDesc_fib_2dentry_2eproto();
315  friend void protobuf_ShutdownFile_fib_2dentry_2eproto();
316 
317  void InitAsDefaultInstance();
318  static FibEntryMessage_FibEntry* default_instance_;
319 };
320 // -------------------------------------------------------------------
321 
322 class FibEntryMessage : public ::google::protobuf::Message {
323  public:
324  FibEntryMessage();
325  virtual ~FibEntryMessage();
326 
327  FibEntryMessage(const FibEntryMessage& from);
328 
329  inline FibEntryMessage& operator=(const FibEntryMessage& from) {
330  CopyFrom(from);
331  return *this;
332  }
333 
334  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
335  return _unknown_fields_;
336  }
337 
338  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
339  return &_unknown_fields_;
340  }
341 
342  static const ::google::protobuf::Descriptor* descriptor();
343  static const FibEntryMessage& default_instance();
344 
345  void Swap(FibEntryMessage* other);
346 
347  // implements Message ----------------------------------------------
348 
349  FibEntryMessage* New() const;
350  void CopyFrom(const ::google::protobuf::Message& from);
351  void MergeFrom(const ::google::protobuf::Message& from);
352  void CopyFrom(const FibEntryMessage& from);
353  void MergeFrom(const FibEntryMessage& from);
354  void Clear();
355  bool IsInitialized() const;
356 
357  int ByteSize() const;
358  bool MergePartialFromCodedStream(
359  ::google::protobuf::io::CodedInputStream* input);
360  void SerializeWithCachedSizes(
361  ::google::protobuf::io::CodedOutputStream* output) const;
362  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
363  int GetCachedSize() const { return _cached_size_; }
364  private:
365  void SharedCtor();
366  void SharedDtor();
367  void SetCachedSize(int size) const;
368  public:
369 
370  ::google::protobuf::Metadata GetMetadata() const;
371 
372  // nested types ----------------------------------------------------
373 
374  typedef FibEntryMessage_Name Name;
377 
378  // accessors -------------------------------------------------------
379 
380  // required .ndn_message.FibEntryMessage.FibEntry fib_entry = 128;
381  inline bool has_fib_entry() const;
382  inline void clear_fib_entry();
383  static const int kFibEntryFieldNumber = 128;
384  inline const ::ndn_message::FibEntryMessage_FibEntry& fib_entry() const;
385  inline ::ndn_message::FibEntryMessage_FibEntry* mutable_fib_entry();
386  inline ::ndn_message::FibEntryMessage_FibEntry* release_fib_entry();
387 
388  // @@protoc_insertion_point(class_scope:ndn_message.FibEntryMessage)
389  private:
390  inline void set_has_fib_entry();
391  inline void clear_has_fib_entry();
392 
393  ::google::protobuf::UnknownFieldSet _unknown_fields_;
394 
396 
397  mutable int _cached_size_;
398  ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
399 
400  friend void protobuf_AddDesc_fib_2dentry_2eproto();
401  friend void protobuf_AssignDesc_fib_2dentry_2eproto();
402  friend void protobuf_ShutdownFile_fib_2dentry_2eproto();
403 
404  void InitAsDefaultInstance();
405  static FibEntryMessage* default_instance_;
406 };
407 // ===================================================================
408 
409 
410 // ===================================================================
411 
412 // FibEntryMessage_Name
413 
414 // repeated bytes component = 8;
415 inline int FibEntryMessage_Name::component_size() const {
416  return component_.size();
417 }
418 inline void FibEntryMessage_Name::clear_component() {
419  component_.Clear();
420 }
421 inline const ::std::string& FibEntryMessage_Name::component(int index) const {
422  return component_.Get(index);
423 }
424 inline ::std::string* FibEntryMessage_Name::mutable_component(int index) {
425  return component_.Mutable(index);
426 }
427 inline void FibEntryMessage_Name::set_component(int index, const ::std::string& value) {
428  component_.Mutable(index)->assign(value);
429 }
430 inline void FibEntryMessage_Name::set_component(int index, const char* value) {
431  component_.Mutable(index)->assign(value);
432 }
433 inline void FibEntryMessage_Name::set_component(int index, const void* value, size_t size) {
434  component_.Mutable(index)->assign(
435  reinterpret_cast<const char*>(value), size);
436 }
437 inline ::std::string* FibEntryMessage_Name::add_component() {
438  return component_.Add();
439 }
440 inline void FibEntryMessage_Name::add_component(const ::std::string& value) {
441  component_.Add()->assign(value);
442 }
443 inline void FibEntryMessage_Name::add_component(const char* value) {
444  component_.Add()->assign(value);
445 }
446 inline void FibEntryMessage_Name::add_component(const void* value, size_t size) {
447  component_.Add()->assign(reinterpret_cast<const char*>(value), size);
448 }
449 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
450 FibEntryMessage_Name::component() const {
451  return component_;
452 }
453 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
454 FibEntryMessage_Name::mutable_component() {
455  return &component_;
456 }
457 
458 // -------------------------------------------------------------------
459 
460 // FibEntryMessage_NextHopRecord
461 
462 // required uint32 face_id = 105;
463 inline bool FibEntryMessage_NextHopRecord::has_face_id() const {
464  return (_has_bits_[0] & 0x00000001u) != 0;
465 }
466 inline void FibEntryMessage_NextHopRecord::set_has_face_id() {
467  _has_bits_[0] |= 0x00000001u;
468 }
469 inline void FibEntryMessage_NextHopRecord::clear_has_face_id() {
470  _has_bits_[0] &= ~0x00000001u;
471 }
472 inline void FibEntryMessage_NextHopRecord::clear_face_id() {
473  face_id_ = 0u;
474  clear_has_face_id();
475 }
476 inline ::google::protobuf::uint32 FibEntryMessage_NextHopRecord::face_id() const {
477  return face_id_;
478 }
479 inline void FibEntryMessage_NextHopRecord::set_face_id(::google::protobuf::uint32 value) {
480  set_has_face_id();
481  face_id_ = value;
482 }
483 
484 // required uint32 cost = 106;
485 inline bool FibEntryMessage_NextHopRecord::has_cost() const {
486  return (_has_bits_[0] & 0x00000002u) != 0;
487 }
488 inline void FibEntryMessage_NextHopRecord::set_has_cost() {
489  _has_bits_[0] |= 0x00000002u;
490 }
491 inline void FibEntryMessage_NextHopRecord::clear_has_cost() {
492  _has_bits_[0] &= ~0x00000002u;
493 }
494 inline void FibEntryMessage_NextHopRecord::clear_cost() {
495  cost_ = 0u;
496  clear_has_cost();
497 }
498 inline ::google::protobuf::uint32 FibEntryMessage_NextHopRecord::cost() const {
499  return cost_;
500 }
501 inline void FibEntryMessage_NextHopRecord::set_cost(::google::protobuf::uint32 value) {
502  set_has_cost();
503  cost_ = value;
504 }
505 
506 // -------------------------------------------------------------------
507 
508 // FibEntryMessage_FibEntry
509 
510 // required .ndn_message.FibEntryMessage.Name name = 7;
511 inline bool FibEntryMessage_FibEntry::has_name() const {
512  return (_has_bits_[0] & 0x00000001u) != 0;
513 }
514 inline void FibEntryMessage_FibEntry::set_has_name() {
515  _has_bits_[0] |= 0x00000001u;
516 }
517 inline void FibEntryMessage_FibEntry::clear_has_name() {
518  _has_bits_[0] &= ~0x00000001u;
519 }
520 inline void FibEntryMessage_FibEntry::clear_name() {
521  if (name_ != NULL) name_->::ndn_message::FibEntryMessage_Name::Clear();
522  clear_has_name();
523 }
524 inline const ::ndn_message::FibEntryMessage_Name& FibEntryMessage_FibEntry::name() const {
525  return name_ != NULL ? *name_ : *default_instance_->name_;
526 }
527 inline ::ndn_message::FibEntryMessage_Name* FibEntryMessage_FibEntry::mutable_name() {
528  set_has_name();
529  if (name_ == NULL) name_ = new ::ndn_message::FibEntryMessage_Name;
530  return name_;
531 }
532 inline ::ndn_message::FibEntryMessage_Name* FibEntryMessage_FibEntry::release_name() {
533  clear_has_name();
535  name_ = NULL;
536  return temp;
537 }
538 
539 // repeated .ndn_message.FibEntryMessage.NextHopRecord next_hop_records = 129;
540 inline int FibEntryMessage_FibEntry::next_hop_records_size() const {
541  return next_hop_records_.size();
542 }
543 inline void FibEntryMessage_FibEntry::clear_next_hop_records() {
544  next_hop_records_.Clear();
545 }
546 inline const ::ndn_message::FibEntryMessage_NextHopRecord& FibEntryMessage_FibEntry::next_hop_records(int index) const {
547  return next_hop_records_.Get(index);
548 }
549 inline ::ndn_message::FibEntryMessage_NextHopRecord* FibEntryMessage_FibEntry::mutable_next_hop_records(int index) {
550  return next_hop_records_.Mutable(index);
551 }
552 inline ::ndn_message::FibEntryMessage_NextHopRecord* FibEntryMessage_FibEntry::add_next_hop_records() {
553  return next_hop_records_.Add();
554 }
555 inline const ::google::protobuf::RepeatedPtrField< ::ndn_message::FibEntryMessage_NextHopRecord >&
556 FibEntryMessage_FibEntry::next_hop_records() const {
557  return next_hop_records_;
558 }
559 inline ::google::protobuf::RepeatedPtrField< ::ndn_message::FibEntryMessage_NextHopRecord >*
560 FibEntryMessage_FibEntry::mutable_next_hop_records() {
561  return &next_hop_records_;
562 }
563 
564 // -------------------------------------------------------------------
565 
566 // FibEntryMessage
567 
568 // required .ndn_message.FibEntryMessage.FibEntry fib_entry = 128;
569 inline bool FibEntryMessage::has_fib_entry() const {
570  return (_has_bits_[0] & 0x00000001u) != 0;
571 }
572 inline void FibEntryMessage::set_has_fib_entry() {
573  _has_bits_[0] |= 0x00000001u;
574 }
575 inline void FibEntryMessage::clear_has_fib_entry() {
576  _has_bits_[0] &= ~0x00000001u;
577 }
578 inline void FibEntryMessage::clear_fib_entry() {
579  if (fib_entry_ != NULL) fib_entry_->::ndn_message::FibEntryMessage_FibEntry::Clear();
580  clear_has_fib_entry();
581 }
582 inline const ::ndn_message::FibEntryMessage_FibEntry& FibEntryMessage::fib_entry() const {
583  return fib_entry_ != NULL ? *fib_entry_ : *default_instance_->fib_entry_;
584 }
585 inline ::ndn_message::FibEntryMessage_FibEntry* FibEntryMessage::mutable_fib_entry() {
586  set_has_fib_entry();
587  if (fib_entry_ == NULL) fib_entry_ = new ::ndn_message::FibEntryMessage_FibEntry;
588  return fib_entry_;
589 }
590 inline ::ndn_message::FibEntryMessage_FibEntry* FibEntryMessage::release_fib_entry() {
591  clear_has_fib_entry();
592  ::ndn_message::FibEntryMessage_FibEntry* temp = fib_entry_;
593  fib_entry_ = NULL;
594  return temp;
595 }
596 
597 
598 // @@protoc_insertion_point(namespace_scope)
599 
600 } // namespace ndn_message
601 
602 #ifndef SWIG
603 namespace google {
604 namespace protobuf {
605 
606 
607 } // namespace google
608 } // namespace protobuf
609 #endif // SWIG
610 
611 // @@protoc_insertion_point(global_scope)
612 
613 #elif GOOGLE_PROTOBUF_VERSION < 2006000
614 
615 #if GOOGLE_PROTOBUF_VERSION < 2005000
616 #error This file was generated by a newer version of protoc which is
617 #error incompatible with your Protocol Buffer headers. Please update
618 #error your headers.
619 #endif
620 #if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
621 #error This file was generated by an older version of protoc which is
622 #error incompatible with your Protocol Buffer headers. Please
623 #error regenerate this file with a newer version of protoc.
624 #endif
625 
626 #include <google/protobuf/generated_message_util.h>
627 #include <google/protobuf/message.h>
628 #include <google/protobuf/repeated_field.h>
629 #include <google/protobuf/extension_set.h>
630 #include <google/protobuf/unknown_field_set.h>
631 // @@protoc_insertion_point(includes)
632 
633 namespace ndn_message {
634 
635 // Internal implementation detail -- do not call these.
636 void protobuf_AddDesc_fib_2dentry_2eproto();
637 void protobuf_AssignDesc_fib_2dentry_2eproto();
638 void protobuf_ShutdownFile_fib_2dentry_2eproto();
639 
640 class FibEntryMessage;
641 class FibEntryMessage_Name;
642 class FibEntryMessage_NextHopRecord;
643 class FibEntryMessage_FibEntry;
644 
645 // ===================================================================
646 
647 class FibEntryMessage_Name : public ::google::protobuf::Message {
648  public:
649  FibEntryMessage_Name();
650  virtual ~FibEntryMessage_Name();
651 
652  FibEntryMessage_Name(const FibEntryMessage_Name& from);
653 
654  inline FibEntryMessage_Name& operator=(const FibEntryMessage_Name& from) {
655  CopyFrom(from);
656  return *this;
657  }
658 
659  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
660  return _unknown_fields_;
661  }
662 
663  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
664  return &_unknown_fields_;
665  }
666 
667  static const ::google::protobuf::Descriptor* descriptor();
668  static const FibEntryMessage_Name& default_instance();
669 
670  void Swap(FibEntryMessage_Name* other);
671 
672  // implements Message ----------------------------------------------
673 
674  FibEntryMessage_Name* New() const;
675  void CopyFrom(const ::google::protobuf::Message& from);
676  void MergeFrom(const ::google::protobuf::Message& from);
677  void CopyFrom(const FibEntryMessage_Name& from);
678  void MergeFrom(const FibEntryMessage_Name& from);
679  void Clear();
680  bool IsInitialized() const;
681 
682  int ByteSize() const;
683  bool MergePartialFromCodedStream(
684  ::google::protobuf::io::CodedInputStream* input);
685  void SerializeWithCachedSizes(
686  ::google::protobuf::io::CodedOutputStream* output) const;
687  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
688  int GetCachedSize() const { return _cached_size_; }
689  private:
690  void SharedCtor();
691  void SharedDtor();
692  void SetCachedSize(int size) const;
693  public:
694 
695  ::google::protobuf::Metadata GetMetadata() const;
696 
697  // nested types ----------------------------------------------------
698 
699  // accessors -------------------------------------------------------
700 
701  // repeated bytes component = 8;
702  inline int component_size() const;
703  inline void clear_component();
704  static const int kComponentFieldNumber = 8;
705  inline const ::std::string& component(int index) const;
706  inline ::std::string* mutable_component(int index);
707  inline void set_component(int index, const ::std::string& value);
708  inline void set_component(int index, const char* value);
709  inline void set_component(int index, const void* value, size_t size);
710  inline ::std::string* add_component();
711  inline void add_component(const ::std::string& value);
712  inline void add_component(const char* value);
713  inline void add_component(const void* value, size_t size);
714  inline const ::google::protobuf::RepeatedPtrField< ::std::string>& component() const;
715  inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_component();
716 
717  // @@protoc_insertion_point(class_scope:ndn_message.FibEntryMessage.Name)
718  private:
719 
720  ::google::protobuf::UnknownFieldSet _unknown_fields_;
721 
723 
724  mutable int _cached_size_;
725  ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
726 
727  friend void protobuf_AddDesc_fib_2dentry_2eproto();
728  friend void protobuf_AssignDesc_fib_2dentry_2eproto();
729  friend void protobuf_ShutdownFile_fib_2dentry_2eproto();
730 
731  void InitAsDefaultInstance();
732  static FibEntryMessage_Name* default_instance_;
733 };
734 // -------------------------------------------------------------------
735 
736 class FibEntryMessage_NextHopRecord : public ::google::protobuf::Message {
737  public:
738  FibEntryMessage_NextHopRecord();
739  virtual ~FibEntryMessage_NextHopRecord();
740 
741  FibEntryMessage_NextHopRecord(const FibEntryMessage_NextHopRecord& from);
742 
743  inline FibEntryMessage_NextHopRecord& operator=(const FibEntryMessage_NextHopRecord& from) {
744  CopyFrom(from);
745  return *this;
746  }
747 
748  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
749  return _unknown_fields_;
750  }
751 
752  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
753  return &_unknown_fields_;
754  }
755 
756  static const ::google::protobuf::Descriptor* descriptor();
757  static const FibEntryMessage_NextHopRecord& default_instance();
758 
759  void Swap(FibEntryMessage_NextHopRecord* other);
760 
761  // implements Message ----------------------------------------------
762 
763  FibEntryMessage_NextHopRecord* New() const;
764  void CopyFrom(const ::google::protobuf::Message& from);
765  void MergeFrom(const ::google::protobuf::Message& from);
766  void CopyFrom(const FibEntryMessage_NextHopRecord& from);
767  void MergeFrom(const FibEntryMessage_NextHopRecord& from);
768  void Clear();
769  bool IsInitialized() const;
770 
771  int ByteSize() const;
772  bool MergePartialFromCodedStream(
773  ::google::protobuf::io::CodedInputStream* input);
774  void SerializeWithCachedSizes(
775  ::google::protobuf::io::CodedOutputStream* output) const;
776  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
777  int GetCachedSize() const { return _cached_size_; }
778  private:
779  void SharedCtor();
780  void SharedDtor();
781  void SetCachedSize(int size) const;
782  public:
783 
784  ::google::protobuf::Metadata GetMetadata() const;
785 
786  // nested types ----------------------------------------------------
787 
788  // accessors -------------------------------------------------------
789 
790  // required uint32 face_id = 105;
791  inline bool has_face_id() const;
792  inline void clear_face_id();
793  static const int kFaceIdFieldNumber = 105;
794  inline ::google::protobuf::uint32 face_id() const;
795  inline void set_face_id(::google::protobuf::uint32 value);
796 
797  // required uint32 cost = 106;
798  inline bool has_cost() const;
799  inline void clear_cost();
800  static const int kCostFieldNumber = 106;
801  inline ::google::protobuf::uint32 cost() const;
802  inline void set_cost(::google::protobuf::uint32 value);
803 
804  // @@protoc_insertion_point(class_scope:ndn_message.FibEntryMessage.NextHopRecord)
805  private:
806  inline void set_has_face_id();
807  inline void clear_has_face_id();
808  inline void set_has_cost();
809  inline void clear_has_cost();
810 
811  ::google::protobuf::UnknownFieldSet _unknown_fields_;
812 
813  ::google::protobuf::uint32 face_id_;
814  ::google::protobuf::uint32 cost_;
815 
816  mutable int _cached_size_;
817  ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
818 
819  friend void protobuf_AddDesc_fib_2dentry_2eproto();
820  friend void protobuf_AssignDesc_fib_2dentry_2eproto();
821  friend void protobuf_ShutdownFile_fib_2dentry_2eproto();
822 
823  void InitAsDefaultInstance();
824  static FibEntryMessage_NextHopRecord* default_instance_;
825 };
826 // -------------------------------------------------------------------
827 
828 class FibEntryMessage_FibEntry : public ::google::protobuf::Message {
829  public:
830  FibEntryMessage_FibEntry();
831  virtual ~FibEntryMessage_FibEntry();
832 
833  FibEntryMessage_FibEntry(const FibEntryMessage_FibEntry& from);
834 
835  inline FibEntryMessage_FibEntry& operator=(const FibEntryMessage_FibEntry& from) {
836  CopyFrom(from);
837  return *this;
838  }
839 
840  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
841  return _unknown_fields_;
842  }
843 
844  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
845  return &_unknown_fields_;
846  }
847 
848  static const ::google::protobuf::Descriptor* descriptor();
849  static const FibEntryMessage_FibEntry& default_instance();
850 
851  void Swap(FibEntryMessage_FibEntry* other);
852 
853  // implements Message ----------------------------------------------
854 
855  FibEntryMessage_FibEntry* New() const;
856  void CopyFrom(const ::google::protobuf::Message& from);
857  void MergeFrom(const ::google::protobuf::Message& from);
858  void CopyFrom(const FibEntryMessage_FibEntry& from);
859  void MergeFrom(const FibEntryMessage_FibEntry& from);
860  void Clear();
861  bool IsInitialized() const;
862 
863  int ByteSize() const;
864  bool MergePartialFromCodedStream(
865  ::google::protobuf::io::CodedInputStream* input);
866  void SerializeWithCachedSizes(
867  ::google::protobuf::io::CodedOutputStream* output) const;
868  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
869  int GetCachedSize() const { return _cached_size_; }
870  private:
871  void SharedCtor();
872  void SharedDtor();
873  void SetCachedSize(int size) const;
874  public:
875 
876  ::google::protobuf::Metadata GetMetadata() const;
877 
878  // nested types ----------------------------------------------------
879 
880  // accessors -------------------------------------------------------
881 
882  // required .ndn_message.FibEntryMessage.Name name = 7;
883  inline bool has_name() const;
884  inline void clear_name();
885  static const int kNameFieldNumber = 7;
886  inline const ::ndn_message::FibEntryMessage_Name& name() const;
887  inline ::ndn_message::FibEntryMessage_Name* mutable_name();
888  inline ::ndn_message::FibEntryMessage_Name* release_name();
889  inline void set_allocated_name(::ndn_message::FibEntryMessage_Name* name);
890 
891  // repeated .ndn_message.FibEntryMessage.NextHopRecord next_hop_records = 129;
892  inline int next_hop_records_size() const;
893  inline void clear_next_hop_records();
894  static const int kNextHopRecordsFieldNumber = 129;
895  inline const ::ndn_message::FibEntryMessage_NextHopRecord& next_hop_records(int index) const;
896  inline ::ndn_message::FibEntryMessage_NextHopRecord* mutable_next_hop_records(int index);
897  inline ::ndn_message::FibEntryMessage_NextHopRecord* add_next_hop_records();
898  inline const ::google::protobuf::RepeatedPtrField< ::ndn_message::FibEntryMessage_NextHopRecord >&
899  next_hop_records() const;
900  inline ::google::protobuf::RepeatedPtrField< ::ndn_message::FibEntryMessage_NextHopRecord >*
901  mutable_next_hop_records();
902 
903  // @@protoc_insertion_point(class_scope:ndn_message.FibEntryMessage.FibEntry)
904  private:
905  inline void set_has_name();
906  inline void clear_has_name();
907 
908  ::google::protobuf::UnknownFieldSet _unknown_fields_;
909 
912 
913  mutable int _cached_size_;
914  ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
915 
916  friend void protobuf_AddDesc_fib_2dentry_2eproto();
917  friend void protobuf_AssignDesc_fib_2dentry_2eproto();
918  friend void protobuf_ShutdownFile_fib_2dentry_2eproto();
919 
920  void InitAsDefaultInstance();
921  static FibEntryMessage_FibEntry* default_instance_;
922 };
923 // -------------------------------------------------------------------
924 
925 class FibEntryMessage : public ::google::protobuf::Message {
926  public:
927  FibEntryMessage();
928  virtual ~FibEntryMessage();
929 
930  FibEntryMessage(const FibEntryMessage& from);
931 
932  inline FibEntryMessage& operator=(const FibEntryMessage& from) {
933  CopyFrom(from);
934  return *this;
935  }
936 
937  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
938  return _unknown_fields_;
939  }
940 
941  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
942  return &_unknown_fields_;
943  }
944 
945  static const ::google::protobuf::Descriptor* descriptor();
946  static const FibEntryMessage& default_instance();
947 
948  void Swap(FibEntryMessage* other);
949 
950  // implements Message ----------------------------------------------
951 
952  FibEntryMessage* New() const;
953  void CopyFrom(const ::google::protobuf::Message& from);
954  void MergeFrom(const ::google::protobuf::Message& from);
955  void CopyFrom(const FibEntryMessage& from);
956  void MergeFrom(const FibEntryMessage& from);
957  void Clear();
958  bool IsInitialized() const;
959 
960  int ByteSize() const;
961  bool MergePartialFromCodedStream(
962  ::google::protobuf::io::CodedInputStream* input);
963  void SerializeWithCachedSizes(
964  ::google::protobuf::io::CodedOutputStream* output) const;
965  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
966  int GetCachedSize() const { return _cached_size_; }
967  private:
968  void SharedCtor();
969  void SharedDtor();
970  void SetCachedSize(int size) const;
971  public:
972 
973  ::google::protobuf::Metadata GetMetadata() const;
974 
975  // nested types ----------------------------------------------------
976 
977  typedef FibEntryMessage_Name Name;
978  typedef FibEntryMessage_NextHopRecord NextHopRecord;
979  typedef FibEntryMessage_FibEntry FibEntry;
980 
981  // accessors -------------------------------------------------------
982 
983  // required .ndn_message.FibEntryMessage.FibEntry fib_entry = 128;
984  inline bool has_fib_entry() const;
985  inline void clear_fib_entry();
986  static const int kFibEntryFieldNumber = 128;
987  inline const ::ndn_message::FibEntryMessage_FibEntry& fib_entry() const;
988  inline ::ndn_message::FibEntryMessage_FibEntry* mutable_fib_entry();
989  inline ::ndn_message::FibEntryMessage_FibEntry* release_fib_entry();
990  inline void set_allocated_fib_entry(::ndn_message::FibEntryMessage_FibEntry* fib_entry);
991 
992  // @@protoc_insertion_point(class_scope:ndn_message.FibEntryMessage)
993  private:
994  inline void set_has_fib_entry();
995  inline void clear_has_fib_entry();
996 
997  ::google::protobuf::UnknownFieldSet _unknown_fields_;
998 
1000 
1001  mutable int _cached_size_;
1002  ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
1003 
1004  friend void protobuf_AddDesc_fib_2dentry_2eproto();
1005  friend void protobuf_AssignDesc_fib_2dentry_2eproto();
1006  friend void protobuf_ShutdownFile_fib_2dentry_2eproto();
1007 
1008  void InitAsDefaultInstance();
1009  static FibEntryMessage* default_instance_;
1010 };
1011 // ===================================================================
1012 
1013 
1014 // ===================================================================
1015 
1016 // FibEntryMessage_Name
1017 
1018 // repeated bytes component = 8;
1019 inline int FibEntryMessage_Name::component_size() const {
1020  return component_.size();
1021 }
1022 inline void FibEntryMessage_Name::clear_component() {
1023  component_.Clear();
1024 }
1025 inline const ::std::string& FibEntryMessage_Name::component(int index) const {
1026  return component_.Get(index);
1027 }
1028 inline ::std::string* FibEntryMessage_Name::mutable_component(int index) {
1029  return component_.Mutable(index);
1030 }
1031 inline void FibEntryMessage_Name::set_component(int index, const ::std::string& value) {
1032  component_.Mutable(index)->assign(value);
1033 }
1034 inline void FibEntryMessage_Name::set_component(int index, const char* value) {
1035  component_.Mutable(index)->assign(value);
1036 }
1037 inline void FibEntryMessage_Name::set_component(int index, const void* value, size_t size) {
1038  component_.Mutable(index)->assign(
1039  reinterpret_cast<const char*>(value), size);
1040 }
1041 inline ::std::string* FibEntryMessage_Name::add_component() {
1042  return component_.Add();
1043 }
1044 inline void FibEntryMessage_Name::add_component(const ::std::string& value) {
1045  component_.Add()->assign(value);
1046 }
1047 inline void FibEntryMessage_Name::add_component(const char* value) {
1048  component_.Add()->assign(value);
1049 }
1050 inline void FibEntryMessage_Name::add_component(const void* value, size_t size) {
1051  component_.Add()->assign(reinterpret_cast<const char*>(value), size);
1052 }
1053 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
1054 FibEntryMessage_Name::component() const {
1055  return component_;
1056 }
1057 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
1058 FibEntryMessage_Name::mutable_component() {
1059  return &component_;
1060 }
1061 
1062 // -------------------------------------------------------------------
1063 
1064 // FibEntryMessage_NextHopRecord
1065 
1066 // required uint32 face_id = 105;
1067 inline bool FibEntryMessage_NextHopRecord::has_face_id() const {
1068  return (_has_bits_[0] & 0x00000001u) != 0;
1069 }
1070 inline void FibEntryMessage_NextHopRecord::set_has_face_id() {
1071  _has_bits_[0] |= 0x00000001u;
1072 }
1073 inline void FibEntryMessage_NextHopRecord::clear_has_face_id() {
1074  _has_bits_[0] &= ~0x00000001u;
1075 }
1076 inline void FibEntryMessage_NextHopRecord::clear_face_id() {
1077  face_id_ = 0u;
1078  clear_has_face_id();
1079 }
1080 inline ::google::protobuf::uint32 FibEntryMessage_NextHopRecord::face_id() const {
1081  return face_id_;
1082 }
1083 inline void FibEntryMessage_NextHopRecord::set_face_id(::google::protobuf::uint32 value) {
1084  set_has_face_id();
1085  face_id_ = value;
1086 }
1087 
1088 // required uint32 cost = 106;
1089 inline bool FibEntryMessage_NextHopRecord::has_cost() const {
1090  return (_has_bits_[0] & 0x00000002u) != 0;
1091 }
1092 inline void FibEntryMessage_NextHopRecord::set_has_cost() {
1093  _has_bits_[0] |= 0x00000002u;
1094 }
1095 inline void FibEntryMessage_NextHopRecord::clear_has_cost() {
1096  _has_bits_[0] &= ~0x00000002u;
1097 }
1098 inline void FibEntryMessage_NextHopRecord::clear_cost() {
1099  cost_ = 0u;
1100  clear_has_cost();
1101 }
1102 inline ::google::protobuf::uint32 FibEntryMessage_NextHopRecord::cost() const {
1103  return cost_;
1104 }
1105 inline void FibEntryMessage_NextHopRecord::set_cost(::google::protobuf::uint32 value) {
1106  set_has_cost();
1107  cost_ = value;
1108 }
1109 
1110 // -------------------------------------------------------------------
1111 
1112 // FibEntryMessage_FibEntry
1113 
1114 // required .ndn_message.FibEntryMessage.Name name = 7;
1115 inline bool FibEntryMessage_FibEntry::has_name() const {
1116  return (_has_bits_[0] & 0x00000001u) != 0;
1117 }
1118 inline void FibEntryMessage_FibEntry::set_has_name() {
1119  _has_bits_[0] |= 0x00000001u;
1120 }
1121 inline void FibEntryMessage_FibEntry::clear_has_name() {
1122  _has_bits_[0] &= ~0x00000001u;
1123 }
1124 inline void FibEntryMessage_FibEntry::clear_name() {
1125  if (name_ != NULL) name_->::ndn_message::FibEntryMessage_Name::Clear();
1126  clear_has_name();
1127 }
1128 inline const ::ndn_message::FibEntryMessage_Name& FibEntryMessage_FibEntry::name() const {
1129  return name_ != NULL ? *name_ : *default_instance_->name_;
1130 }
1131 inline ::ndn_message::FibEntryMessage_Name* FibEntryMessage_FibEntry::mutable_name() {
1132  set_has_name();
1133  if (name_ == NULL) name_ = new ::ndn_message::FibEntryMessage_Name;
1134  return name_;
1135 }
1136 inline ::ndn_message::FibEntryMessage_Name* FibEntryMessage_FibEntry::release_name() {
1137  clear_has_name();
1139  name_ = NULL;
1140  return temp;
1141 }
1142 inline void FibEntryMessage_FibEntry::set_allocated_name(::ndn_message::FibEntryMessage_Name* name) {
1143  delete name_;
1144  name_ = name;
1145  if (name) {
1146  set_has_name();
1147  } else {
1148  clear_has_name();
1149  }
1150 }
1151 
1152 // repeated .ndn_message.FibEntryMessage.NextHopRecord next_hop_records = 129;
1153 inline int FibEntryMessage_FibEntry::next_hop_records_size() const {
1154  return next_hop_records_.size();
1155 }
1156 inline void FibEntryMessage_FibEntry::clear_next_hop_records() {
1157  next_hop_records_.Clear();
1158 }
1159 inline const ::ndn_message::FibEntryMessage_NextHopRecord& FibEntryMessage_FibEntry::next_hop_records(int index) const {
1160  return next_hop_records_.Get(index);
1161 }
1162 inline ::ndn_message::FibEntryMessage_NextHopRecord* FibEntryMessage_FibEntry::mutable_next_hop_records(int index) {
1163  return next_hop_records_.Mutable(index);
1164 }
1165 inline ::ndn_message::FibEntryMessage_NextHopRecord* FibEntryMessage_FibEntry::add_next_hop_records() {
1166  return next_hop_records_.Add();
1167 }
1168 inline const ::google::protobuf::RepeatedPtrField< ::ndn_message::FibEntryMessage_NextHopRecord >&
1169 FibEntryMessage_FibEntry::next_hop_records() const {
1170  return next_hop_records_;
1171 }
1172 inline ::google::protobuf::RepeatedPtrField< ::ndn_message::FibEntryMessage_NextHopRecord >*
1173 FibEntryMessage_FibEntry::mutable_next_hop_records() {
1174  return &next_hop_records_;
1175 }
1176 
1177 // -------------------------------------------------------------------
1178 
1179 // FibEntryMessage
1180 
1181 // required .ndn_message.FibEntryMessage.FibEntry fib_entry = 128;
1182 inline bool FibEntryMessage::has_fib_entry() const {
1183  return (_has_bits_[0] & 0x00000001u) != 0;
1184 }
1185 inline void FibEntryMessage::set_has_fib_entry() {
1186  _has_bits_[0] |= 0x00000001u;
1187 }
1188 inline void FibEntryMessage::clear_has_fib_entry() {
1189  _has_bits_[0] &= ~0x00000001u;
1190 }
1191 inline void FibEntryMessage::clear_fib_entry() {
1192  if (fib_entry_ != NULL) fib_entry_->::ndn_message::FibEntryMessage_FibEntry::Clear();
1193  clear_has_fib_entry();
1194 }
1195 inline const ::ndn_message::FibEntryMessage_FibEntry& FibEntryMessage::fib_entry() const {
1196  return fib_entry_ != NULL ? *fib_entry_ : *default_instance_->fib_entry_;
1197 }
1198 inline ::ndn_message::FibEntryMessage_FibEntry* FibEntryMessage::mutable_fib_entry() {
1199  set_has_fib_entry();
1200  if (fib_entry_ == NULL) fib_entry_ = new ::ndn_message::FibEntryMessage_FibEntry;
1201  return fib_entry_;
1202 }
1203 inline ::ndn_message::FibEntryMessage_FibEntry* FibEntryMessage::release_fib_entry() {
1204  clear_has_fib_entry();
1205  ::ndn_message::FibEntryMessage_FibEntry* temp = fib_entry_;
1206  fib_entry_ = NULL;
1207  return temp;
1208 }
1209 inline void FibEntryMessage::set_allocated_fib_entry(::ndn_message::FibEntryMessage_FibEntry* fib_entry) {
1210  delete fib_entry_;
1211  fib_entry_ = fib_entry;
1212  if (fib_entry) {
1213  set_has_fib_entry();
1214  } else {
1215  clear_has_fib_entry();
1216  }
1217 }
1218 
1219 
1220 // @@protoc_insertion_point(namespace_scope)
1221 
1222 } // namespace ndn_message
1223 
1224 #ifndef SWIG
1225 namespace google {
1226 namespace protobuf {
1227 
1228 
1229 } // namespace google
1230 } // namespace protobuf
1231 #endif // SWIG
1232 
1233 // @@protoc_insertion_point(global_scope)
1234 
1235 #elif GOOGLE_PROTOBUF_VERSION < 3000000
1236 
1237 #if GOOGLE_PROTOBUF_VERSION < 2006000
1238 #error This file was generated by a newer version of protoc which is
1239 #error incompatible with your Protocol Buffer headers. Please update
1240 #error your headers.
1241 #endif
1242 #if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
1243 #error This file was generated by an older version of protoc which is
1244 #error incompatible with your Protocol Buffer headers. Please
1245 #error regenerate this file with a newer version of protoc.
1246 #endif
1247 
1248 #include <google/protobuf/generated_message_util.h>
1249 #include <google/protobuf/message.h>
1250 #include <google/protobuf/repeated_field.h>
1251 #include <google/protobuf/extension_set.h>
1252 #include <google/protobuf/unknown_field_set.h>
1253 // @@protoc_insertion_point(includes)
1254 
1255 namespace ndn_message {
1256 
1257 // Internal implementation detail -- do not call these.
1258 void protobuf_AddDesc_fib_2dentry_2eproto();
1259 void protobuf_AssignDesc_fib_2dentry_2eproto();
1260 void protobuf_ShutdownFile_fib_2dentry_2eproto();
1261 
1262 class FibEntryMessage;
1263 class FibEntryMessage_Name;
1264 class FibEntryMessage_NextHopRecord;
1265 class FibEntryMessage_FibEntry;
1266 
1267 // ===================================================================
1268 
1269 class FibEntryMessage_Name : public ::google::protobuf::Message {
1270  public:
1271  FibEntryMessage_Name();
1272  virtual ~FibEntryMessage_Name();
1273 
1274  FibEntryMessage_Name(const FibEntryMessage_Name& from);
1275 
1276  inline FibEntryMessage_Name& operator=(const FibEntryMessage_Name& from) {
1277  CopyFrom(from);
1278  return *this;
1279  }
1280 
1281  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1282  return _unknown_fields_;
1283  }
1284 
1285  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1286  return &_unknown_fields_;
1287  }
1288 
1289  static const ::google::protobuf::Descriptor* descriptor();
1290  static const FibEntryMessage_Name& default_instance();
1291 
1292  void Swap(FibEntryMessage_Name* other);
1293 
1294  // implements Message ----------------------------------------------
1295 
1296  FibEntryMessage_Name* New() const;
1297  void CopyFrom(const ::google::protobuf::Message& from);
1298  void MergeFrom(const ::google::protobuf::Message& from);
1299  void CopyFrom(const FibEntryMessage_Name& from);
1300  void MergeFrom(const FibEntryMessage_Name& from);
1301  void Clear();
1302  bool IsInitialized() const;
1303 
1304  int ByteSize() const;
1305  bool MergePartialFromCodedStream(
1306  ::google::protobuf::io::CodedInputStream* input);
1307  void SerializeWithCachedSizes(
1308  ::google::protobuf::io::CodedOutputStream* output) const;
1309  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1310  int GetCachedSize() const { return _cached_size_; }
1311  private:
1312  void SharedCtor();
1313  void SharedDtor();
1314  void SetCachedSize(int size) const;
1315  public:
1316  ::google::protobuf::Metadata GetMetadata() const;
1317 
1318  // nested types ----------------------------------------------------
1319 
1320  // accessors -------------------------------------------------------
1321 
1322  // repeated bytes component = 8;
1323  inline int component_size() const;
1324  inline void clear_component();
1325  static const int kComponentFieldNumber = 8;
1326  inline const ::std::string& component(int index) const;
1327  inline ::std::string* mutable_component(int index);
1328  inline void set_component(int index, const ::std::string& value);
1329  inline void set_component(int index, const char* value);
1330  inline void set_component(int index, const void* value, size_t size);
1331  inline ::std::string* add_component();
1332  inline void add_component(const ::std::string& value);
1333  inline void add_component(const char* value);
1334  inline void add_component(const void* value, size_t size);
1335  inline const ::google::protobuf::RepeatedPtrField< ::std::string>& component() const;
1336  inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_component();
1337 
1338  // @@protoc_insertion_point(class_scope:ndn_message.FibEntryMessage.Name)
1339  private:
1340 
1341  ::google::protobuf::UnknownFieldSet _unknown_fields_;
1342 
1343  ::google::protobuf::uint32 _has_bits_[1];
1344  mutable int _cached_size_;
1346  friend void protobuf_AddDesc_fib_2dentry_2eproto();
1347  friend void protobuf_AssignDesc_fib_2dentry_2eproto();
1348  friend void protobuf_ShutdownFile_fib_2dentry_2eproto();
1349 
1350  void InitAsDefaultInstance();
1351  static FibEntryMessage_Name* default_instance_;
1352 };
1353 // -------------------------------------------------------------------
1354 
1355 class FibEntryMessage_NextHopRecord : public ::google::protobuf::Message {
1356  public:
1357  FibEntryMessage_NextHopRecord();
1358  virtual ~FibEntryMessage_NextHopRecord();
1359 
1360  FibEntryMessage_NextHopRecord(const FibEntryMessage_NextHopRecord& from);
1361 
1362  inline FibEntryMessage_NextHopRecord& operator=(const FibEntryMessage_NextHopRecord& from) {
1363  CopyFrom(from);
1364  return *this;
1365  }
1366 
1367  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1368  return _unknown_fields_;
1369  }
1370 
1371  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1372  return &_unknown_fields_;
1373  }
1374 
1375  static const ::google::protobuf::Descriptor* descriptor();
1376  static const FibEntryMessage_NextHopRecord& default_instance();
1377 
1378  void Swap(FibEntryMessage_NextHopRecord* other);
1379 
1380  // implements Message ----------------------------------------------
1381 
1382  FibEntryMessage_NextHopRecord* New() const;
1383  void CopyFrom(const ::google::protobuf::Message& from);
1384  void MergeFrom(const ::google::protobuf::Message& from);
1385  void CopyFrom(const FibEntryMessage_NextHopRecord& from);
1386  void MergeFrom(const FibEntryMessage_NextHopRecord& from);
1387  void Clear();
1388  bool IsInitialized() const;
1389 
1390  int ByteSize() const;
1391  bool MergePartialFromCodedStream(
1392  ::google::protobuf::io::CodedInputStream* input);
1393  void SerializeWithCachedSizes(
1394  ::google::protobuf::io::CodedOutputStream* output) const;
1395  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1396  int GetCachedSize() const { return _cached_size_; }
1397  private:
1398  void SharedCtor();
1399  void SharedDtor();
1400  void SetCachedSize(int size) const;
1401  public:
1402  ::google::protobuf::Metadata GetMetadata() const;
1403 
1404  // nested types ----------------------------------------------------
1405 
1406  // accessors -------------------------------------------------------
1407 
1408  // required uint32 face_id = 105;
1409  inline bool has_face_id() const;
1410  inline void clear_face_id();
1411  static const int kFaceIdFieldNumber = 105;
1412  inline ::google::protobuf::uint32 face_id() const;
1413  inline void set_face_id(::google::protobuf::uint32 value);
1414 
1415  // required uint32 cost = 106;
1416  inline bool has_cost() const;
1417  inline void clear_cost();
1418  static const int kCostFieldNumber = 106;
1419  inline ::google::protobuf::uint32 cost() const;
1420  inline void set_cost(::google::protobuf::uint32 value);
1421 
1422  // @@protoc_insertion_point(class_scope:ndn_message.FibEntryMessage.NextHopRecord)
1423  private:
1424  inline void set_has_face_id();
1425  inline void clear_has_face_id();
1426  inline void set_has_cost();
1427  inline void clear_has_cost();
1428 
1429  ::google::protobuf::UnknownFieldSet _unknown_fields_;
1430 
1431  ::google::protobuf::uint32 _has_bits_[1];
1432  mutable int _cached_size_;
1433  ::google::protobuf::uint32 face_id_;
1434  ::google::protobuf::uint32 cost_;
1435  friend void protobuf_AddDesc_fib_2dentry_2eproto();
1436  friend void protobuf_AssignDesc_fib_2dentry_2eproto();
1437  friend void protobuf_ShutdownFile_fib_2dentry_2eproto();
1438 
1439  void InitAsDefaultInstance();
1440  static FibEntryMessage_NextHopRecord* default_instance_;
1441 };
1442 // -------------------------------------------------------------------
1443 
1444 class FibEntryMessage_FibEntry : public ::google::protobuf::Message {
1445  public:
1446  FibEntryMessage_FibEntry();
1447  virtual ~FibEntryMessage_FibEntry();
1448 
1449  FibEntryMessage_FibEntry(const FibEntryMessage_FibEntry& from);
1450 
1451  inline FibEntryMessage_FibEntry& operator=(const FibEntryMessage_FibEntry& from) {
1452  CopyFrom(from);
1453  return *this;
1454  }
1455 
1456  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1457  return _unknown_fields_;
1458  }
1459 
1460  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1461  return &_unknown_fields_;
1462  }
1463 
1464  static const ::google::protobuf::Descriptor* descriptor();
1465  static const FibEntryMessage_FibEntry& default_instance();
1466 
1467  void Swap(FibEntryMessage_FibEntry* other);
1468 
1469  // implements Message ----------------------------------------------
1470 
1471  FibEntryMessage_FibEntry* New() const;
1472  void CopyFrom(const ::google::protobuf::Message& from);
1473  void MergeFrom(const ::google::protobuf::Message& from);
1474  void CopyFrom(const FibEntryMessage_FibEntry& from);
1475  void MergeFrom(const FibEntryMessage_FibEntry& from);
1476  void Clear();
1477  bool IsInitialized() const;
1478 
1479  int ByteSize() const;
1480  bool MergePartialFromCodedStream(
1481  ::google::protobuf::io::CodedInputStream* input);
1482  void SerializeWithCachedSizes(
1483  ::google::protobuf::io::CodedOutputStream* output) const;
1484  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1485  int GetCachedSize() const { return _cached_size_; }
1486  private:
1487  void SharedCtor();
1488  void SharedDtor();
1489  void SetCachedSize(int size) const;
1490  public:
1491  ::google::protobuf::Metadata GetMetadata() const;
1492 
1493  // nested types ----------------------------------------------------
1494 
1495  // accessors -------------------------------------------------------
1496 
1497  // required .ndn_message.FibEntryMessage.Name name = 7;
1498  inline bool has_name() const;
1499  inline void clear_name();
1500  static const int kNameFieldNumber = 7;
1501  inline const ::ndn_message::FibEntryMessage_Name& name() const;
1502  inline ::ndn_message::FibEntryMessage_Name* mutable_name();
1503  inline ::ndn_message::FibEntryMessage_Name* release_name();
1504  inline void set_allocated_name(::ndn_message::FibEntryMessage_Name* name);
1505 
1506  // repeated .ndn_message.FibEntryMessage.NextHopRecord next_hop_records = 129;
1507  inline int next_hop_records_size() const;
1508  inline void clear_next_hop_records();
1509  static const int kNextHopRecordsFieldNumber = 129;
1510  inline const ::ndn_message::FibEntryMessage_NextHopRecord& next_hop_records(int index) const;
1511  inline ::ndn_message::FibEntryMessage_NextHopRecord* mutable_next_hop_records(int index);
1512  inline ::ndn_message::FibEntryMessage_NextHopRecord* add_next_hop_records();
1513  inline const ::google::protobuf::RepeatedPtrField< ::ndn_message::FibEntryMessage_NextHopRecord >&
1514  next_hop_records() const;
1515  inline ::google::protobuf::RepeatedPtrField< ::ndn_message::FibEntryMessage_NextHopRecord >*
1516  mutable_next_hop_records();
1517 
1518  // @@protoc_insertion_point(class_scope:ndn_message.FibEntryMessage.FibEntry)
1519  private:
1520  inline void set_has_name();
1521  inline void clear_has_name();
1522 
1523  ::google::protobuf::UnknownFieldSet _unknown_fields_;
1524 
1525  ::google::protobuf::uint32 _has_bits_[1];
1526  mutable int _cached_size_;
1529  friend void protobuf_AddDesc_fib_2dentry_2eproto();
1530  friend void protobuf_AssignDesc_fib_2dentry_2eproto();
1531  friend void protobuf_ShutdownFile_fib_2dentry_2eproto();
1532 
1533  void InitAsDefaultInstance();
1534  static FibEntryMessage_FibEntry* default_instance_;
1535 };
1536 // -------------------------------------------------------------------
1537 
1538 class FibEntryMessage : public ::google::protobuf::Message {
1539  public:
1540  FibEntryMessage();
1541  virtual ~FibEntryMessage();
1542 
1543  FibEntryMessage(const FibEntryMessage& from);
1544 
1545  inline FibEntryMessage& operator=(const FibEntryMessage& from) {
1546  CopyFrom(from);
1547  return *this;
1548  }
1549 
1550  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1551  return _unknown_fields_;
1552  }
1553 
1554  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1555  return &_unknown_fields_;
1556  }
1557 
1558  static const ::google::protobuf::Descriptor* descriptor();
1559  static const FibEntryMessage& default_instance();
1560 
1561  void Swap(FibEntryMessage* other);
1562 
1563  // implements Message ----------------------------------------------
1564 
1565  FibEntryMessage* New() const;
1566  void CopyFrom(const ::google::protobuf::Message& from);
1567  void MergeFrom(const ::google::protobuf::Message& from);
1568  void CopyFrom(const FibEntryMessage& from);
1569  void MergeFrom(const FibEntryMessage& from);
1570  void Clear();
1571  bool IsInitialized() const;
1572 
1573  int ByteSize() const;
1574  bool MergePartialFromCodedStream(
1575  ::google::protobuf::io::CodedInputStream* input);
1576  void SerializeWithCachedSizes(
1577  ::google::protobuf::io::CodedOutputStream* output) const;
1578  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1579  int GetCachedSize() const { return _cached_size_; }
1580  private:
1581  void SharedCtor();
1582  void SharedDtor();
1583  void SetCachedSize(int size) const;
1584  public:
1585  ::google::protobuf::Metadata GetMetadata() const;
1586 
1587  // nested types ----------------------------------------------------
1588 
1589  typedef FibEntryMessage_Name Name;
1590  typedef FibEntryMessage_NextHopRecord NextHopRecord;
1591  typedef FibEntryMessage_FibEntry FibEntry;
1592 
1593  // accessors -------------------------------------------------------
1594 
1595  // required .ndn_message.FibEntryMessage.FibEntry fib_entry = 128;
1596  inline bool has_fib_entry() const;
1597  inline void clear_fib_entry();
1598  static const int kFibEntryFieldNumber = 128;
1599  inline const ::ndn_message::FibEntryMessage_FibEntry& fib_entry() const;
1600  inline ::ndn_message::FibEntryMessage_FibEntry* mutable_fib_entry();
1601  inline ::ndn_message::FibEntryMessage_FibEntry* release_fib_entry();
1602  inline void set_allocated_fib_entry(::ndn_message::FibEntryMessage_FibEntry* fib_entry);
1603 
1604  // @@protoc_insertion_point(class_scope:ndn_message.FibEntryMessage)
1605  private:
1606  inline void set_has_fib_entry();
1607  inline void clear_has_fib_entry();
1608 
1609  ::google::protobuf::UnknownFieldSet _unknown_fields_;
1610 
1611  ::google::protobuf::uint32 _has_bits_[1];
1612  mutable int _cached_size_;
1614  friend void protobuf_AddDesc_fib_2dentry_2eproto();
1615  friend void protobuf_AssignDesc_fib_2dentry_2eproto();
1616  friend void protobuf_ShutdownFile_fib_2dentry_2eproto();
1617 
1618  void InitAsDefaultInstance();
1619  static FibEntryMessage* default_instance_;
1620 };
1621 // ===================================================================
1622 
1623 
1624 // ===================================================================
1625 
1626 // FibEntryMessage_Name
1627 
1628 // repeated bytes component = 8;
1629 inline int FibEntryMessage_Name::component_size() const {
1630  return component_.size();
1631 }
1632 inline void FibEntryMessage_Name::clear_component() {
1633  component_.Clear();
1634 }
1635 inline const ::std::string& FibEntryMessage_Name::component(int index) const {
1636  // @@protoc_insertion_point(field_get:ndn_message.FibEntryMessage.Name.component)
1637  return component_.Get(index);
1638 }
1639 inline ::std::string* FibEntryMessage_Name::mutable_component(int index) {
1640  // @@protoc_insertion_point(field_mutable:ndn_message.FibEntryMessage.Name.component)
1641  return component_.Mutable(index);
1642 }
1643 inline void FibEntryMessage_Name::set_component(int index, const ::std::string& value) {
1644  // @@protoc_insertion_point(field_set:ndn_message.FibEntryMessage.Name.component)
1645  component_.Mutable(index)->assign(value);
1646 }
1647 inline void FibEntryMessage_Name::set_component(int index, const char* value) {
1648  component_.Mutable(index)->assign(value);
1649  // @@protoc_insertion_point(field_set_char:ndn_message.FibEntryMessage.Name.component)
1650 }
1651 inline void FibEntryMessage_Name::set_component(int index, const void* value, size_t size) {
1652  component_.Mutable(index)->assign(
1653  reinterpret_cast<const char*>(value), size);
1654  // @@protoc_insertion_point(field_set_pointer:ndn_message.FibEntryMessage.Name.component)
1655 }
1656 inline ::std::string* FibEntryMessage_Name::add_component() {
1657  return component_.Add();
1658 }
1659 inline void FibEntryMessage_Name::add_component(const ::std::string& value) {
1660  component_.Add()->assign(value);
1661  // @@protoc_insertion_point(field_add:ndn_message.FibEntryMessage.Name.component)
1662 }
1663 inline void FibEntryMessage_Name::add_component(const char* value) {
1664  component_.Add()->assign(value);
1665  // @@protoc_insertion_point(field_add_char:ndn_message.FibEntryMessage.Name.component)
1666 }
1667 inline void FibEntryMessage_Name::add_component(const void* value, size_t size) {
1668  component_.Add()->assign(reinterpret_cast<const char*>(value), size);
1669  // @@protoc_insertion_point(field_add_pointer:ndn_message.FibEntryMessage.Name.component)
1670 }
1671 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
1672 FibEntryMessage_Name::component() const {
1673  // @@protoc_insertion_point(field_list:ndn_message.FibEntryMessage.Name.component)
1674  return component_;
1675 }
1676 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
1677 FibEntryMessage_Name::mutable_component() {
1678  // @@protoc_insertion_point(field_mutable_list:ndn_message.FibEntryMessage.Name.component)
1679  return &component_;
1680 }
1681 
1682 // -------------------------------------------------------------------
1683 
1684 // FibEntryMessage_NextHopRecord
1685 
1686 // required uint32 face_id = 105;
1687 inline bool FibEntryMessage_NextHopRecord::has_face_id() const {
1688  return (_has_bits_[0] & 0x00000001u) != 0;
1689 }
1690 inline void FibEntryMessage_NextHopRecord::set_has_face_id() {
1691  _has_bits_[0] |= 0x00000001u;
1692 }
1693 inline void FibEntryMessage_NextHopRecord::clear_has_face_id() {
1694  _has_bits_[0] &= ~0x00000001u;
1695 }
1696 inline void FibEntryMessage_NextHopRecord::clear_face_id() {
1697  face_id_ = 0u;
1698  clear_has_face_id();
1699 }
1700 inline ::google::protobuf::uint32 FibEntryMessage_NextHopRecord::face_id() const {
1701  // @@protoc_insertion_point(field_get:ndn_message.FibEntryMessage.NextHopRecord.face_id)
1702  return face_id_;
1703 }
1704 inline void FibEntryMessage_NextHopRecord::set_face_id(::google::protobuf::uint32 value) {
1705  set_has_face_id();
1706  face_id_ = value;
1707  // @@protoc_insertion_point(field_set:ndn_message.FibEntryMessage.NextHopRecord.face_id)
1708 }
1709 
1710 // required uint32 cost = 106;
1711 inline bool FibEntryMessage_NextHopRecord::has_cost() const {
1712  return (_has_bits_[0] & 0x00000002u) != 0;
1713 }
1714 inline void FibEntryMessage_NextHopRecord::set_has_cost() {
1715  _has_bits_[0] |= 0x00000002u;
1716 }
1717 inline void FibEntryMessage_NextHopRecord::clear_has_cost() {
1718  _has_bits_[0] &= ~0x00000002u;
1719 }
1720 inline void FibEntryMessage_NextHopRecord::clear_cost() {
1721  cost_ = 0u;
1722  clear_has_cost();
1723 }
1724 inline ::google::protobuf::uint32 FibEntryMessage_NextHopRecord::cost() const {
1725  // @@protoc_insertion_point(field_get:ndn_message.FibEntryMessage.NextHopRecord.cost)
1726  return cost_;
1727 }
1728 inline void FibEntryMessage_NextHopRecord::set_cost(::google::protobuf::uint32 value) {
1729  set_has_cost();
1730  cost_ = value;
1731  // @@protoc_insertion_point(field_set:ndn_message.FibEntryMessage.NextHopRecord.cost)
1732 }
1733 
1734 // -------------------------------------------------------------------
1735 
1736 // FibEntryMessage_FibEntry
1737 
1738 // required .ndn_message.FibEntryMessage.Name name = 7;
1739 inline bool FibEntryMessage_FibEntry::has_name() const {
1740  return (_has_bits_[0] & 0x00000001u) != 0;
1741 }
1742 inline void FibEntryMessage_FibEntry::set_has_name() {
1743  _has_bits_[0] |= 0x00000001u;
1744 }
1745 inline void FibEntryMessage_FibEntry::clear_has_name() {
1746  _has_bits_[0] &= ~0x00000001u;
1747 }
1748 inline void FibEntryMessage_FibEntry::clear_name() {
1749  if (name_ != NULL) name_->::ndn_message::FibEntryMessage_Name::Clear();
1750  clear_has_name();
1751 }
1752 inline const ::ndn_message::FibEntryMessage_Name& FibEntryMessage_FibEntry::name() const {
1753  // @@protoc_insertion_point(field_get:ndn_message.FibEntryMessage.FibEntry.name)
1754  return name_ != NULL ? *name_ : *default_instance_->name_;
1755 }
1756 inline ::ndn_message::FibEntryMessage_Name* FibEntryMessage_FibEntry::mutable_name() {
1757  set_has_name();
1758  if (name_ == NULL) name_ = new ::ndn_message::FibEntryMessage_Name;
1759  // @@protoc_insertion_point(field_mutable:ndn_message.FibEntryMessage.FibEntry.name)
1760  return name_;
1761 }
1762 inline ::ndn_message::FibEntryMessage_Name* FibEntryMessage_FibEntry::release_name() {
1763  clear_has_name();
1765  name_ = NULL;
1766  return temp;
1767 }
1768 inline void FibEntryMessage_FibEntry::set_allocated_name(::ndn_message::FibEntryMessage_Name* name) {
1769  delete name_;
1770  name_ = name;
1771  if (name) {
1772  set_has_name();
1773  } else {
1774  clear_has_name();
1775  }
1776  // @@protoc_insertion_point(field_set_allocated:ndn_message.FibEntryMessage.FibEntry.name)
1777 }
1778 
1779 // repeated .ndn_message.FibEntryMessage.NextHopRecord next_hop_records = 129;
1780 inline int FibEntryMessage_FibEntry::next_hop_records_size() const {
1781  return next_hop_records_.size();
1782 }
1783 inline void FibEntryMessage_FibEntry::clear_next_hop_records() {
1784  next_hop_records_.Clear();
1785 }
1786 inline const ::ndn_message::FibEntryMessage_NextHopRecord& FibEntryMessage_FibEntry::next_hop_records(int index) const {
1787  // @@protoc_insertion_point(field_get:ndn_message.FibEntryMessage.FibEntry.next_hop_records)
1788  return next_hop_records_.Get(index);
1789 }
1790 inline ::ndn_message::FibEntryMessage_NextHopRecord* FibEntryMessage_FibEntry::mutable_next_hop_records(int index) {
1791  // @@protoc_insertion_point(field_mutable:ndn_message.FibEntryMessage.FibEntry.next_hop_records)
1792  return next_hop_records_.Mutable(index);
1793 }
1794 inline ::ndn_message::FibEntryMessage_NextHopRecord* FibEntryMessage_FibEntry::add_next_hop_records() {
1795  // @@protoc_insertion_point(field_add:ndn_message.FibEntryMessage.FibEntry.next_hop_records)
1796  return next_hop_records_.Add();
1797 }
1798 inline const ::google::protobuf::RepeatedPtrField< ::ndn_message::FibEntryMessage_NextHopRecord >&
1799 FibEntryMessage_FibEntry::next_hop_records() const {
1800  // @@protoc_insertion_point(field_list:ndn_message.FibEntryMessage.FibEntry.next_hop_records)
1801  return next_hop_records_;
1802 }
1803 inline ::google::protobuf::RepeatedPtrField< ::ndn_message::FibEntryMessage_NextHopRecord >*
1804 FibEntryMessage_FibEntry::mutable_next_hop_records() {
1805  // @@protoc_insertion_point(field_mutable_list:ndn_message.FibEntryMessage.FibEntry.next_hop_records)
1806  return &next_hop_records_;
1807 }
1808 
1809 // -------------------------------------------------------------------
1810 
1811 // FibEntryMessage
1812 
1813 // required .ndn_message.FibEntryMessage.FibEntry fib_entry = 128;
1814 inline bool FibEntryMessage::has_fib_entry() const {
1815  return (_has_bits_[0] & 0x00000001u) != 0;
1816 }
1817 inline void FibEntryMessage::set_has_fib_entry() {
1818  _has_bits_[0] |= 0x00000001u;
1819 }
1820 inline void FibEntryMessage::clear_has_fib_entry() {
1821  _has_bits_[0] &= ~0x00000001u;
1822 }
1823 inline void FibEntryMessage::clear_fib_entry() {
1824  if (fib_entry_ != NULL) fib_entry_->::ndn_message::FibEntryMessage_FibEntry::Clear();
1825  clear_has_fib_entry();
1826 }
1827 inline const ::ndn_message::FibEntryMessage_FibEntry& FibEntryMessage::fib_entry() const {
1828  // @@protoc_insertion_point(field_get:ndn_message.FibEntryMessage.fib_entry)
1829  return fib_entry_ != NULL ? *fib_entry_ : *default_instance_->fib_entry_;
1830 }
1831 inline ::ndn_message::FibEntryMessage_FibEntry* FibEntryMessage::mutable_fib_entry() {
1832  set_has_fib_entry();
1833  if (fib_entry_ == NULL) fib_entry_ = new ::ndn_message::FibEntryMessage_FibEntry;
1834  // @@protoc_insertion_point(field_mutable:ndn_message.FibEntryMessage.fib_entry)
1835  return fib_entry_;
1836 }
1837 inline ::ndn_message::FibEntryMessage_FibEntry* FibEntryMessage::release_fib_entry() {
1838  clear_has_fib_entry();
1839  ::ndn_message::FibEntryMessage_FibEntry* temp = fib_entry_;
1840  fib_entry_ = NULL;
1841  return temp;
1842 }
1843 inline void FibEntryMessage::set_allocated_fib_entry(::ndn_message::FibEntryMessage_FibEntry* fib_entry) {
1844  delete fib_entry_;
1845  fib_entry_ = fib_entry;
1846  if (fib_entry) {
1847  set_has_fib_entry();
1848  } else {
1849  clear_has_fib_entry();
1850  }
1851  // @@protoc_insertion_point(field_set_allocated:ndn_message.FibEntryMessage.fib_entry)
1852 }
1853 
1854 
1855 // @@protoc_insertion_point(namespace_scope)
1856 
1857 } // namespace ndn_message
1858 
1859 #ifndef SWIG
1860 namespace google {
1861 namespace protobuf {
1862 
1863 
1864 } // namespace google
1865 } // namespace protobuf
1866 #endif // SWIG
1867 
1868 // @@protoc_insertion_point(global_scope)
1869 
1870 #else // GOOGLE_PROTOBUF_VERSION < 3000000
1871 
1872 #if GOOGLE_PROTOBUF_VERSION < 3000000
1873 #error This file was generated by a newer version of protoc which is
1874 #error incompatible with your Protocol Buffer headers. Please update
1875 #error your headers.
1876 #endif
1877 #if 3000000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
1878 #error This file was generated by an older version of protoc which is
1879 #error incompatible with your Protocol Buffer headers. Please
1880 #error regenerate this file with a newer version of protoc.
1881 #endif
1882 
1883 #include <google/protobuf/arena.h>
1884 #include <google/protobuf/arenastring.h>
1885 #include <google/protobuf/generated_message_util.h>
1886 #include <google/protobuf/metadata.h>
1887 #include <google/protobuf/message.h>
1888 #include <google/protobuf/repeated_field.h>
1889 #include <google/protobuf/extension_set.h>
1890 #include <google/protobuf/unknown_field_set.h>
1891 // @@protoc_insertion_point(includes)
1892 
1893 namespace ndn_message {
1894 
1895 // Internal implementation detail -- do not call these.
1896 void protobuf_AddDesc_fib_2dentry_2eproto();
1897 void protobuf_AssignDesc_fib_2dentry_2eproto();
1898 void protobuf_ShutdownFile_fib_2dentry_2eproto();
1899 
1900 class FibEntryMessage;
1901 class FibEntryMessage_FibEntry;
1902 class FibEntryMessage_Name;
1903 class FibEntryMessage_NextHopRecord;
1904 
1905 // ===================================================================
1906 
1907 class FibEntryMessage_Name : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ndn_message.FibEntryMessage.Name) */ {
1908  public:
1909  FibEntryMessage_Name();
1910  virtual ~FibEntryMessage_Name();
1911 
1912  FibEntryMessage_Name(const FibEntryMessage_Name& from);
1913 
1914  inline FibEntryMessage_Name& operator=(const FibEntryMessage_Name& from) {
1915  CopyFrom(from);
1916  return *this;
1917  }
1918 
1919  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1920  return _internal_metadata_.unknown_fields();
1921  }
1922 
1923  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1924  return _internal_metadata_.mutable_unknown_fields();
1925  }
1926 
1927  static const ::google::protobuf::Descriptor* descriptor();
1928  static const FibEntryMessage_Name& default_instance();
1929 
1930  void Swap(FibEntryMessage_Name* other);
1931 
1932  // implements Message ----------------------------------------------
1933 
1934  inline FibEntryMessage_Name* New() const { return New(NULL); }
1935 
1936  FibEntryMessage_Name* New(::google::protobuf::Arena* arena) const;
1937  void CopyFrom(const ::google::protobuf::Message& from);
1938  void MergeFrom(const ::google::protobuf::Message& from);
1939  void CopyFrom(const FibEntryMessage_Name& from);
1940  void MergeFrom(const FibEntryMessage_Name& from);
1941  void Clear();
1942  bool IsInitialized() const;
1943 
1944  int ByteSize() const;
1945  bool MergePartialFromCodedStream(
1946  ::google::protobuf::io::CodedInputStream* input);
1947  void SerializeWithCachedSizes(
1948  ::google::protobuf::io::CodedOutputStream* output) const;
1949  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
1950  bool deterministic, ::google::protobuf::uint8* output) const;
1951  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
1952  return InternalSerializeWithCachedSizesToArray(false, output);
1953  }
1954  int GetCachedSize() const { return _cached_size_; }
1955  private:
1956  void SharedCtor();
1957  void SharedDtor();
1958  void SetCachedSize(int size) const;
1959  void InternalSwap(FibEntryMessage_Name* other);
1960  private:
1961  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
1962  return _internal_metadata_.arena();
1963  }
1964  inline void* MaybeArenaPtr() const {
1965  return _internal_metadata_.raw_arena_ptr();
1966  }
1967  public:
1968 
1969  ::google::protobuf::Metadata GetMetadata() const;
1970 
1971  // nested types ----------------------------------------------------
1972 
1973  // accessors -------------------------------------------------------
1974 
1975  // repeated bytes component = 8;
1976  int component_size() const;
1977  void clear_component();
1978  static const int kComponentFieldNumber = 8;
1979  const ::std::string& component(int index) const;
1980  ::std::string* mutable_component(int index);
1981  void set_component(int index, const ::std::string& value);
1982  void set_component(int index, const char* value);
1983  void set_component(int index, const void* value, size_t size);
1984  ::std::string* add_component();
1985  void add_component(const ::std::string& value);
1986  void add_component(const char* value);
1987  void add_component(const void* value, size_t size);
1988  const ::google::protobuf::RepeatedPtrField< ::std::string>& component() const;
1990 
1991  // @@protoc_insertion_point(class_scope:ndn_message.FibEntryMessage.Name)
1992  private:
1993 
1994  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1995  ::google::protobuf::uint32 _has_bits_[1];
1996  mutable int _cached_size_;
1998  friend void protobuf_AddDesc_fib_2dentry_2eproto();
1999  friend void protobuf_AssignDesc_fib_2dentry_2eproto();
2000  friend void protobuf_ShutdownFile_fib_2dentry_2eproto();
2001 
2002  void InitAsDefaultInstance();
2003  static FibEntryMessage_Name* default_instance_;
2004 };
2005 // -------------------------------------------------------------------
2006 
2007 class FibEntryMessage_NextHopRecord : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ndn_message.FibEntryMessage.NextHopRecord) */ {
2008  public:
2009  FibEntryMessage_NextHopRecord();
2010  virtual ~FibEntryMessage_NextHopRecord();
2011 
2012  FibEntryMessage_NextHopRecord(const FibEntryMessage_NextHopRecord& from);
2013 
2014  inline FibEntryMessage_NextHopRecord& operator=(const FibEntryMessage_NextHopRecord& from) {
2015  CopyFrom(from);
2016  return *this;
2017  }
2018 
2019  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
2020  return _internal_metadata_.unknown_fields();
2021  }
2022 
2023  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
2024  return _internal_metadata_.mutable_unknown_fields();
2025  }
2026 
2027  static const ::google::protobuf::Descriptor* descriptor();
2028  static const FibEntryMessage_NextHopRecord& default_instance();
2029 
2030  void Swap(FibEntryMessage_NextHopRecord* other);
2031 
2032  // implements Message ----------------------------------------------
2033 
2034  inline FibEntryMessage_NextHopRecord* New() const { return New(NULL); }
2035 
2036  FibEntryMessage_NextHopRecord* New(::google::protobuf::Arena* arena) const;
2037  void CopyFrom(const ::google::protobuf::Message& from);
2038  void MergeFrom(const ::google::protobuf::Message& from);
2039  void CopyFrom(const FibEntryMessage_NextHopRecord& from);
2040  void MergeFrom(const FibEntryMessage_NextHopRecord& from);
2041  void Clear();
2042  bool IsInitialized() const;
2043 
2044  int ByteSize() const;
2045  bool MergePartialFromCodedStream(
2046  ::google::protobuf::io::CodedInputStream* input);
2047  void SerializeWithCachedSizes(
2048  ::google::protobuf::io::CodedOutputStream* output) const;
2049  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
2050  bool deterministic, ::google::protobuf::uint8* output) const;
2051  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
2052  return InternalSerializeWithCachedSizesToArray(false, output);
2053  }
2054  int GetCachedSize() const { return _cached_size_; }
2055  private:
2056  void SharedCtor();
2057  void SharedDtor();
2058  void SetCachedSize(int size) const;
2059  void InternalSwap(FibEntryMessage_NextHopRecord* other);
2060  private:
2061  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
2062  return _internal_metadata_.arena();
2063  }
2064  inline void* MaybeArenaPtr() const {
2065  return _internal_metadata_.raw_arena_ptr();
2066  }
2067  public:
2068 
2069  ::google::protobuf::Metadata GetMetadata() const;
2070 
2071  // nested types ----------------------------------------------------
2072 
2073  // accessors -------------------------------------------------------
2074 
2075  // required uint32 face_id = 105;
2076  bool has_face_id() const;
2077  void clear_face_id();
2078  static const int kFaceIdFieldNumber = 105;
2079  ::google::protobuf::uint32 face_id() const;
2080  void set_face_id(::google::protobuf::uint32 value);
2081 
2082  // required uint32 cost = 106;
2083  bool has_cost() const;
2084  void clear_cost();
2085  static const int kCostFieldNumber = 106;
2086  ::google::protobuf::uint32 cost() const;
2087  void set_cost(::google::protobuf::uint32 value);
2088 
2089  // @@protoc_insertion_point(class_scope:ndn_message.FibEntryMessage.NextHopRecord)
2090  private:
2091  inline void set_has_face_id();
2092  inline void clear_has_face_id();
2093  inline void set_has_cost();
2094  inline void clear_has_cost();
2095 
2096  // helper for ByteSize()
2097  int RequiredFieldsByteSizeFallback() const;
2098 
2099  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
2100  ::google::protobuf::uint32 _has_bits_[1];
2101  mutable int _cached_size_;
2102  ::google::protobuf::uint32 face_id_;
2103  ::google::protobuf::uint32 cost_;
2104  friend void protobuf_AddDesc_fib_2dentry_2eproto();
2105  friend void protobuf_AssignDesc_fib_2dentry_2eproto();
2106  friend void protobuf_ShutdownFile_fib_2dentry_2eproto();
2107 
2108  void InitAsDefaultInstance();
2109  static FibEntryMessage_NextHopRecord* default_instance_;
2110 };
2111 // -------------------------------------------------------------------
2112 
2113 class FibEntryMessage_FibEntry : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ndn_message.FibEntryMessage.FibEntry) */ {
2114  public:
2115  FibEntryMessage_FibEntry();
2116  virtual ~FibEntryMessage_FibEntry();
2117 
2118  FibEntryMessage_FibEntry(const FibEntryMessage_FibEntry& from);
2119 
2120  inline FibEntryMessage_FibEntry& operator=(const FibEntryMessage_FibEntry& from) {
2121  CopyFrom(from);
2122  return *this;
2123  }
2124 
2125  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
2126  return _internal_metadata_.unknown_fields();
2127  }
2128 
2129  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
2130  return _internal_metadata_.mutable_unknown_fields();
2131  }
2132 
2133  static const ::google::protobuf::Descriptor* descriptor();
2134  static const FibEntryMessage_FibEntry& default_instance();
2135 
2136  void Swap(FibEntryMessage_FibEntry* other);
2137 
2138  // implements Message ----------------------------------------------
2139 
2140  inline FibEntryMessage_FibEntry* New() const { return New(NULL); }
2141 
2142  FibEntryMessage_FibEntry* New(::google::protobuf::Arena* arena) const;
2143  void CopyFrom(const ::google::protobuf::Message& from);
2144  void MergeFrom(const ::google::protobuf::Message& from);
2145  void CopyFrom(const FibEntryMessage_FibEntry& from);
2146  void MergeFrom(const FibEntryMessage_FibEntry& from);
2147  void Clear();
2148  bool IsInitialized() const;
2149 
2150  int ByteSize() const;
2151  bool MergePartialFromCodedStream(
2152  ::google::protobuf::io::CodedInputStream* input);
2153  void SerializeWithCachedSizes(
2154  ::google::protobuf::io::CodedOutputStream* output) const;
2155  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
2156  bool deterministic, ::google::protobuf::uint8* output) const;
2157  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
2158  return InternalSerializeWithCachedSizesToArray(false, output);
2159  }
2160  int GetCachedSize() const { return _cached_size_; }
2161  private:
2162  void SharedCtor();
2163  void SharedDtor();
2164  void SetCachedSize(int size) const;
2165  void InternalSwap(FibEntryMessage_FibEntry* other);
2166  private:
2167  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
2168  return _internal_metadata_.arena();
2169  }
2170  inline void* MaybeArenaPtr() const {
2171  return _internal_metadata_.raw_arena_ptr();
2172  }
2173  public:
2174 
2175  ::google::protobuf::Metadata GetMetadata() const;
2176 
2177  // nested types ----------------------------------------------------
2178 
2179  // accessors -------------------------------------------------------
2180 
2181  // required .ndn_message.FibEntryMessage.Name name = 7;
2182  bool has_name() const;
2183  void clear_name();
2184  static const int kNameFieldNumber = 7;
2185  const ::ndn_message::FibEntryMessage_Name& name() const;
2186  ::ndn_message::FibEntryMessage_Name* mutable_name();
2187  ::ndn_message::FibEntryMessage_Name* release_name();
2188  void set_allocated_name(::ndn_message::FibEntryMessage_Name* name);
2189 
2190  // repeated .ndn_message.FibEntryMessage.NextHopRecord next_hop_records = 129;
2191  int next_hop_records_size() const;
2192  void clear_next_hop_records();
2193  static const int kNextHopRecordsFieldNumber = 129;
2194  const ::ndn_message::FibEntryMessage_NextHopRecord& next_hop_records(int index) const;
2195  ::ndn_message::FibEntryMessage_NextHopRecord* mutable_next_hop_records(int index);
2196  ::ndn_message::FibEntryMessage_NextHopRecord* add_next_hop_records();
2198  mutable_next_hop_records();
2199  const ::google::protobuf::RepeatedPtrField< ::ndn_message::FibEntryMessage_NextHopRecord >&
2200  next_hop_records() const;
2201 
2202  // @@protoc_insertion_point(class_scope:ndn_message.FibEntryMessage.FibEntry)
2203  private:
2204  inline void set_has_name();
2205  inline void clear_has_name();
2206 
2207  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
2208  ::google::protobuf::uint32 _has_bits_[1];
2209  mutable int _cached_size_;
2212  friend void protobuf_AddDesc_fib_2dentry_2eproto();
2213  friend void protobuf_AssignDesc_fib_2dentry_2eproto();
2214  friend void protobuf_ShutdownFile_fib_2dentry_2eproto();
2215 
2216  void InitAsDefaultInstance();
2217  static FibEntryMessage_FibEntry* default_instance_;
2218 };
2219 // -------------------------------------------------------------------
2220 
2221 class FibEntryMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ndn_message.FibEntryMessage) */ {
2222  public:
2223  FibEntryMessage();
2224  virtual ~FibEntryMessage();
2225 
2226  FibEntryMessage(const FibEntryMessage& from);
2227 
2228  inline FibEntryMessage& operator=(const FibEntryMessage& from) {
2229  CopyFrom(from);
2230  return *this;
2231  }
2232 
2233  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
2234  return _internal_metadata_.unknown_fields();
2235  }
2236 
2237  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
2238  return _internal_metadata_.mutable_unknown_fields();
2239  }
2240 
2241  static const ::google::protobuf::Descriptor* descriptor();
2242  static const FibEntryMessage& default_instance();
2243 
2244  void Swap(FibEntryMessage* other);
2245 
2246  // implements Message ----------------------------------------------
2247 
2248  inline FibEntryMessage* New() const { return New(NULL); }
2249 
2250  FibEntryMessage* New(::google::protobuf::Arena* arena) const;
2251  void CopyFrom(const ::google::protobuf::Message& from);
2252  void MergeFrom(const ::google::protobuf::Message& from);
2253  void CopyFrom(const FibEntryMessage& from);
2254  void MergeFrom(const FibEntryMessage& from);
2255  void Clear();
2256  bool IsInitialized() const;
2257 
2258  int ByteSize() const;
2259  bool MergePartialFromCodedStream(
2260  ::google::protobuf::io::CodedInputStream* input);
2261  void SerializeWithCachedSizes(
2262  ::google::protobuf::io::CodedOutputStream* output) const;
2263  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
2264  bool deterministic, ::google::protobuf::uint8* output) const;
2265  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
2266  return InternalSerializeWithCachedSizesToArray(false, output);
2267  }
2268  int GetCachedSize() const { return _cached_size_; }
2269  private:
2270  void SharedCtor();
2271  void SharedDtor();
2272  void SetCachedSize(int size) const;
2273  void InternalSwap(FibEntryMessage* other);
2274  private:
2275  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
2276  return _internal_metadata_.arena();
2277  }
2278  inline void* MaybeArenaPtr() const {
2279  return _internal_metadata_.raw_arena_ptr();
2280  }
2281  public:
2282 
2283  ::google::protobuf::Metadata GetMetadata() const;
2284 
2285  // nested types ----------------------------------------------------
2286 
2287  typedef FibEntryMessage_Name Name;
2288  typedef FibEntryMessage_NextHopRecord NextHopRecord;
2289  typedef FibEntryMessage_FibEntry FibEntry;
2290 
2291  // accessors -------------------------------------------------------
2292 
2293  // required .ndn_message.FibEntryMessage.FibEntry fib_entry = 128;
2294  bool has_fib_entry() const;
2295  void clear_fib_entry();
2296  static const int kFibEntryFieldNumber = 128;
2297  const ::ndn_message::FibEntryMessage_FibEntry& fib_entry() const;
2298  ::ndn_message::FibEntryMessage_FibEntry* mutable_fib_entry();
2299  ::ndn_message::FibEntryMessage_FibEntry* release_fib_entry();
2300  void set_allocated_fib_entry(::ndn_message::FibEntryMessage_FibEntry* fib_entry);
2301 
2302  // @@protoc_insertion_point(class_scope:ndn_message.FibEntryMessage)
2303  private:
2304  inline void set_has_fib_entry();
2305  inline void clear_has_fib_entry();
2306 
2307  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
2308  ::google::protobuf::uint32 _has_bits_[1];
2309  mutable int _cached_size_;
2311  friend void protobuf_AddDesc_fib_2dentry_2eproto();
2312  friend void protobuf_AssignDesc_fib_2dentry_2eproto();
2313  friend void protobuf_ShutdownFile_fib_2dentry_2eproto();
2314 
2315  void InitAsDefaultInstance();
2316  static FibEntryMessage* default_instance_;
2317 };
2318 // ===================================================================
2319 
2320 
2321 // ===================================================================
2322 
2323 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
2324 // FibEntryMessage_Name
2325 
2326 // repeated bytes component = 8;
2327 inline int FibEntryMessage_Name::component_size() const {
2328  return component_.size();
2329 }
2330 inline void FibEntryMessage_Name::clear_component() {
2331  component_.Clear();
2332 }
2333 inline const ::std::string& FibEntryMessage_Name::component(int index) const {
2334  // @@protoc_insertion_point(field_get:ndn_message.FibEntryMessage.Name.component)
2335  return component_.Get(index);
2336 }
2337 inline ::std::string* FibEntryMessage_Name::mutable_component(int index) {
2338  // @@protoc_insertion_point(field_mutable:ndn_message.FibEntryMessage.Name.component)
2339  return component_.Mutable(index);
2340 }
2341 inline void FibEntryMessage_Name::set_component(int index, const ::std::string& value) {
2342  // @@protoc_insertion_point(field_set:ndn_message.FibEntryMessage.Name.component)
2343  component_.Mutable(index)->assign(value);
2344 }
2345 inline void FibEntryMessage_Name::set_component(int index, const char* value) {
2346  component_.Mutable(index)->assign(value);
2347  // @@protoc_insertion_point(field_set_char:ndn_message.FibEntryMessage.Name.component)
2348 }
2349 inline void FibEntryMessage_Name::set_component(int index, const void* value, size_t size) {
2350  component_.Mutable(index)->assign(
2351  reinterpret_cast<const char*>(value), size);
2352  // @@protoc_insertion_point(field_set_pointer:ndn_message.FibEntryMessage.Name.component)
2353 }
2354 inline ::std::string* FibEntryMessage_Name::add_component() {
2355  // @@protoc_insertion_point(field_add_mutable:ndn_message.FibEntryMessage.Name.component)
2356  return component_.Add();
2357 }
2358 inline void FibEntryMessage_Name::add_component(const ::std::string& value) {
2359  component_.Add()->assign(value);
2360  // @@protoc_insertion_point(field_add:ndn_message.FibEntryMessage.Name.component)
2361 }
2362 inline void FibEntryMessage_Name::add_component(const char* value) {
2363  component_.Add()->assign(value);
2364  // @@protoc_insertion_point(field_add_char:ndn_message.FibEntryMessage.Name.component)
2365 }
2366 inline void FibEntryMessage_Name::add_component(const void* value, size_t size) {
2367  component_.Add()->assign(reinterpret_cast<const char*>(value), size);
2368  // @@protoc_insertion_point(field_add_pointer:ndn_message.FibEntryMessage.Name.component)
2369 }
2370 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
2371 FibEntryMessage_Name::component() const {
2372  // @@protoc_insertion_point(field_list:ndn_message.FibEntryMessage.Name.component)
2373  return component_;
2374 }
2375 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
2376 FibEntryMessage_Name::mutable_component() {
2377  // @@protoc_insertion_point(field_mutable_list:ndn_message.FibEntryMessage.Name.component)
2378  return &component_;
2379 }
2380 
2381 // -------------------------------------------------------------------
2382 
2383 // FibEntryMessage_NextHopRecord
2384 
2385 // required uint32 face_id = 105;
2386 inline bool FibEntryMessage_NextHopRecord::has_face_id() const {
2387  return (_has_bits_[0] & 0x00000001u) != 0;
2388 }
2389 inline void FibEntryMessage_NextHopRecord::set_has_face_id() {
2390  _has_bits_[0] |= 0x00000001u;
2391 }
2392 inline void FibEntryMessage_NextHopRecord::clear_has_face_id() {
2393  _has_bits_[0] &= ~0x00000001u;
2394 }
2395 inline void FibEntryMessage_NextHopRecord::clear_face_id() {
2396  face_id_ = 0u;
2397  clear_has_face_id();
2398 }
2399 inline ::google::protobuf::uint32 FibEntryMessage_NextHopRecord::face_id() const {
2400  // @@protoc_insertion_point(field_get:ndn_message.FibEntryMessage.NextHopRecord.face_id)
2401  return face_id_;
2402 }
2403 inline void FibEntryMessage_NextHopRecord::set_face_id(::google::protobuf::uint32 value) {
2404  set_has_face_id();
2405  face_id_ = value;
2406  // @@protoc_insertion_point(field_set:ndn_message.FibEntryMessage.NextHopRecord.face_id)
2407 }
2408 
2409 // required uint32 cost = 106;
2410 inline bool FibEntryMessage_NextHopRecord::has_cost() const {
2411  return (_has_bits_[0] & 0x00000002u) != 0;
2412 }
2413 inline void FibEntryMessage_NextHopRecord::set_has_cost() {
2414  _has_bits_[0] |= 0x00000002u;
2415 }
2416 inline void FibEntryMessage_NextHopRecord::clear_has_cost() {
2417  _has_bits_[0] &= ~0x00000002u;
2418 }
2419 inline void FibEntryMessage_NextHopRecord::clear_cost() {
2420  cost_ = 0u;
2421  clear_has_cost();
2422 }
2423 inline ::google::protobuf::uint32 FibEntryMessage_NextHopRecord::cost() const {
2424  // @@protoc_insertion_point(field_get:ndn_message.FibEntryMessage.NextHopRecord.cost)
2425  return cost_;
2426 }
2427 inline void FibEntryMessage_NextHopRecord::set_cost(::google::protobuf::uint32 value) {
2428  set_has_cost();
2429  cost_ = value;
2430  // @@protoc_insertion_point(field_set:ndn_message.FibEntryMessage.NextHopRecord.cost)
2431 }
2432 
2433 // -------------------------------------------------------------------
2434 
2435 // FibEntryMessage_FibEntry
2436 
2437 // required .ndn_message.FibEntryMessage.Name name = 7;
2438 inline bool FibEntryMessage_FibEntry::has_name() const {
2439  return (_has_bits_[0] & 0x00000001u) != 0;
2440 }
2441 inline void FibEntryMessage_FibEntry::set_has_name() {
2442  _has_bits_[0] |= 0x00000001u;
2443 }
2444 inline void FibEntryMessage_FibEntry::clear_has_name() {
2445  _has_bits_[0] &= ~0x00000001u;
2446 }
2447 inline void FibEntryMessage_FibEntry::clear_name() {
2448  if (name_ != NULL) name_->::ndn_message::FibEntryMessage_Name::Clear();
2449  clear_has_name();
2450 }
2451 inline const ::ndn_message::FibEntryMessage_Name& FibEntryMessage_FibEntry::name() const {
2452  // @@protoc_insertion_point(field_get:ndn_message.FibEntryMessage.FibEntry.name)
2453  return name_ != NULL ? *name_ : *default_instance_->name_;
2454 }
2455 inline ::ndn_message::FibEntryMessage_Name* FibEntryMessage_FibEntry::mutable_name() {
2456  set_has_name();
2457  if (name_ == NULL) {
2458  name_ = new ::ndn_message::FibEntryMessage_Name;
2459  }
2460  // @@protoc_insertion_point(field_mutable:ndn_message.FibEntryMessage.FibEntry.name)
2461  return name_;
2462 }
2463 inline ::ndn_message::FibEntryMessage_Name* FibEntryMessage_FibEntry::release_name() {
2464  // @@protoc_insertion_point(field_release:ndn_message.FibEntryMessage.FibEntry.name)
2465  clear_has_name();
2467  name_ = NULL;
2468  return temp;
2469 }
2470 inline void FibEntryMessage_FibEntry::set_allocated_name(::ndn_message::FibEntryMessage_Name* name) {
2471  delete name_;
2472  name_ = name;
2473  if (name) {
2474  set_has_name();
2475  } else {
2476  clear_has_name();
2477  }
2478  // @@protoc_insertion_point(field_set_allocated:ndn_message.FibEntryMessage.FibEntry.name)
2479 }
2480 
2481 // repeated .ndn_message.FibEntryMessage.NextHopRecord next_hop_records = 129;
2482 inline int FibEntryMessage_FibEntry::next_hop_records_size() const {
2483  return next_hop_records_.size();
2484 }
2485 inline void FibEntryMessage_FibEntry::clear_next_hop_records() {
2486  next_hop_records_.Clear();
2487 }
2488 inline const ::ndn_message::FibEntryMessage_NextHopRecord& FibEntryMessage_FibEntry::next_hop_records(int index) const {
2489  // @@protoc_insertion_point(field_get:ndn_message.FibEntryMessage.FibEntry.next_hop_records)
2490  return next_hop_records_.Get(index);
2491 }
2492 inline ::ndn_message::FibEntryMessage_NextHopRecord* FibEntryMessage_FibEntry::mutable_next_hop_records(int index) {
2493  // @@protoc_insertion_point(field_mutable:ndn_message.FibEntryMessage.FibEntry.next_hop_records)
2494  return next_hop_records_.Mutable(index);
2495 }
2496 inline ::ndn_message::FibEntryMessage_NextHopRecord* FibEntryMessage_FibEntry::add_next_hop_records() {
2497  // @@protoc_insertion_point(field_add:ndn_message.FibEntryMessage.FibEntry.next_hop_records)
2498  return next_hop_records_.Add();
2499 }
2500 inline ::google::protobuf::RepeatedPtrField< ::ndn_message::FibEntryMessage_NextHopRecord >*
2501 FibEntryMessage_FibEntry::mutable_next_hop_records() {
2502  // @@protoc_insertion_point(field_mutable_list:ndn_message.FibEntryMessage.FibEntry.next_hop_records)
2503  return &next_hop_records_;
2504 }
2505 inline const ::google::protobuf::RepeatedPtrField< ::ndn_message::FibEntryMessage_NextHopRecord >&
2506 FibEntryMessage_FibEntry::next_hop_records() const {
2507  // @@protoc_insertion_point(field_list:ndn_message.FibEntryMessage.FibEntry.next_hop_records)
2508  return next_hop_records_;
2509 }
2510 
2511 // -------------------------------------------------------------------
2512 
2513 // FibEntryMessage
2514 
2515 // required .ndn_message.FibEntryMessage.FibEntry fib_entry = 128;
2516 inline bool FibEntryMessage::has_fib_entry() const {
2517  return (_has_bits_[0] & 0x00000001u) != 0;
2518 }
2519 inline void FibEntryMessage::set_has_fib_entry() {
2520  _has_bits_[0] |= 0x00000001u;
2521 }
2522 inline void FibEntryMessage::clear_has_fib_entry() {
2523  _has_bits_[0] &= ~0x00000001u;
2524 }
2525 inline void FibEntryMessage::clear_fib_entry() {
2526  if (fib_entry_ != NULL) fib_entry_->::ndn_message::FibEntryMessage_FibEntry::Clear();
2527  clear_has_fib_entry();
2528 }
2529 inline const ::ndn_message::FibEntryMessage_FibEntry& FibEntryMessage::fib_entry() const {
2530  // @@protoc_insertion_point(field_get:ndn_message.FibEntryMessage.fib_entry)
2531  return fib_entry_ != NULL ? *fib_entry_ : *default_instance_->fib_entry_;
2532 }
2533 inline ::ndn_message::FibEntryMessage_FibEntry* FibEntryMessage::mutable_fib_entry() {
2534  set_has_fib_entry();
2535  if (fib_entry_ == NULL) {
2536  fib_entry_ = new ::ndn_message::FibEntryMessage_FibEntry;
2537  }
2538  // @@protoc_insertion_point(field_mutable:ndn_message.FibEntryMessage.fib_entry)
2539  return fib_entry_;
2540 }
2541 inline ::ndn_message::FibEntryMessage_FibEntry* FibEntryMessage::release_fib_entry() {
2542  // @@protoc_insertion_point(field_release:ndn_message.FibEntryMessage.fib_entry)
2543  clear_has_fib_entry();
2544  ::ndn_message::FibEntryMessage_FibEntry* temp = fib_entry_;
2545  fib_entry_ = NULL;
2546  return temp;
2547 }
2548 inline void FibEntryMessage::set_allocated_fib_entry(::ndn_message::FibEntryMessage_FibEntry* fib_entry) {
2549  delete fib_entry_;
2550  fib_entry_ = fib_entry;
2551  if (fib_entry) {
2552  set_has_fib_entry();
2553  } else {
2554  clear_has_fib_entry();
2555  }
2556  // @@protoc_insertion_point(field_set_allocated:ndn_message.FibEntryMessage.fib_entry)
2557 }
2558 
2559 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
2560 // -------------------------------------------------------------------
2561 
2562 // -------------------------------------------------------------------
2563 
2564 // -------------------------------------------------------------------
2565 
2566 
2567 // @@protoc_insertion_point(namespace_scope)
2568 
2569 } // namespace ndn_message
2570 
2571 // @@protoc_insertion_point(global_scope)
2572 
2573 #endif // GOOGLE_PROTOBUF_VERSION < 3000000
2574 
2575 #endif // PROTOBUF_fib_2dentry_2eproto__INCLUDED
Definition: channel-status.pb.h:32
Definition: fib-entry.pb.h:226
Definition: fib-entry.pb.h:45
Definition: fib-entry.pb.h:134
Copyright (C) 2014-2017 Regents of the University of California.
Definition: channel-status.pb.h:315
Definition: fib-entry.pb.h:322