4 #ifndef PROTOBUF_rib_2dentry_2eproto__INCLUDED
5 #define PROTOBUF_rib_2dentry_2eproto__INCLUDED
9 #include <google/protobuf/stubs/common.h>
13 #if GOOGLE_PROTOBUF_VERSION < 2005000
15 #if GOOGLE_PROTOBUF_VERSION < 2004000
16 #error This file was generated by a newer version of protoc which is
17 #error incompatible with your Protocol Buffer headers. Please update
20 #if 2004001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
21 #error This file was generated by an older version of protoc which is
22 #error incompatible with your Protocol Buffer headers. Please
23 #error regenerate this file with a newer version of protoc.
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/repeated_field.h>
28 #include <google/protobuf/extension_set.h>
29 #include <google/protobuf/generated_message_reflection.h>
35 void protobuf_AddDesc_rib_2dentry_2eproto();
36 void protobuf_AssignDesc_rib_2dentry_2eproto();
37 void protobuf_ShutdownFile_rib_2dentry_2eproto();
39 class RibEntryMessage;
40 class RibEntryMessage_Name;
41 class RibEntryMessage_Route;
42 class RibEntryMessage_RibEntry;
58 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
59 return _unknown_fields_;
62 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
63 return &_unknown_fields_;
66 static const ::google::protobuf::Descriptor* descriptor();
74 void CopyFrom(const ::google::protobuf::Message& from);
75 void MergeFrom(const ::google::protobuf::Message& from);
79 bool IsInitialized()
const;
82 bool MergePartialFromCodedStream(
83 ::google::protobuf::io::CodedInputStream* input);
84 void SerializeWithCachedSizes(
85 ::google::protobuf::io::CodedOutputStream* output)
const;
86 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
87 int GetCachedSize()
const {
return _cached_size_; }
91 void SetCachedSize(
int size)
const;
94 ::google::protobuf::Metadata GetMetadata()
const;
101 inline int component_size()
const;
102 inline void clear_component();
103 static const int kComponentFieldNumber = 8;
104 inline const ::std::string& component(
int index)
const;
105 inline ::std::string* mutable_component(
int index);
106 inline void set_component(
int index, const ::std::string& value);
107 inline void set_component(
int index,
const char* value);
108 inline void set_component(
int index,
const void* value,
size_t size);
109 inline ::std::string* add_component();
110 inline void add_component(const ::std::string& value);
111 inline void add_component(
const char* value);
112 inline void add_component(
const void* value,
size_t size);
113 inline const ::google::protobuf::RepeatedPtrField< ::std::string>& component()
const;
114 inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_component();
119 ::google::protobuf::UnknownFieldSet _unknown_fields_;
123 mutable int _cached_size_;
124 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
126 friend void protobuf_AddDesc_rib_2dentry_2eproto();
127 friend void protobuf_AssignDesc_rib_2dentry_2eproto();
128 friend void protobuf_ShutdownFile_rib_2dentry_2eproto();
130 void InitAsDefaultInstance();
147 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
148 return _unknown_fields_;
151 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
152 return &_unknown_fields_;
155 static const ::google::protobuf::Descriptor* descriptor();
163 void CopyFrom(const ::google::protobuf::Message& from);
164 void MergeFrom(const ::google::protobuf::Message& from);
168 bool IsInitialized()
const;
170 int ByteSize()
const;
171 bool MergePartialFromCodedStream(
172 ::google::protobuf::io::CodedInputStream* input);
173 void SerializeWithCachedSizes(
174 ::google::protobuf::io::CodedOutputStream* output)
const;
175 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
176 int GetCachedSize()
const {
return _cached_size_; }
180 void SetCachedSize(
int size)
const;
183 ::google::protobuf::Metadata GetMetadata()
const;
190 inline bool has_face_id()
const;
191 inline void clear_face_id();
192 static const int kFaceIdFieldNumber = 105;
193 inline ::google::protobuf::uint32 face_id()
const;
194 inline void set_face_id(::google::protobuf::uint32 value);
197 inline bool has_origin()
const;
198 inline void clear_origin();
199 static const int kOriginFieldNumber = 111;
200 inline ::google::protobuf::uint32 origin()
const;
201 inline void set_origin(::google::protobuf::uint32 value);
204 inline bool has_cost()
const;
205 inline void clear_cost();
206 static const int kCostFieldNumber = 106;
207 inline ::google::protobuf::uint32 cost()
const;
208 inline void set_cost(::google::protobuf::uint32 value);
211 inline bool has_flags()
const;
212 inline void clear_flags();
213 static const int kFlagsFieldNumber = 108;
214 inline ::google::protobuf::uint32 flags()
const;
215 inline void set_flags(::google::protobuf::uint32 value);
218 inline bool has_expiration_period()
const;
219 inline void clear_expiration_period();
220 static const int kExpirationPeriodFieldNumber = 109;
221 inline ::google::protobuf::uint32 expiration_period()
const;
222 inline void set_expiration_period(::google::protobuf::uint32 value);
226 inline void set_has_face_id();
227 inline void clear_has_face_id();
228 inline void set_has_origin();
229 inline void clear_has_origin();
230 inline void set_has_cost();
231 inline void clear_has_cost();
232 inline void set_has_flags();
233 inline void clear_has_flags();
234 inline void set_has_expiration_period();
235 inline void clear_has_expiration_period();
237 ::google::protobuf::UnknownFieldSet _unknown_fields_;
239 ::google::protobuf::uint32 face_id_;
240 ::google::protobuf::uint32 origin_;
241 ::google::protobuf::uint32 cost_;
242 ::google::protobuf::uint32 flags_;
243 ::google::protobuf::uint32 expiration_period_;
245 mutable int _cached_size_;
246 ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32];
248 friend void protobuf_AddDesc_rib_2dentry_2eproto();
249 friend void protobuf_AssignDesc_rib_2dentry_2eproto();
250 friend void protobuf_ShutdownFile_rib_2dentry_2eproto();
252 void InitAsDefaultInstance();
269 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
270 return _unknown_fields_;
273 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
274 return &_unknown_fields_;
277 static const ::google::protobuf::Descriptor* descriptor();
285 void CopyFrom(const ::google::protobuf::Message& from);
286 void MergeFrom(const ::google::protobuf::Message& from);
290 bool IsInitialized()
const;
292 int ByteSize()
const;
293 bool MergePartialFromCodedStream(
294 ::google::protobuf::io::CodedInputStream* input);
295 void SerializeWithCachedSizes(
296 ::google::protobuf::io::CodedOutputStream* output)
const;
297 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
298 int GetCachedSize()
const {
return _cached_size_; }
302 void SetCachedSize(
int size)
const;
305 ::google::protobuf::Metadata GetMetadata()
const;
312 inline bool has_name()
const;
313 inline void clear_name();
314 static const int kNameFieldNumber = 7;
315 inline const ::ndn_message::RibEntryMessage_Name& name()
const;
316 inline ::ndn_message::RibEntryMessage_Name* mutable_name();
317 inline ::ndn_message::RibEntryMessage_Name* release_name();
320 inline int routes_size()
const;
321 inline void clear_routes();
322 static const int kRoutesFieldNumber = 129;
323 inline const ::ndn_message::RibEntryMessage_Route& routes(
int index)
const;
324 inline ::ndn_message::RibEntryMessage_Route* mutable_routes(
int index);
325 inline ::ndn_message::RibEntryMessage_Route* add_routes();
326 inline const ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_Route >&
328 inline ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_Route >*
333 inline void set_has_name();
334 inline void clear_has_name();
336 ::google::protobuf::UnknownFieldSet _unknown_fields_;
341 mutable int _cached_size_;
342 ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
344 friend void protobuf_AddDesc_rib_2dentry_2eproto();
345 friend void protobuf_AssignDesc_rib_2dentry_2eproto();
346 friend void protobuf_ShutdownFile_rib_2dentry_2eproto();
348 void InitAsDefaultInstance();
365 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
366 return _unknown_fields_;
369 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
370 return &_unknown_fields_;
373 static const ::google::protobuf::Descriptor* descriptor();
381 void CopyFrom(const ::google::protobuf::Message& from);
382 void MergeFrom(const ::google::protobuf::Message& from);
386 bool IsInitialized()
const;
388 int ByteSize()
const;
389 bool MergePartialFromCodedStream(
390 ::google::protobuf::io::CodedInputStream* input);
391 void SerializeWithCachedSizes(
392 ::google::protobuf::io::CodedOutputStream* output)
const;
393 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
394 int GetCachedSize()
const {
return _cached_size_; }
398 void SetCachedSize(
int size)
const;
401 ::google::protobuf::Metadata GetMetadata()
const;
412 inline int rib_entry_size()
const;
413 inline void clear_rib_entry();
414 static const int kRibEntryFieldNumber = 128;
415 inline const ::ndn_message::RibEntryMessage_RibEntry& rib_entry(
int index)
const;
416 inline ::ndn_message::RibEntryMessage_RibEntry* mutable_rib_entry(
int index);
417 inline ::ndn_message::RibEntryMessage_RibEntry* add_rib_entry();
418 inline const ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_RibEntry >&
420 inline ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_RibEntry >*
426 ::google::protobuf::UnknownFieldSet _unknown_fields_;
430 mutable int _cached_size_;
431 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
433 friend void protobuf_AddDesc_rib_2dentry_2eproto();
434 friend void protobuf_AssignDesc_rib_2dentry_2eproto();
435 friend void protobuf_ShutdownFile_rib_2dentry_2eproto();
437 void InitAsDefaultInstance();
448 inline int RibEntryMessage_Name::component_size()
const {
449 return component_.size();
451 inline void RibEntryMessage_Name::clear_component() {
454 inline const ::std::string& RibEntryMessage_Name::component(
int index)
const {
455 return component_.Get(index);
457 inline ::std::string* RibEntryMessage_Name::mutable_component(
int index) {
458 return component_.Mutable(index);
460 inline void RibEntryMessage_Name::set_component(
int index, const ::std::string& value) {
461 component_.Mutable(index)->assign(value);
463 inline void RibEntryMessage_Name::set_component(
int index,
const char* value) {
464 component_.Mutable(index)->assign(value);
466 inline void RibEntryMessage_Name::set_component(
int index,
const void* value,
size_t size) {
467 component_.Mutable(index)->assign(
468 reinterpret_cast<const char*>(value), size);
470 inline ::std::string* RibEntryMessage_Name::add_component() {
471 return component_.Add();
473 inline void RibEntryMessage_Name::add_component(const ::std::string& value) {
474 component_.Add()->assign(value);
476 inline void RibEntryMessage_Name::add_component(
const char* value) {
477 component_.Add()->assign(value);
479 inline void RibEntryMessage_Name::add_component(
const void* value,
size_t size) {
480 component_.Add()->assign(reinterpret_cast<const char*>(value), size);
482 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
483 RibEntryMessage_Name::component()
const {
486 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
487 RibEntryMessage_Name::mutable_component() {
496 inline bool RibEntryMessage_Route::has_face_id()
const {
497 return (_has_bits_[0] & 0x00000001u) != 0;
499 inline void RibEntryMessage_Route::set_has_face_id() {
500 _has_bits_[0] |= 0x00000001u;
502 inline void RibEntryMessage_Route::clear_has_face_id() {
503 _has_bits_[0] &= ~0x00000001u;
505 inline void RibEntryMessage_Route::clear_face_id() {
509 inline ::google::protobuf::uint32 RibEntryMessage_Route::face_id()
const {
512 inline void RibEntryMessage_Route::set_face_id(::google::protobuf::uint32 value) {
518 inline bool RibEntryMessage_Route::has_origin()
const {
519 return (_has_bits_[0] & 0x00000002u) != 0;
521 inline void RibEntryMessage_Route::set_has_origin() {
522 _has_bits_[0] |= 0x00000002u;
524 inline void RibEntryMessage_Route::clear_has_origin() {
525 _has_bits_[0] &= ~0x00000002u;
527 inline void RibEntryMessage_Route::clear_origin() {
531 inline ::google::protobuf::uint32 RibEntryMessage_Route::origin()
const {
534 inline void RibEntryMessage_Route::set_origin(::google::protobuf::uint32 value) {
540 inline bool RibEntryMessage_Route::has_cost()
const {
541 return (_has_bits_[0] & 0x00000004u) != 0;
543 inline void RibEntryMessage_Route::set_has_cost() {
544 _has_bits_[0] |= 0x00000004u;
546 inline void RibEntryMessage_Route::clear_has_cost() {
547 _has_bits_[0] &= ~0x00000004u;
549 inline void RibEntryMessage_Route::clear_cost() {
553 inline ::google::protobuf::uint32 RibEntryMessage_Route::cost()
const {
556 inline void RibEntryMessage_Route::set_cost(::google::protobuf::uint32 value) {
562 inline bool RibEntryMessage_Route::has_flags()
const {
563 return (_has_bits_[0] & 0x00000008u) != 0;
565 inline void RibEntryMessage_Route::set_has_flags() {
566 _has_bits_[0] |= 0x00000008u;
568 inline void RibEntryMessage_Route::clear_has_flags() {
569 _has_bits_[0] &= ~0x00000008u;
571 inline void RibEntryMessage_Route::clear_flags() {
575 inline ::google::protobuf::uint32 RibEntryMessage_Route::flags()
const {
578 inline void RibEntryMessage_Route::set_flags(::google::protobuf::uint32 value) {
584 inline bool RibEntryMessage_Route::has_expiration_period()
const {
585 return (_has_bits_[0] & 0x00000010u) != 0;
587 inline void RibEntryMessage_Route::set_has_expiration_period() {
588 _has_bits_[0] |= 0x00000010u;
590 inline void RibEntryMessage_Route::clear_has_expiration_period() {
591 _has_bits_[0] &= ~0x00000010u;
593 inline void RibEntryMessage_Route::clear_expiration_period() {
594 expiration_period_ = 0u;
595 clear_has_expiration_period();
597 inline ::google::protobuf::uint32 RibEntryMessage_Route::expiration_period()
const {
598 return expiration_period_;
600 inline void RibEntryMessage_Route::set_expiration_period(::google::protobuf::uint32 value) {
601 set_has_expiration_period();
602 expiration_period_ = value;
610 inline bool RibEntryMessage_RibEntry::has_name()
const {
611 return (_has_bits_[0] & 0x00000001u) != 0;
613 inline void RibEntryMessage_RibEntry::set_has_name() {
614 _has_bits_[0] |= 0x00000001u;
616 inline void RibEntryMessage_RibEntry::clear_has_name() {
617 _has_bits_[0] &= ~0x00000001u;
619 inline void RibEntryMessage_RibEntry::clear_name() {
620 if (name_ != NULL) name_->::ndn_message::RibEntryMessage_Name::Clear();
623 inline const ::ndn_message::RibEntryMessage_Name& RibEntryMessage_RibEntry::name()
const {
624 return name_ != NULL ? *name_ : *default_instance_->name_;
626 inline ::ndn_message::RibEntryMessage_Name* RibEntryMessage_RibEntry::mutable_name() {
628 if (name_ == NULL) name_ = new ::ndn_message::RibEntryMessage_Name;
631 inline ::ndn_message::RibEntryMessage_Name* RibEntryMessage_RibEntry::release_name() {
639 inline int RibEntryMessage_RibEntry::routes_size()
const {
640 return routes_.size();
642 inline void RibEntryMessage_RibEntry::clear_routes() {
645 inline const ::ndn_message::RibEntryMessage_Route& RibEntryMessage_RibEntry::routes(
int index)
const {
646 return routes_.Get(index);
648 inline ::ndn_message::RibEntryMessage_Route* RibEntryMessage_RibEntry::mutable_routes(
int index) {
649 return routes_.Mutable(index);
651 inline ::ndn_message::RibEntryMessage_Route* RibEntryMessage_RibEntry::add_routes() {
652 return routes_.Add();
654 inline const ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_Route >&
655 RibEntryMessage_RibEntry::routes()
const {
658 inline ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_Route >*
659 RibEntryMessage_RibEntry::mutable_routes() {
668 inline int RibEntryMessage::rib_entry_size()
const {
669 return rib_entry_.size();
671 inline void RibEntryMessage::clear_rib_entry() {
674 inline const ::ndn_message::RibEntryMessage_RibEntry& RibEntryMessage::rib_entry(
int index)
const {
675 return rib_entry_.Get(index);
677 inline ::ndn_message::RibEntryMessage_RibEntry* RibEntryMessage::mutable_rib_entry(
int index) {
678 return rib_entry_.Mutable(index);
680 inline ::ndn_message::RibEntryMessage_RibEntry* RibEntryMessage::add_rib_entry() {
681 return rib_entry_.Add();
683 inline const ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_RibEntry >&
684 RibEntryMessage::rib_entry()
const {
687 inline ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_RibEntry >*
688 RibEntryMessage::mutable_rib_entry() {
708 #else // GOOGLE_PROTOBUF_VERSION < 2005000
710 #if GOOGLE_PROTOBUF_VERSION < 2005000
711 #error This file was generated by a newer version of protoc which is
712 #error incompatible with your Protocol Buffer headers. Please update
715 #if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
716 #error This file was generated by an older version of protoc which is
717 #error incompatible with your Protocol Buffer headers. Please
718 #error regenerate this file with a newer version of protoc.
721 #include <google/protobuf/generated_message_util.h>
722 #include <google/protobuf/message.h>
723 #include <google/protobuf/repeated_field.h>
724 #include <google/protobuf/extension_set.h>
725 #include <google/protobuf/unknown_field_set.h>
731 void protobuf_AddDesc_rib_2dentry_2eproto();
732 void protobuf_AssignDesc_rib_2dentry_2eproto();
733 void protobuf_ShutdownFile_rib_2dentry_2eproto();
735 class RibEntryMessage;
736 class RibEntryMessage_Name;
737 class RibEntryMessage_Route;
738 class RibEntryMessage_RibEntry;
742 class RibEntryMessage_Name :
public ::google::protobuf::Message {
744 RibEntryMessage_Name();
745 virtual ~RibEntryMessage_Name();
747 RibEntryMessage_Name(
const RibEntryMessage_Name& from);
749 inline RibEntryMessage_Name& operator=(
const RibEntryMessage_Name& from) {
754 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
755 return _unknown_fields_;
758 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
759 return &_unknown_fields_;
762 static const ::google::protobuf::Descriptor* descriptor();
763 static const RibEntryMessage_Name& default_instance();
765 void Swap(RibEntryMessage_Name* other);
769 RibEntryMessage_Name* New()
const;
770 void CopyFrom(const ::google::protobuf::Message& from);
771 void MergeFrom(const ::google::protobuf::Message& from);
772 void CopyFrom(
const RibEntryMessage_Name& from);
773 void MergeFrom(
const RibEntryMessage_Name& from);
775 bool IsInitialized()
const;
777 int ByteSize()
const;
778 bool MergePartialFromCodedStream(
779 ::google::protobuf::io::CodedInputStream* input);
780 void SerializeWithCachedSizes(
781 ::google::protobuf::io::CodedOutputStream* output)
const;
782 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
783 int GetCachedSize()
const {
return _cached_size_; }
787 void SetCachedSize(
int size)
const;
790 ::google::protobuf::Metadata GetMetadata()
const;
797 inline int component_size()
const;
798 inline void clear_component();
799 static const int kComponentFieldNumber = 8;
800 inline const ::std::string& component(
int index)
const;
801 inline ::std::string* mutable_component(
int index);
802 inline void set_component(
int index, const ::std::string& value);
803 inline void set_component(
int index,
const char* value);
804 inline void set_component(
int index,
const void* value,
size_t size);
805 inline ::std::string* add_component();
806 inline void add_component(const ::std::string& value);
807 inline void add_component(
const char* value);
808 inline void add_component(
const void* value,
size_t size);
809 inline const ::google::protobuf::RepeatedPtrField< ::std::string>& component()
const;
810 inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_component();
815 ::google::protobuf::UnknownFieldSet _unknown_fields_;
819 mutable int _cached_size_;
820 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
822 friend void protobuf_AddDesc_rib_2dentry_2eproto();
823 friend void protobuf_AssignDesc_rib_2dentry_2eproto();
824 friend void protobuf_ShutdownFile_rib_2dentry_2eproto();
826 void InitAsDefaultInstance();
827 static RibEntryMessage_Name* default_instance_;
831 class RibEntryMessage_Route :
public ::google::protobuf::Message {
833 RibEntryMessage_Route();
834 virtual ~RibEntryMessage_Route();
836 RibEntryMessage_Route(
const RibEntryMessage_Route& from);
838 inline RibEntryMessage_Route& operator=(
const RibEntryMessage_Route& from) {
843 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
844 return _unknown_fields_;
847 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
848 return &_unknown_fields_;
851 static const ::google::protobuf::Descriptor* descriptor();
852 static const RibEntryMessage_Route& default_instance();
854 void Swap(RibEntryMessage_Route* other);
858 RibEntryMessage_Route* New()
const;
859 void CopyFrom(const ::google::protobuf::Message& from);
860 void MergeFrom(const ::google::protobuf::Message& from);
861 void CopyFrom(
const RibEntryMessage_Route& from);
862 void MergeFrom(
const RibEntryMessage_Route& from);
864 bool IsInitialized()
const;
866 int ByteSize()
const;
867 bool MergePartialFromCodedStream(
868 ::google::protobuf::io::CodedInputStream* input);
869 void SerializeWithCachedSizes(
870 ::google::protobuf::io::CodedOutputStream* output)
const;
871 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
872 int GetCachedSize()
const {
return _cached_size_; }
876 void SetCachedSize(
int size)
const;
879 ::google::protobuf::Metadata GetMetadata()
const;
886 inline bool has_face_id()
const;
887 inline void clear_face_id();
888 static const int kFaceIdFieldNumber = 105;
889 inline ::google::protobuf::uint32 face_id()
const;
890 inline void set_face_id(::google::protobuf::uint32 value);
893 inline bool has_origin()
const;
894 inline void clear_origin();
895 static const int kOriginFieldNumber = 111;
896 inline ::google::protobuf::uint32 origin()
const;
897 inline void set_origin(::google::protobuf::uint32 value);
900 inline bool has_cost()
const;
901 inline void clear_cost();
902 static const int kCostFieldNumber = 106;
903 inline ::google::protobuf::uint32 cost()
const;
904 inline void set_cost(::google::protobuf::uint32 value);
907 inline bool has_flags()
const;
908 inline void clear_flags();
909 static const int kFlagsFieldNumber = 108;
910 inline ::google::protobuf::uint32 flags()
const;
911 inline void set_flags(::google::protobuf::uint32 value);
914 inline bool has_expiration_period()
const;
915 inline void clear_expiration_period();
916 static const int kExpirationPeriodFieldNumber = 109;
917 inline ::google::protobuf::uint32 expiration_period()
const;
918 inline void set_expiration_period(::google::protobuf::uint32 value);
922 inline void set_has_face_id();
923 inline void clear_has_face_id();
924 inline void set_has_origin();
925 inline void clear_has_origin();
926 inline void set_has_cost();
927 inline void clear_has_cost();
928 inline void set_has_flags();
929 inline void clear_has_flags();
930 inline void set_has_expiration_period();
931 inline void clear_has_expiration_period();
933 ::google::protobuf::UnknownFieldSet _unknown_fields_;
935 ::google::protobuf::uint32 face_id_;
936 ::google::protobuf::uint32 origin_;
937 ::google::protobuf::uint32 cost_;
938 ::google::protobuf::uint32 flags_;
939 ::google::protobuf::uint32 expiration_period_;
941 mutable int _cached_size_;
942 ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32];
944 friend void protobuf_AddDesc_rib_2dentry_2eproto();
945 friend void protobuf_AssignDesc_rib_2dentry_2eproto();
946 friend void protobuf_ShutdownFile_rib_2dentry_2eproto();
948 void InitAsDefaultInstance();
949 static RibEntryMessage_Route* default_instance_;
953 class RibEntryMessage_RibEntry :
public ::google::protobuf::Message {
955 RibEntryMessage_RibEntry();
956 virtual ~RibEntryMessage_RibEntry();
958 RibEntryMessage_RibEntry(
const RibEntryMessage_RibEntry& from);
960 inline RibEntryMessage_RibEntry& operator=(
const RibEntryMessage_RibEntry& from) {
965 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
966 return _unknown_fields_;
969 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
970 return &_unknown_fields_;
973 static const ::google::protobuf::Descriptor* descriptor();
974 static const RibEntryMessage_RibEntry& default_instance();
976 void Swap(RibEntryMessage_RibEntry* other);
980 RibEntryMessage_RibEntry* New()
const;
981 void CopyFrom(const ::google::protobuf::Message& from);
982 void MergeFrom(const ::google::protobuf::Message& from);
983 void CopyFrom(
const RibEntryMessage_RibEntry& from);
984 void MergeFrom(
const RibEntryMessage_RibEntry& from);
986 bool IsInitialized()
const;
988 int ByteSize()
const;
989 bool MergePartialFromCodedStream(
990 ::google::protobuf::io::CodedInputStream* input);
991 void SerializeWithCachedSizes(
992 ::google::protobuf::io::CodedOutputStream* output)
const;
993 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
994 int GetCachedSize()
const {
return _cached_size_; }
998 void SetCachedSize(
int size)
const;
1001 ::google::protobuf::Metadata GetMetadata()
const;
1008 inline bool has_name()
const;
1009 inline void clear_name();
1010 static const int kNameFieldNumber = 7;
1011 inline const ::ndn_message::RibEntryMessage_Name& name()
const;
1012 inline ::ndn_message::RibEntryMessage_Name* mutable_name();
1013 inline ::ndn_message::RibEntryMessage_Name* release_name();
1017 inline int routes_size()
const;
1018 inline void clear_routes();
1019 static const int kRoutesFieldNumber = 129;
1020 inline const ::ndn_message::RibEntryMessage_Route& routes(
int index)
const;
1021 inline ::ndn_message::RibEntryMessage_Route* mutable_routes(
int index);
1022 inline ::ndn_message::RibEntryMessage_Route* add_routes();
1023 inline const ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_Route >&
1025 inline ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_Route >*
1030 inline void set_has_name();
1031 inline void clear_has_name();
1033 ::google::protobuf::UnknownFieldSet _unknown_fields_;
1038 mutable int _cached_size_;
1039 ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
1041 friend void protobuf_AddDesc_rib_2dentry_2eproto();
1042 friend void protobuf_AssignDesc_rib_2dentry_2eproto();
1043 friend void protobuf_ShutdownFile_rib_2dentry_2eproto();
1045 void InitAsDefaultInstance();
1046 static RibEntryMessage_RibEntry* default_instance_;
1050 class RibEntryMessage :
public ::google::protobuf::Message {
1053 virtual ~RibEntryMessage();
1055 RibEntryMessage(
const RibEntryMessage& from);
1057 inline RibEntryMessage& operator=(
const RibEntryMessage& from) {
1062 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
1063 return _unknown_fields_;
1066 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1067 return &_unknown_fields_;
1070 static const ::google::protobuf::Descriptor* descriptor();
1071 static const RibEntryMessage& default_instance();
1073 void Swap(RibEntryMessage* other);
1077 RibEntryMessage* New()
const;
1078 void CopyFrom(const ::google::protobuf::Message& from);
1079 void MergeFrom(const ::google::protobuf::Message& from);
1080 void CopyFrom(
const RibEntryMessage& from);
1081 void MergeFrom(
const RibEntryMessage& from);
1083 bool IsInitialized()
const;
1085 int ByteSize()
const;
1086 bool MergePartialFromCodedStream(
1087 ::google::protobuf::io::CodedInputStream* input);
1088 void SerializeWithCachedSizes(
1089 ::google::protobuf::io::CodedOutputStream* output)
const;
1090 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
1091 int GetCachedSize()
const {
return _cached_size_; }
1095 void SetCachedSize(
int size)
const;
1098 ::google::protobuf::Metadata GetMetadata()
const;
1102 typedef RibEntryMessage_Name Name;
1103 typedef RibEntryMessage_Route Route;
1104 typedef RibEntryMessage_RibEntry RibEntry;
1109 inline int rib_entry_size()
const;
1110 inline void clear_rib_entry();
1111 static const int kRibEntryFieldNumber = 128;
1112 inline const ::ndn_message::RibEntryMessage_RibEntry& rib_entry(
int index)
const;
1113 inline ::ndn_message::RibEntryMessage_RibEntry* mutable_rib_entry(
int index);
1114 inline ::ndn_message::RibEntryMessage_RibEntry* add_rib_entry();
1115 inline const ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_RibEntry >&
1117 inline ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_RibEntry >*
1118 mutable_rib_entry();
1123 ::google::protobuf::UnknownFieldSet _unknown_fields_;
1127 mutable int _cached_size_;
1128 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
1130 friend void protobuf_AddDesc_rib_2dentry_2eproto();
1131 friend void protobuf_AssignDesc_rib_2dentry_2eproto();
1132 friend void protobuf_ShutdownFile_rib_2dentry_2eproto();
1134 void InitAsDefaultInstance();
1135 static RibEntryMessage* default_instance_;
1145 inline int RibEntryMessage_Name::component_size()
const {
1146 return component_.size();
1148 inline void RibEntryMessage_Name::clear_component() {
1151 inline const ::std::string& RibEntryMessage_Name::component(
int index)
const {
1152 return component_.Get(index);
1154 inline ::std::string* RibEntryMessage_Name::mutable_component(
int index) {
1155 return component_.Mutable(index);
1157 inline void RibEntryMessage_Name::set_component(
int index, const ::std::string& value) {
1158 component_.Mutable(index)->assign(value);
1160 inline void RibEntryMessage_Name::set_component(
int index,
const char* value) {
1161 component_.Mutable(index)->assign(value);
1163 inline void RibEntryMessage_Name::set_component(
int index,
const void* value,
size_t size) {
1164 component_.Mutable(index)->assign(
1165 reinterpret_cast<const char*>(value), size);
1167 inline ::std::string* RibEntryMessage_Name::add_component() {
1168 return component_.Add();
1170 inline void RibEntryMessage_Name::add_component(const ::std::string& value) {
1171 component_.Add()->assign(value);
1173 inline void RibEntryMessage_Name::add_component(
const char* value) {
1174 component_.Add()->assign(value);
1176 inline void RibEntryMessage_Name::add_component(
const void* value,
size_t size) {
1177 component_.Add()->assign(reinterpret_cast<const char*>(value), size);
1179 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
1180 RibEntryMessage_Name::component()
const {
1183 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
1184 RibEntryMessage_Name::mutable_component() {
1193 inline bool RibEntryMessage_Route::has_face_id()
const {
1194 return (_has_bits_[0] & 0x00000001u) != 0;
1196 inline void RibEntryMessage_Route::set_has_face_id() {
1197 _has_bits_[0] |= 0x00000001u;
1199 inline void RibEntryMessage_Route::clear_has_face_id() {
1200 _has_bits_[0] &= ~0x00000001u;
1202 inline void RibEntryMessage_Route::clear_face_id() {
1204 clear_has_face_id();
1206 inline ::google::protobuf::uint32 RibEntryMessage_Route::face_id()
const {
1209 inline void RibEntryMessage_Route::set_face_id(::google::protobuf::uint32 value) {
1215 inline bool RibEntryMessage_Route::has_origin()
const {
1216 return (_has_bits_[0] & 0x00000002u) != 0;
1218 inline void RibEntryMessage_Route::set_has_origin() {
1219 _has_bits_[0] |= 0x00000002u;
1221 inline void RibEntryMessage_Route::clear_has_origin() {
1222 _has_bits_[0] &= ~0x00000002u;
1224 inline void RibEntryMessage_Route::clear_origin() {
1228 inline ::google::protobuf::uint32 RibEntryMessage_Route::origin()
const {
1231 inline void RibEntryMessage_Route::set_origin(::google::protobuf::uint32 value) {
1237 inline bool RibEntryMessage_Route::has_cost()
const {
1238 return (_has_bits_[0] & 0x00000004u) != 0;
1240 inline void RibEntryMessage_Route::set_has_cost() {
1241 _has_bits_[0] |= 0x00000004u;
1243 inline void RibEntryMessage_Route::clear_has_cost() {
1244 _has_bits_[0] &= ~0x00000004u;
1246 inline void RibEntryMessage_Route::clear_cost() {
1250 inline ::google::protobuf::uint32 RibEntryMessage_Route::cost()
const {
1253 inline void RibEntryMessage_Route::set_cost(::google::protobuf::uint32 value) {
1259 inline bool RibEntryMessage_Route::has_flags()
const {
1260 return (_has_bits_[0] & 0x00000008u) != 0;
1262 inline void RibEntryMessage_Route::set_has_flags() {
1263 _has_bits_[0] |= 0x00000008u;
1265 inline void RibEntryMessage_Route::clear_has_flags() {
1266 _has_bits_[0] &= ~0x00000008u;
1268 inline void RibEntryMessage_Route::clear_flags() {
1272 inline ::google::protobuf::uint32 RibEntryMessage_Route::flags()
const {
1275 inline void RibEntryMessage_Route::set_flags(::google::protobuf::uint32 value) {
1281 inline bool RibEntryMessage_Route::has_expiration_period()
const {
1282 return (_has_bits_[0] & 0x00000010u) != 0;
1284 inline void RibEntryMessage_Route::set_has_expiration_period() {
1285 _has_bits_[0] |= 0x00000010u;
1287 inline void RibEntryMessage_Route::clear_has_expiration_period() {
1288 _has_bits_[0] &= ~0x00000010u;
1290 inline void RibEntryMessage_Route::clear_expiration_period() {
1291 expiration_period_ = 0u;
1292 clear_has_expiration_period();
1294 inline ::google::protobuf::uint32 RibEntryMessage_Route::expiration_period()
const {
1295 return expiration_period_;
1297 inline void RibEntryMessage_Route::set_expiration_period(::google::protobuf::uint32 value) {
1298 set_has_expiration_period();
1299 expiration_period_ = value;
1307 inline bool RibEntryMessage_RibEntry::has_name()
const {
1308 return (_has_bits_[0] & 0x00000001u) != 0;
1310 inline void RibEntryMessage_RibEntry::set_has_name() {
1311 _has_bits_[0] |= 0x00000001u;
1313 inline void RibEntryMessage_RibEntry::clear_has_name() {
1314 _has_bits_[0] &= ~0x00000001u;
1316 inline void RibEntryMessage_RibEntry::clear_name() {
1317 if (name_ != NULL) name_->::ndn_message::RibEntryMessage_Name::Clear();
1320 inline const ::ndn_message::RibEntryMessage_Name& RibEntryMessage_RibEntry::name()
const {
1321 return name_ != NULL ? *name_ : *default_instance_->name_;
1323 inline ::ndn_message::RibEntryMessage_Name* RibEntryMessage_RibEntry::mutable_name() {
1325 if (name_ == NULL) name_ = new ::ndn_message::RibEntryMessage_Name;
1328 inline ::ndn_message::RibEntryMessage_Name* RibEntryMessage_RibEntry::release_name() {
1345 inline int RibEntryMessage_RibEntry::routes_size()
const {
1346 return routes_.size();
1348 inline void RibEntryMessage_RibEntry::clear_routes() {
1351 inline const ::ndn_message::RibEntryMessage_Route& RibEntryMessage_RibEntry::routes(
int index)
const {
1352 return routes_.Get(index);
1354 inline ::ndn_message::RibEntryMessage_Route* RibEntryMessage_RibEntry::mutable_routes(
int index) {
1355 return routes_.Mutable(index);
1357 inline ::ndn_message::RibEntryMessage_Route* RibEntryMessage_RibEntry::add_routes() {
1358 return routes_.Add();
1360 inline const ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_Route >&
1361 RibEntryMessage_RibEntry::routes()
const {
1364 inline ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_Route >*
1365 RibEntryMessage_RibEntry::mutable_routes() {
1374 inline int RibEntryMessage::rib_entry_size()
const {
1375 return rib_entry_.size();
1377 inline void RibEntryMessage::clear_rib_entry() {
1380 inline const ::ndn_message::RibEntryMessage_RibEntry& RibEntryMessage::rib_entry(
int index)
const {
1381 return rib_entry_.Get(index);
1383 inline ::ndn_message::RibEntryMessage_RibEntry* RibEntryMessage::mutable_rib_entry(
int index) {
1384 return rib_entry_.Mutable(index);
1386 inline ::ndn_message::RibEntryMessage_RibEntry* RibEntryMessage::add_rib_entry() {
1387 return rib_entry_.Add();
1389 inline const ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_RibEntry >&
1390 RibEntryMessage::rib_entry()
const {
1393 inline ::google::protobuf::RepeatedPtrField< ::ndn_message::RibEntryMessage_RibEntry >*
1394 RibEntryMessage::mutable_rib_entry() {
1405 namespace protobuf {
1414 #endif // GOOGLE_PROTOBUF_VERSION < 2005000
1416 #endif // PROTOBUF_rib_2dentry_2eproto__INCLUDED
Definition: channel-status.pb.h:32
Definition: rib-entry.pb.h:46
Definition: rib-entry.pb.h:257
Copyright (C) 2014-2015 Regents of the University of California.
Definition: channel-status.pb.h:315
Definition: rib-entry.pb.h:135
Definition: rib-entry.pb.h:353