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 #else // GOOGLE_PROTOBUF_VERSION < 2006000
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 #endif // GOOGLE_PROTOBUF_VERSION < 2006000
1871 
1872 #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-2016 Regents of the University of California.
Definition: channel-status.pb.h:315
Definition: fib-entry.pb.h:322