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