4 #ifndef PROTOBUF_header_2eproto__INCLUDED
5 #define PROTOBUF_header_2eproto__INCLUDED
9 #include <google/protobuf/stubs/common.h>
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
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.
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>
32 void protobuf_AddDesc_header_2eproto();
33 void protobuf_AssignDesc_header_2eproto();
34 void protobuf_ShutdownFile_header_2eproto();
40 class Header :
public ::google::protobuf::Message {
52 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
53 return _unknown_fields_;
56 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
57 return &_unknown_fields_;
60 static const ::google::protobuf::Descriptor* descriptor();
61 static const Header& default_instance();
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);
73 bool IsInitialized()
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_; }
85 void SetCachedSize(
int size)
const;
87 ::google::protobuf::Metadata GetMetadata()
const;
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);
102 inline void set_has_timestamp();
103 inline void clear_has_timestamp();
105 ::google::protobuf::UnknownFieldSet _unknown_fields_;
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();
114 void InitAsDefaultInstance();
115 static Header* default_instance_;
125 inline bool Header::has_timestamp()
const {
126 return (_has_bits_[0] & 0x00000001u) != 0;
128 inline void Header::set_has_timestamp() {
129 _has_bits_[0] |= 0x00000001u;
131 inline void Header::clear_has_timestamp() {
132 _has_bits_[0] &= ~0x00000001u;
134 inline void Header::clear_timestamp() {
135 timestamp_ = GOOGLE_LONGLONG(0);
136 clear_has_timestamp();
138 inline ::google::protobuf::int64 Header::timestamp()
const {
142 inline void Header::set_timestamp(::google::protobuf::int64 value) {
164 #endif // PROTOBUF_header_2eproto__INCLUDED