4 #ifndef PROTOBUF_access_2eproto__INCLUDED
5 #define PROTOBUF_access_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>
33 void protobuf_AddDesc_access_2eproto();
34 void protobuf_AssignDesc_access_2eproto();
35 void protobuf_ShutdownFile_access_2eproto();
41 class Access :
public ::google::protobuf::Message {
53 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
54 return _unknown_fields_;
57 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
58 return &_unknown_fields_;
61 static const ::google::protobuf::Descriptor* descriptor();
62 static const Access& default_instance();
69 void CopyFrom(const ::google::protobuf::Message& from);
70 void MergeFrom(const ::google::protobuf::Message& from);
71 void CopyFrom(
const Access& from);
72 void MergeFrom(
const Access& from);
74 bool IsInitialized()
const;
77 bool MergePartialFromCodedStream(
78 ::google::protobuf::io::CodedInputStream* input);
79 void SerializeWithCachedSizes(
80 ::google::protobuf::io::CodedOutputStream* output)
const;
81 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
82 int GetCachedSize()
const {
return _cached_size_; }
86 void SetCachedSize(
int size)
const;
88 ::google::protobuf::Metadata GetMetadata()
const;
95 inline bool has_definer()
const;
96 inline void clear_definer();
97 static const int kDefinerFieldNumber = 1;
98 inline const ::std::string& definer()
const;
99 inline void set_definer(const ::std::string& value);
100 inline void set_definer(
const char* value);
101 inline void set_definer(
const char* value,
size_t size);
102 inline ::std::string* mutable_definer();
103 inline ::std::string* release_definer();
104 inline void set_allocated_definer(::std::string* definer);
107 inline bool has_invoker()
const;
108 inline void clear_invoker();
109 static const int kInvokerFieldNumber = 2;
110 inline const ::std::string& invoker()
const;
111 inline void set_invoker(const ::std::string& value);
112 inline void set_invoker(
const char* value);
113 inline void set_invoker(
const char* value,
size_t size);
114 inline ::std::string* mutable_invoker();
115 inline ::std::string* release_invoker();
116 inline void set_allocated_invoker(::std::string* invoker);
120 inline void set_has_definer();
121 inline void clear_has_definer();
122 inline void set_has_invoker();
123 inline void clear_has_invoker();
125 ::google::protobuf::UnknownFieldSet _unknown_fields_;
127 ::google::protobuf::uint32 _has_bits_[1];
128 mutable int _cached_size_;
129 ::std::string* definer_;
130 ::std::string* invoker_;
131 friend void protobuf_AddDesc_access_2eproto();
132 friend void protobuf_AssignDesc_access_2eproto();
133 friend void protobuf_ShutdownFile_access_2eproto();
135 void InitAsDefaultInstance();
136 static Access* default_instance_;
146 inline bool Access::has_definer()
const {
147 return (_has_bits_[0] & 0x00000001u) != 0;
149 inline void Access::set_has_definer() {
150 _has_bits_[0] |= 0x00000001u;
152 inline void Access::clear_has_definer() {
153 _has_bits_[0] &= ~0x00000001u;
155 inline void Access::clear_definer() {
156 if (definer_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
161 inline const ::std::string& Access::definer()
const {
165 inline void Access::set_definer(const ::std::string& value) {
167 if (definer_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
168 definer_ = new ::std::string;
170 definer_->assign(value);
173 inline void Access::set_definer(
const char* value) {
175 if (definer_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
176 definer_ = new ::std::string;
178 definer_->assign(value);
181 inline void Access::set_definer(
const char* value,
size_t size) {
183 if (definer_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
184 definer_ = new ::std::string;
186 definer_->assign(reinterpret_cast<const char*>(value), size);
189 inline ::std::string* Access::mutable_definer() {
191 if (definer_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
192 definer_ = new ::std::string;
197 inline ::std::string* Access::release_definer() {
199 if (definer_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
202 ::std::string* temp = definer_;
203 definer_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
207 inline void Access::set_allocated_definer(::std::string* definer) {
208 if (definer_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
216 definer_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
222 inline bool Access::has_invoker()
const {
223 return (_has_bits_[0] & 0x00000002u) != 0;
225 inline void Access::set_has_invoker() {
226 _has_bits_[0] |= 0x00000002u;
228 inline void Access::clear_has_invoker() {
229 _has_bits_[0] &= ~0x00000002u;
231 inline void Access::clear_invoker() {
232 if (invoker_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
237 inline const ::std::string& Access::invoker()
const {
241 inline void Access::set_invoker(const ::std::string& value) {
243 if (invoker_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
244 invoker_ = new ::std::string;
246 invoker_->assign(value);
249 inline void Access::set_invoker(
const char* value) {
251 if (invoker_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
252 invoker_ = new ::std::string;
254 invoker_->assign(value);
257 inline void Access::set_invoker(
const char* value,
size_t size) {
259 if (invoker_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
260 invoker_ = new ::std::string;
262 invoker_->assign(reinterpret_cast<const char*>(value), size);
265 inline ::std::string* Access::mutable_invoker() {
267 if (invoker_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
268 invoker_ = new ::std::string;
273 inline ::std::string* Access::release_invoker() {
275 if (invoker_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
278 ::std::string* temp = invoker_;
279 invoker_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
283 inline void Access::set_allocated_invoker(::std::string* invoker) {
284 if (invoker_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
292 invoker_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
314 #endif // PROTOBUF_access_2eproto__INCLUDED
TODO: Rename this file - func.h is stupid.