4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
9 #include <google/protobuf/stubs/common.h>
10 #include <google/protobuf/stubs/once.h>
11 #include <google/protobuf/io/coded_stream.h>
12 #include <google/protobuf/wire_format_lite_inl.h>
13 #include <google/protobuf/descriptor.h>
14 #include <google/protobuf/generated_message_reflection.h>
15 #include <google/protobuf/reflection_ops.h>
16 #include <google/protobuf/wire_format.h>
24 const ::google::protobuf::Descriptor* Access_descriptor_ = NULL;
25 const ::google::protobuf::internal::GeneratedMessageReflection*
26 Access_reflection_ = NULL;
31 void protobuf_AssignDesc_access_2eproto() {
32 protobuf_AddDesc_access_2eproto();
33 const ::google::protobuf::FileDescriptor* file =
34 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
36 GOOGLE_CHECK(file != NULL);
37 Access_descriptor_ = file->message_type(0);
38 static const int Access_offsets_[2] = {
39 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Access, definer_),
40 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Access, invoker_),
43 new ::google::protobuf::internal::GeneratedMessageReflection(
45 Access::default_instance_,
47 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Access, _has_bits_[0]),
48 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Access, _unknown_fields_),
50 ::google::protobuf::DescriptorPool::generated_pool(),
51 ::google::protobuf::MessageFactory::generated_factory(),
57 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
58 inline void protobuf_AssignDescriptorsOnce() {
59 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
60 &protobuf_AssignDesc_access_2eproto);
63 void protobuf_RegisterTypes(const ::std::string&) {
64 protobuf_AssignDescriptorsOnce();
65 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
66 Access_descriptor_, &Access::default_instance());
71 void protobuf_ShutdownFile_access_2eproto() {
72 delete Access::default_instance_;
73 delete Access_reflection_;
76 void protobuf_AddDesc_access_2eproto() {
77 static bool already_here =
false;
78 if (already_here)
return;
80 GOOGLE_PROTOBUF_VERIFY_VERSION;
82 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
83 "\n\014access.proto\022\020drizzled.message\"*\n\006Acce"
84 "ss\022\017\n\007definer\030\001 \001(\t\022\017\n\007invoker\030\002 \001(\tB \n\024"
85 "org.drizzle.messagesB\006AccessH\001", 110);
86 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
87 "access.proto", &protobuf_RegisterTypes);
88 Access::default_instance_ =
new Access();
89 Access::default_instance_->InitAsDefaultInstance();
90 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_access_2eproto);
96 protobuf_AddDesc_access_2eproto();
98 } static_descriptor_initializer_access_2eproto_;
103 const int Access::kDefinerFieldNumber;
104 const int Access::kInvokerFieldNumber;
108 : ::
google::protobuf::Message() {
113 void Access::InitAsDefaultInstance() {
116 Access::Access(
const Access& from)
117 : ::
google::protobuf::Message() {
123 void Access::SharedCtor() {
124 ::google::protobuf::internal::GetEmptyString();
126 definer_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
127 invoker_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
128 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
136 void Access::SharedDtor() {
137 if (definer_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
140 if (invoker_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
143 if (
this != default_instance_) {
147 void Access::SetCachedSize(
int size)
const {
148 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
149 _cached_size_ = size;
150 GOOGLE_SAFE_CONCURRENT_WRITES_END();
152 const ::google::protobuf::Descriptor* Access::descriptor() {
153 protobuf_AssignDescriptorsOnce();
154 return Access_descriptor_;
157 const Access& Access::default_instance() {
158 if (default_instance_ == NULL) protobuf_AddDesc_access_2eproto();
159 return *default_instance_;
162 Access* Access::default_instance_ = NULL;
164 Access* Access::New()
const {
168 void Access::Clear() {
169 if (_has_bits_[0 / 32] & 3) {
171 if (definer_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
176 if (invoker_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
181 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
182 mutable_unknown_fields()->Clear();
185 bool Access::MergePartialFromCodedStream(
186 ::google::protobuf::io::CodedInputStream* input) {
187 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
188 ::google::protobuf::uint32 tag;
191 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
193 if (!p.second)
goto handle_unusual;
194 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
198 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
199 input, this->mutable_definer()));
200 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
201 this->definer().data(), this->definer().length(),
202 ::google::protobuf::internal::WireFormat::PARSE,
207 if (input->ExpectTag(18))
goto parse_invoker;
215 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
216 input, this->mutable_invoker()));
217 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
218 this->invoker().data(), this->invoker().length(),
219 ::google::protobuf::internal::WireFormat::PARSE,
224 if (input->ExpectAtEnd())
goto success;
231 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
232 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
235 DO_(::google::protobuf::internal::WireFormat::SkipField(
236 input, tag, mutable_unknown_fields()));
250 void Access::SerializeWithCachedSizes(
251 ::google::protobuf::io::CodedOutputStream* output)
const {
255 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
256 this->definer().data(), this->definer().length(),
257 ::google::protobuf::internal::WireFormat::SERIALIZE,
259 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
260 1, this->definer(), output);
265 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
266 this->invoker().data(), this->invoker().length(),
267 ::google::protobuf::internal::WireFormat::SERIALIZE,
269 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
270 2, this->invoker(), output);
273 if (!unknown_fields().empty()) {
274 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
275 unknown_fields(), output);
280 ::google::protobuf::uint8* Access::SerializeWithCachedSizesToArray(
281 ::google::protobuf::uint8* target)
const {
285 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
286 this->definer().data(), this->definer().length(),
287 ::google::protobuf::internal::WireFormat::SERIALIZE,
290 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
291 1, this->definer(), target);
296 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
297 this->invoker().data(), this->invoker().length(),
298 ::google::protobuf::internal::WireFormat::SERIALIZE,
301 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
302 2, this->invoker(), target);
305 if (!unknown_fields().empty()) {
306 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
307 unknown_fields(), target);
313 int Access::ByteSize()
const {
316 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
320 ::google::protobuf::internal::WireFormatLite::StringSize(
327 ::google::protobuf::internal::WireFormatLite::StringSize(
332 if (!unknown_fields().empty()) {
334 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
337 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
338 _cached_size_ = total_size;
339 GOOGLE_SAFE_CONCURRENT_WRITES_END();
343 void Access::MergeFrom(const ::google::protobuf::Message& from) {
344 GOOGLE_CHECK_NE(&from,
this);
345 const Access* source =
346 ::google::protobuf::internal::dynamic_cast_if_available<const Access*>(
348 if (source == NULL) {
349 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
355 void Access::MergeFrom(
const Access& from) {
356 GOOGLE_CHECK_NE(&from,
this);
357 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
358 if (from.has_definer()) {
359 set_definer(from.definer());
361 if (from.has_invoker()) {
362 set_invoker(from.invoker());
365 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
368 void Access::CopyFrom(const ::google::protobuf::Message& from) {
369 if (&from ==
this)
return;
374 void Access::CopyFrom(
const Access& from) {
375 if (&from ==
this)
return;
380 bool Access::IsInitialized()
const {
385 void Access::Swap(Access* other) {
387 std::swap(definer_, other->definer_);
388 std::swap(invoker_, other->invoker_);
389 std::swap(_has_bits_[0], other->_has_bits_[0]);
390 _unknown_fields_.Swap(&other->_unknown_fields_);
391 std::swap(_cached_size_, other->_cached_size_);
395 ::google::protobuf::Metadata Access::GetMetadata()
const {
396 protobuf_AssignDescriptorsOnce();
397 ::google::protobuf::Metadata metadata;
398 metadata.descriptor = Access_descriptor_;
399 metadata.reflection = Access_reflection_;
TODO: Rename this file - func.h is stupid.