Am5os
 All Classes Functions Pages
header.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: header.proto
3 
4 #ifndef PROTOBUF_header_2eproto__INCLUDED
5 #define PROTOBUF_header_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 2006000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers.
15 #endif
16 #if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
20 #endif
21 
22 #include <google/protobuf/generated_message_util.h>
23 #include <google/protobuf/message.h>
24 #include <google/protobuf/repeated_field.h>
25 #include <google/protobuf/extension_set.h>
26 #include <google/protobuf/unknown_field_set.h>
27 // @@protoc_insertion_point(includes)
28 
29 namespace pb {
30 
31 // Internal implementation detail -- do not call these.
32 void protobuf_AddDesc_header_2eproto();
33 void protobuf_AssignDesc_header_2eproto();
34 void protobuf_ShutdownFile_header_2eproto();
35 
36 class Header;
37 
38 // ===================================================================
39 
40 class Header : public ::google::protobuf::Message {
41  public:
42  Header();
43  virtual ~Header();
44 
45  Header(const Header& from);
46 
47  inline Header& operator=(const Header& from) {
48  CopyFrom(from);
49  return *this;
50  }
51 
52  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
53  return _unknown_fields_;
54  }
55 
56  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
57  return &_unknown_fields_;
58  }
59 
60  static const ::google::protobuf::Descriptor* descriptor();
61  static const Header& default_instance();
62 
63  void Swap(Header* other);
64 
65  // implements Message ----------------------------------------------
66 
67  Header* New() const;
68  void CopyFrom(const ::google::protobuf::Message& from);
69  void MergeFrom(const ::google::protobuf::Message& from);
70  void CopyFrom(const Header& from);
71  void MergeFrom(const Header& from);
72  void Clear();
73  bool IsInitialized() const;
74 
75  int ByteSize() const;
76  bool MergePartialFromCodedStream(
77  ::google::protobuf::io::CodedInputStream* input);
78  void SerializeWithCachedSizes(
79  ::google::protobuf::io::CodedOutputStream* output) const;
80  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
81  int GetCachedSize() const { return _cached_size_; }
82  private:
83  void SharedCtor();
84  void SharedDtor();
85  void SetCachedSize(int size) const;
86  public:
87  ::google::protobuf::Metadata GetMetadata() const;
88 
89  // nested types ----------------------------------------------------
90 
91  // accessors -------------------------------------------------------
92 
93  // optional int64 timestamp = 1;
94  inline bool has_timestamp() const;
95  inline void clear_timestamp();
96  static const int kTimestampFieldNumber = 1;
97  inline ::google::protobuf::int64 timestamp() const;
98  inline void set_timestamp(::google::protobuf::int64 value);
99 
100  // @@protoc_insertion_point(class_scope:pb.Header)
101  private:
102  inline void set_has_timestamp();
103  inline void clear_has_timestamp();
104 
105  ::google::protobuf::UnknownFieldSet _unknown_fields_;
106 
107  ::google::protobuf::uint32 _has_bits_[1];
108  mutable int _cached_size_;
109  ::google::protobuf::int64 timestamp_;
110  friend void protobuf_AddDesc_header_2eproto();
111  friend void protobuf_AssignDesc_header_2eproto();
112  friend void protobuf_ShutdownFile_header_2eproto();
113 
114  void InitAsDefaultInstance();
115  static Header* default_instance_;
116 };
117 // ===================================================================
118 
119 
120 // ===================================================================
121 
122 // Header
123 
124 // optional int64 timestamp = 1;
125 inline bool Header::has_timestamp() const {
126  return (_has_bits_[0] & 0x00000001u) != 0;
127 }
128 inline void Header::set_has_timestamp() {
129  _has_bits_[0] |= 0x00000001u;
130 }
131 inline void Header::clear_has_timestamp() {
132  _has_bits_[0] &= ~0x00000001u;
133 }
134 inline void Header::clear_timestamp() {
135  timestamp_ = GOOGLE_LONGLONG(0);
136  clear_has_timestamp();
137 }
138 inline ::google::protobuf::int64 Header::timestamp() const {
139  // @@protoc_insertion_point(field_get:pb.Header.timestamp)
140  return timestamp_;
141 }
142 inline void Header::set_timestamp(::google::protobuf::int64 value) {
143  set_has_timestamp();
144  timestamp_ = value;
145  // @@protoc_insertion_point(field_set:pb.Header.timestamp)
146 }
147 
148 
149 // @@protoc_insertion_point(namespace_scope)
150 
151 } // namespace pb
152 
153 #ifndef SWIG
154 namespace google {
155 namespace protobuf {
156 
157 
158 } // namespace google
159 } // namespace protobuf
160 #endif // SWIG
161 
162 // @@protoc_insertion_point(global_scope)
163 
164 #endif // PROTOBUF_header_2eproto__INCLUDED
Definition: header.pb.h:40