4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
5 #include "replication_options.pb.h"
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* ReplicationOptions_descriptor_ = NULL;
25 const ::google::protobuf::internal::GeneratedMessageReflection*
26 ReplicationOptions_reflection_ = NULL;
31 void protobuf_AssignDesc_replication_5foptions_2eproto() {
32 protobuf_AddDesc_replication_5foptions_2eproto();
33 const ::google::protobuf::FileDescriptor* file =
34 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
35 "replication_options.proto");
36 GOOGLE_CHECK(file != NULL);
37 ReplicationOptions_descriptor_ = file->message_type(0);
38 static const int ReplicationOptions_offsets_[1] = {
39 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicationOptions, is_replicated_),
41 ReplicationOptions_reflection_ =
42 new ::google::protobuf::internal::GeneratedMessageReflection(
43 ReplicationOptions_descriptor_,
44 ReplicationOptions::default_instance_,
45 ReplicationOptions_offsets_,
46 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicationOptions, _has_bits_[0]),
47 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicationOptions, _unknown_fields_),
49 ::google::protobuf::DescriptorPool::generated_pool(),
50 ::google::protobuf::MessageFactory::generated_factory(),
51 sizeof(ReplicationOptions));
56 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
57 inline void protobuf_AssignDescriptorsOnce() {
58 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
59 &protobuf_AssignDesc_replication_5foptions_2eproto);
62 void protobuf_RegisterTypes(const ::std::string&) {
63 protobuf_AssignDescriptorsOnce();
64 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
65 ReplicationOptions_descriptor_, &ReplicationOptions::default_instance());
70 void protobuf_ShutdownFile_replication_5foptions_2eproto() {
71 delete ReplicationOptions::default_instance_;
72 delete ReplicationOptions_reflection_;
75 void protobuf_AddDesc_replication_5foptions_2eproto() {
76 static bool already_here =
false;
77 if (already_here)
return;
79 GOOGLE_PROTOBUF_VERIFY_VERSION;
81 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
82 "\n\031replication_options.proto\022\020drizzled.me"
83 "ssage\"+\n\022ReplicationOptions\022\025\n\ris_replic"
84 "ated\030\002 \001(\010B%\n\024org.drizzle.messagesB\013Repl"
86 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
87 "replication_options.proto", &protobuf_RegisterTypes);
88 ReplicationOptions::default_instance_ =
new ReplicationOptions();
89 ReplicationOptions::default_instance_->InitAsDefaultInstance();
90 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_replication_5foptions_2eproto);
96 protobuf_AddDesc_replication_5foptions_2eproto();
98 } static_descriptor_initializer_replication_5foptions_2eproto_;
103 const int ReplicationOptions::kIsReplicatedFieldNumber;
106 ReplicationOptions::ReplicationOptions()
107 : ::google::protobuf::Message() {
111 void ReplicationOptions::InitAsDefaultInstance() {
114 ReplicationOptions::ReplicationOptions(
const ReplicationOptions& from)
115 : ::google::protobuf::Message() {
120 void ReplicationOptions::SharedCtor() {
122 is_replicated_ =
false;
123 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
126 ReplicationOptions::~ReplicationOptions() {
130 void ReplicationOptions::SharedDtor() {
131 if (
this != default_instance_) {
135 void ReplicationOptions::SetCachedSize(
int size)
const {
136 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
137 _cached_size_ = size;
138 GOOGLE_SAFE_CONCURRENT_WRITES_END();
140 const ::google::protobuf::Descriptor* ReplicationOptions::descriptor() {
141 protobuf_AssignDescriptorsOnce();
142 return ReplicationOptions_descriptor_;
145 const ReplicationOptions& ReplicationOptions::default_instance() {
146 if (default_instance_ == NULL) protobuf_AddDesc_replication_5foptions_2eproto();
147 return *default_instance_;
150 ReplicationOptions* ReplicationOptions::default_instance_ = NULL;
152 ReplicationOptions* ReplicationOptions::New()
const {
153 return new ReplicationOptions;
156 void ReplicationOptions::Clear() {
157 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
158 is_replicated_ =
false;
160 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
161 mutable_unknown_fields()->Clear();
164 bool ReplicationOptions::MergePartialFromCodedStream(
165 ::google::protobuf::io::CodedInputStream* input) {
166 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
167 ::google::protobuf::uint32 tag;
168 while ((tag = input->ReadTag()) != 0) {
169 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
172 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
173 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
174 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
175 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
176 input, &is_replicated_)));
177 set_has_is_replicated();
179 goto handle_uninterpreted;
181 if (input->ExpectAtEnd())
return true;
186 handle_uninterpreted:
187 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
188 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
191 DO_(::google::protobuf::internal::WireFormat::SkipField(
192 input, tag, mutable_unknown_fields()));
201 void ReplicationOptions::SerializeWithCachedSizes(
202 ::google::protobuf::io::CodedOutputStream* output)
const {
204 if (has_is_replicated()) {
205 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_replicated(), output);
208 if (!unknown_fields().empty()) {
209 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
210 unknown_fields(), output);
214 ::google::protobuf::uint8* ReplicationOptions::SerializeWithCachedSizesToArray(
215 ::google::protobuf::uint8* target)
const {
217 if (has_is_replicated()) {
218 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_replicated(), target);
221 if (!unknown_fields().empty()) {
222 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
223 unknown_fields(), target);
228 int ReplicationOptions::ByteSize()
const {
231 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
233 if (has_is_replicated()) {
238 if (!unknown_fields().empty()) {
240 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
243 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
244 _cached_size_ = total_size;
245 GOOGLE_SAFE_CONCURRENT_WRITES_END();
249 void ReplicationOptions::MergeFrom(const ::google::protobuf::Message& from) {
250 GOOGLE_CHECK_NE(&from,
this);
251 const ReplicationOptions* source =
252 ::google::protobuf::internal::dynamic_cast_if_available<const ReplicationOptions*>(
254 if (source == NULL) {
255 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
261 void ReplicationOptions::MergeFrom(
const ReplicationOptions& from) {
262 GOOGLE_CHECK_NE(&from,
this);
263 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
264 if (from.has_is_replicated()) {
265 set_is_replicated(from.is_replicated());
268 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
271 void ReplicationOptions::CopyFrom(const ::google::protobuf::Message& from) {
272 if (&from ==
this)
return;
277 void ReplicationOptions::CopyFrom(
const ReplicationOptions& from) {
278 if (&from ==
this)
return;
283 bool ReplicationOptions::IsInitialized()
const {
288 void ReplicationOptions::Swap(ReplicationOptions* other) {
290 std::swap(is_replicated_, other->is_replicated_);
291 std::swap(_has_bits_[0], other->_has_bits_[0]);
292 _unknown_fields_.Swap(&other->_unknown_fields_);
293 std::swap(_cached_size_, other->_cached_size_);
297 ::google::protobuf::Metadata ReplicationOptions::GetMetadata()
const {
298 protobuf_AssignDescriptorsOnce();
299 ::google::protobuf::Metadata metadata;
300 metadata.descriptor = ReplicationOptions_descriptor_;
301 metadata.reflection = ReplicationOptions_reflection_;