3 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
4 #include "replication_options.pb.h"
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* ReplicationOptions_descriptor_ = NULL;
22 const ::google::protobuf::internal::GeneratedMessageReflection*
23 ReplicationOptions_reflection_ = NULL;
28 void protobuf_AssignDesc_replication_5foptions_2eproto() {
29 protobuf_AddDesc_replication_5foptions_2eproto();
30 const ::google::protobuf::FileDescriptor* file =
31 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
32 "replication_options.proto");
33 GOOGLE_CHECK(file != NULL);
34 ReplicationOptions_descriptor_ = file->message_type(0);
35 static const int ReplicationOptions_offsets_[1] = {
36 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicationOptions, is_replicated_),
38 ReplicationOptions_reflection_ =
39 new ::google::protobuf::internal::GeneratedMessageReflection(
40 ReplicationOptions_descriptor_,
41 ReplicationOptions::default_instance_,
42 ReplicationOptions_offsets_,
43 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicationOptions, _has_bits_[0]),
44 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicationOptions, _unknown_fields_),
46 ::google::protobuf::DescriptorPool::generated_pool(),
47 ::google::protobuf::MessageFactory::generated_factory(),
48 sizeof(ReplicationOptions));
53 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
54 inline void protobuf_AssignDescriptorsOnce() {
55 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
56 &protobuf_AssignDesc_replication_5foptions_2eproto);
59 void protobuf_RegisterTypes(const ::std::string&) {
60 protobuf_AssignDescriptorsOnce();
61 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
62 ReplicationOptions_descriptor_, &ReplicationOptions::default_instance());
67 void protobuf_ShutdownFile_replication_5foptions_2eproto() {
68 delete ReplicationOptions::default_instance_;
69 delete ReplicationOptions_reflection_;
72 void protobuf_AddDesc_replication_5foptions_2eproto() {
73 static bool already_here =
false;
74 if (already_here)
return;
76 GOOGLE_PROTOBUF_VERIFY_VERSION;
78 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
79 "\n\031replication_options.proto\022\020drizzled.me"
80 "ssage\"+\n\022ReplicationOptions\022\025\n\ris_replic"
81 "ated\030\002 \001(\010B%\n\024org.drizzle.messagesB\013Repl"
83 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
84 "replication_options.proto", &protobuf_RegisterTypes);
85 ReplicationOptions::default_instance_ =
new ReplicationOptions();
86 ReplicationOptions::default_instance_->InitAsDefaultInstance();
87 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_replication_5foptions_2eproto);
93 protobuf_AddDesc_replication_5foptions_2eproto();
95 } static_descriptor_initializer_replication_5foptions_2eproto_;
101 const int ReplicationOptions::kIsReplicatedFieldNumber;
104 ReplicationOptions::ReplicationOptions()
105 : ::google::protobuf::Message() {
109 void ReplicationOptions::InitAsDefaultInstance() {
112 ReplicationOptions::ReplicationOptions(
const ReplicationOptions& from)
113 : ::google::protobuf::Message() {
118 void ReplicationOptions::SharedCtor() {
120 is_replicated_ =
false;
121 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
124 ReplicationOptions::~ReplicationOptions() {
128 void ReplicationOptions::SharedDtor() {
129 if (
this != default_instance_) {
133 void ReplicationOptions::SetCachedSize(
int size)
const {
134 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
135 _cached_size_ = size;
136 GOOGLE_SAFE_CONCURRENT_WRITES_END();
138 const ::google::protobuf::Descriptor* ReplicationOptions::descriptor() {
139 protobuf_AssignDescriptorsOnce();
140 return ReplicationOptions_descriptor_;
143 const ReplicationOptions& ReplicationOptions::default_instance() {
144 if (default_instance_ == NULL) protobuf_AddDesc_replication_5foptions_2eproto();
return *default_instance_;
147 ReplicationOptions* ReplicationOptions::default_instance_ = NULL;
149 ReplicationOptions* ReplicationOptions::New()
const {
150 return new ReplicationOptions;
153 void ReplicationOptions::Clear() {
154 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
155 is_replicated_ =
false;
157 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
158 mutable_unknown_fields()->Clear();
161 bool ReplicationOptions::MergePartialFromCodedStream(
162 ::google::protobuf::io::CodedInputStream* input) {
163 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
164 ::google::protobuf::uint32 tag;
165 while ((tag = input->ReadTag()) != 0) {
166 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
169 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
170 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
171 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
172 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
173 input, &is_replicated_)));
174 set_has_is_replicated();
176 goto handle_uninterpreted;
178 if (input->ExpectAtEnd())
return true;
183 handle_uninterpreted:
184 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
185 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
188 DO_(::google::protobuf::internal::WireFormat::SkipField(
189 input, tag, mutable_unknown_fields()));
198 void ReplicationOptions::SerializeWithCachedSizes(
199 ::google::protobuf::io::CodedOutputStream* output)
const {
201 if (has_is_replicated()) {
202 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_replicated(), output);
205 if (!unknown_fields().empty()) {
206 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
207 unknown_fields(), output);
211 ::google::protobuf::uint8* ReplicationOptions::SerializeWithCachedSizesToArray(
212 ::google::protobuf::uint8* target)
const {
214 if (has_is_replicated()) {
215 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_replicated(), target);
218 if (!unknown_fields().empty()) {
219 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
220 unknown_fields(), target);
225 int ReplicationOptions::ByteSize()
const {
228 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
230 if (has_is_replicated()) {
235 if (!unknown_fields().empty()) {
237 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
240 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
241 _cached_size_ = total_size;
242 GOOGLE_SAFE_CONCURRENT_WRITES_END();
246 void ReplicationOptions::MergeFrom(const ::google::protobuf::Message& from) {
247 GOOGLE_CHECK_NE(&from,
this);
248 const ReplicationOptions* source =
249 ::google::protobuf::internal::dynamic_cast_if_available<const ReplicationOptions*>(
251 if (source == NULL) {
252 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
258 void ReplicationOptions::MergeFrom(
const ReplicationOptions& from) {
259 GOOGLE_CHECK_NE(&from,
this);
260 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
261 if (from.has_is_replicated()) {
262 set_is_replicated(from.is_replicated());
265 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
268 void ReplicationOptions::CopyFrom(const ::google::protobuf::Message& from) {
269 if (&from ==
this)
return;
274 void ReplicationOptions::CopyFrom(
const ReplicationOptions& from) {
275 if (&from ==
this)
return;
280 bool ReplicationOptions::IsInitialized()
const {
285 void ReplicationOptions::Swap(ReplicationOptions* other) {
287 std::swap(is_replicated_, other->is_replicated_);
288 std::swap(_has_bits_[0], other->_has_bits_[0]);
289 _unknown_fields_.Swap(&other->_unknown_fields_);
290 std::swap(_cached_size_, other->_cached_size_);
294 ::google::protobuf::Metadata ReplicationOptions::GetMetadata()
const {
295 protobuf_AssignDescriptorsOnce();
296 ::google::protobuf::Metadata metadata;
297 metadata.descriptor = ReplicationOptions_descriptor_;
298 metadata.reflection = ReplicationOptions_reflection_;