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() {
112 void Access::InitAsDefaultInstance() {
115 Access::Access(
const Access& from)
116 : ::google::protobuf::Message() {
121 void Access::SharedCtor() {
123 definer_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
124 invoker_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
125 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
132 void Access::SharedDtor() {
133 if (definer_ != &::google::protobuf::internal::kEmptyString) {
136 if (invoker_ != &::google::protobuf::internal::kEmptyString) {
139 if (
this != default_instance_) {
143 void Access::SetCachedSize(
int size)
const {
144 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
145 _cached_size_ = size;
146 GOOGLE_SAFE_CONCURRENT_WRITES_END();
148 const ::google::protobuf::Descriptor* Access::descriptor() {
149 protobuf_AssignDescriptorsOnce();
150 return Access_descriptor_;
153 const Access& Access::default_instance() {
154 if (default_instance_ == NULL) protobuf_AddDesc_access_2eproto();
155 return *default_instance_;
158 Access* Access::default_instance_ = NULL;
160 Access* Access::New()
const {
164 void Access::Clear() {
165 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
167 if (definer_ != &::google::protobuf::internal::kEmptyString) {
172 if (invoker_ != &::google::protobuf::internal::kEmptyString) {
177 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
178 mutable_unknown_fields()->Clear();
181 bool Access::MergePartialFromCodedStream(
182 ::google::protobuf::io::CodedInputStream* input) {
183 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
184 ::google::protobuf::uint32 tag;
185 while ((tag = input->ReadTag()) != 0) {
186 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
189 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
190 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
191 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
192 input, this->mutable_definer()));
193 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
194 this->definer().data(), this->definer().length(),
195 ::google::protobuf::internal::WireFormat::PARSE);
197 goto handle_uninterpreted;
199 if (input->ExpectTag(18))
goto parse_invoker;
205 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
206 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
208 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
209 input, this->mutable_invoker()));
210 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
211 this->invoker().data(), this->invoker().length(),
212 ::google::protobuf::internal::WireFormat::PARSE);
214 goto handle_uninterpreted;
216 if (input->ExpectAtEnd())
return true;
221 handle_uninterpreted:
222 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
223 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
226 DO_(::google::protobuf::internal::WireFormat::SkipField(
227 input, tag, mutable_unknown_fields()));
236 void Access::SerializeWithCachedSizes(
237 ::google::protobuf::io::CodedOutputStream* output)
const {
240 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
241 this->definer().data(), this->definer().length(),
242 ::google::protobuf::internal::WireFormat::SERIALIZE);
243 ::google::protobuf::internal::WireFormatLite::WriteString(
244 1, this->definer(), output);
249 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
250 this->invoker().data(), this->invoker().length(),
251 ::google::protobuf::internal::WireFormat::SERIALIZE);
252 ::google::protobuf::internal::WireFormatLite::WriteString(
253 2, this->invoker(), output);
256 if (!unknown_fields().empty()) {
257 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
258 unknown_fields(), output);
262 ::google::protobuf::uint8* Access::SerializeWithCachedSizesToArray(
263 ::google::protobuf::uint8* target)
const {
266 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
267 this->definer().data(), this->definer().length(),
268 ::google::protobuf::internal::WireFormat::SERIALIZE);
270 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
271 1, this->definer(), target);
276 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
277 this->invoker().data(), this->invoker().length(),
278 ::google::protobuf::internal::WireFormat::SERIALIZE);
280 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
281 2, this->invoker(), target);
284 if (!unknown_fields().empty()) {
285 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
286 unknown_fields(), target);
291 int Access::ByteSize()
const {
294 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
298 ::google::protobuf::internal::WireFormatLite::StringSize(
305 ::google::protobuf::internal::WireFormatLite::StringSize(
310 if (!unknown_fields().empty()) {
312 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
315 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
316 _cached_size_ = total_size;
317 GOOGLE_SAFE_CONCURRENT_WRITES_END();
321 void Access::MergeFrom(const ::google::protobuf::Message& from) {
322 GOOGLE_CHECK_NE(&from,
this);
323 const Access* source =
324 ::google::protobuf::internal::dynamic_cast_if_available<const Access*>(
326 if (source == NULL) {
327 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
333 void Access::MergeFrom(
const Access& from) {
334 GOOGLE_CHECK_NE(&from,
this);
335 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
336 if (from.has_definer()) {
337 set_definer(from.definer());
339 if (from.has_invoker()) {
340 set_invoker(from.invoker());
343 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
346 void Access::CopyFrom(const ::google::protobuf::Message& from) {
347 if (&from ==
this)
return;
352 void Access::CopyFrom(
const Access& from) {
353 if (&from ==
this)
return;
358 bool Access::IsInitialized()
const {
363 void Access::Swap(Access* other) {
365 std::swap(definer_, other->definer_);
366 std::swap(invoker_, other->invoker_);
367 std::swap(_has_bits_[0], other->_has_bits_[0]);
368 _unknown_fields_.Swap(&other->_unknown_fields_);
369 std::swap(_cached_size_, other->_cached_size_);
373 ::google::protobuf::Metadata Access::GetMetadata()
const {
374 protobuf_AssignDescriptorsOnce();
375 ::google::protobuf::Metadata metadata;
376 metadata.descriptor = Access_descriptor_;
377 metadata.reflection = Access_reflection_;