3 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
8 #include <google/protobuf/stubs/once.h>
9 #include <google/protobuf/io/coded_stream.h>
10 #include <google/protobuf/wire_format_lite_inl.h>
11 #include <google/protobuf/descriptor.h>
12 #include <google/protobuf/reflection_ops.h>
13 #include <google/protobuf/wire_format.h>
21 const ::google::protobuf::Descriptor* Access_descriptor_ = NULL;
22 const ::google::protobuf::internal::GeneratedMessageReflection*
23 Access_reflection_ = NULL;
28 void protobuf_AssignDesc_access_2eproto() {
29 protobuf_AddDesc_access_2eproto();
30 const ::google::protobuf::FileDescriptor* file =
31 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
33 GOOGLE_CHECK(file != NULL);
34 Access_descriptor_ = file->message_type(0);
35 static const int Access_offsets_[2] = {
36 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Access, definer_),
37 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Access, invoker_),
40 new ::google::protobuf::internal::GeneratedMessageReflection(
42 Access::default_instance_,
44 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Access, _has_bits_[0]),
45 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Access, _unknown_fields_),
47 ::google::protobuf::DescriptorPool::generated_pool(),
48 ::google::protobuf::MessageFactory::generated_factory(),
54 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
55 inline void protobuf_AssignDescriptorsOnce() {
56 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
57 &protobuf_AssignDesc_access_2eproto);
60 void protobuf_RegisterTypes(const ::std::string&) {
61 protobuf_AssignDescriptorsOnce();
62 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
63 Access_descriptor_, &Access::default_instance());
68 void protobuf_ShutdownFile_access_2eproto() {
69 delete Access::default_instance_;
70 delete Access_reflection_;
73 void protobuf_AddDesc_access_2eproto() {
74 static bool already_here =
false;
75 if (already_here)
return;
77 GOOGLE_PROTOBUF_VERIFY_VERSION;
79 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
80 "\n\014access.proto\022\020drizzled.message\"*\n\006Acce"
81 "ss\022\017\n\007definer\030\001 \001(\t\022\017\n\007invoker\030\002 \001(\tB \n\024"
82 "org.drizzle.messagesB\006AccessH\001", 110);
83 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
84 "access.proto", &protobuf_RegisterTypes);
85 Access::default_instance_ =
new Access();
86 Access::default_instance_->InitAsDefaultInstance();
87 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_access_2eproto);
93 protobuf_AddDesc_access_2eproto();
95 } static_descriptor_initializer_access_2eproto_;
101 const int Access::kDefinerFieldNumber;
102 const int Access::kInvokerFieldNumber;
106 : ::google::protobuf::Message() {
110 void Access::InitAsDefaultInstance() {
113 Access::Access(
const Access& from)
114 : ::google::protobuf::Message() {
119 void Access::SharedCtor() {
121 definer_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
122 invoker_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
123 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
130 void Access::SharedDtor() {
131 if (definer_ != &::google::protobuf::internal::kEmptyString) {
134 if (invoker_ != &::google::protobuf::internal::kEmptyString) {
137 if (
this != default_instance_) {
141 void Access::SetCachedSize(
int size)
const {
142 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
143 _cached_size_ = size;
144 GOOGLE_SAFE_CONCURRENT_WRITES_END();
146 const ::google::protobuf::Descriptor* Access::descriptor() {
147 protobuf_AssignDescriptorsOnce();
148 return Access_descriptor_;
151 const Access& Access::default_instance() {
152 if (default_instance_ == NULL) protobuf_AddDesc_access_2eproto();
return *default_instance_;
155 Access* Access::default_instance_ = NULL;
157 Access* Access::New()
const {
161 void Access::Clear() {
162 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
164 if (definer_ != &::google::protobuf::internal::kEmptyString) {
169 if (invoker_ != &::google::protobuf::internal::kEmptyString) {
174 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
175 mutable_unknown_fields()->Clear();
178 bool Access::MergePartialFromCodedStream(
179 ::google::protobuf::io::CodedInputStream* input) {
180 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
181 ::google::protobuf::uint32 tag;
182 while ((tag = input->ReadTag()) != 0) {
183 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
186 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
187 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
188 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
189 input, this->mutable_definer()));
190 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
191 this->definer().data(), this->definer().length(),
192 ::google::protobuf::internal::WireFormat::PARSE);
194 goto handle_uninterpreted;
196 if (input->ExpectTag(18))
goto parse_invoker;
202 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
203 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
205 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
206 input, this->mutable_invoker()));
207 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
208 this->invoker().data(), this->invoker().length(),
209 ::google::protobuf::internal::WireFormat::PARSE);
211 goto handle_uninterpreted;
213 if (input->ExpectAtEnd())
return true;
218 handle_uninterpreted:
219 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
220 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
223 DO_(::google::protobuf::internal::WireFormat::SkipField(
224 input, tag, mutable_unknown_fields()));
233 void Access::SerializeWithCachedSizes(
234 ::google::protobuf::io::CodedOutputStream* output)
const {
237 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
238 this->definer().data(), this->definer().length(),
239 ::google::protobuf::internal::WireFormat::SERIALIZE);
240 ::google::protobuf::internal::WireFormatLite::WriteString(
241 1, this->definer(), output);
246 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
247 this->invoker().data(), this->invoker().length(),
248 ::google::protobuf::internal::WireFormat::SERIALIZE);
249 ::google::protobuf::internal::WireFormatLite::WriteString(
250 2, this->invoker(), output);
253 if (!unknown_fields().empty()) {
254 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
255 unknown_fields(), output);
259 ::google::protobuf::uint8* Access::SerializeWithCachedSizesToArray(
260 ::google::protobuf::uint8* target)
const {
263 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
264 this->definer().data(), this->definer().length(),
265 ::google::protobuf::internal::WireFormat::SERIALIZE);
267 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
268 1, this->definer(), target);
273 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
274 this->invoker().data(), this->invoker().length(),
275 ::google::protobuf::internal::WireFormat::SERIALIZE);
277 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
278 2, this->invoker(), target);
281 if (!unknown_fields().empty()) {
282 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
283 unknown_fields(), target);
288 int Access::ByteSize()
const {
291 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
295 ::google::protobuf::internal::WireFormatLite::StringSize(
302 ::google::protobuf::internal::WireFormatLite::StringSize(
307 if (!unknown_fields().empty()) {
309 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
312 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
313 _cached_size_ = total_size;
314 GOOGLE_SAFE_CONCURRENT_WRITES_END();
318 void Access::MergeFrom(const ::google::protobuf::Message& from) {
319 GOOGLE_CHECK_NE(&from,
this);
320 const Access* source =
321 ::google::protobuf::internal::dynamic_cast_if_available<const Access*>(
323 if (source == NULL) {
324 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
330 void Access::MergeFrom(
const Access& from) {
331 GOOGLE_CHECK_NE(&from,
this);
332 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
333 if (from.has_definer()) {
334 set_definer(from.definer());
336 if (from.has_invoker()) {
337 set_invoker(from.invoker());
340 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
343 void Access::CopyFrom(const ::google::protobuf::Message& from) {
344 if (&from ==
this)
return;
349 void Access::CopyFrom(
const Access& from) {
350 if (&from ==
this)
return;
355 bool Access::IsInitialized()
const {
360 void Access::Swap(Access* other) {
362 std::swap(definer_, other->definer_);
363 std::swap(invoker_, other->invoker_);
364 std::swap(_has_bits_[0], other->_has_bits_[0]);
365 _unknown_fields_.Swap(&other->_unknown_fields_);
366 std::swap(_cached_size_, other->_cached_size_);
370 ::google::protobuf::Metadata Access::GetMetadata()
const {
371 protobuf_AssignDescriptorsOnce();
372 ::google::protobuf::Metadata metadata;
373 metadata.descriptor = Access_descriptor_;
374 metadata.reflection = Access_reflection_;