Drizzled Public API Documentation

replication_options.pb.cc
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: replication_options.proto
3 
4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
5 #include "replication_options.pb.h"
6 
7 #include <algorithm>
8 
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>
17 // @@protoc_insertion_point(includes)
18 
19 namespace drizzled {
20 namespace message {
21 
22 namespace {
23 
24 const ::google::protobuf::Descriptor* ReplicationOptions_descriptor_ = NULL;
25 const ::google::protobuf::internal::GeneratedMessageReflection*
26  ReplicationOptions_reflection_ = NULL;
27 
28 } // namespace
29 
30 
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_),
40  };
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_),
48  -1,
49  ::google::protobuf::DescriptorPool::generated_pool(),
50  ::google::protobuf::MessageFactory::generated_factory(),
51  sizeof(ReplicationOptions));
52 }
53 
54 namespace {
55 
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);
60 }
61 
62 void protobuf_RegisterTypes(const ::std::string&) {
63  protobuf_AssignDescriptorsOnce();
64  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
65  ReplicationOptions_descriptor_, &ReplicationOptions::default_instance());
66 }
67 
68 } // namespace
69 
70 void protobuf_ShutdownFile_replication_5foptions_2eproto() {
71  delete ReplicationOptions::default_instance_;
72  delete ReplicationOptions_reflection_;
73 }
74 
75 void protobuf_AddDesc_replication_5foptions_2eproto() {
76  static bool already_here = false;
77  if (already_here) return;
78  already_here = true;
79  GOOGLE_PROTOBUF_VERIFY_VERSION;
80 
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"
85  "icationH\001", 129);
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);
91 }
92 
93 // Force AddDescriptors() to be called at static initialization time.
96  protobuf_AddDesc_replication_5foptions_2eproto();
97  }
98 } static_descriptor_initializer_replication_5foptions_2eproto_;
99 
100 // ===================================================================
101 
102 #ifndef _MSC_VER
103 const int ReplicationOptions::kIsReplicatedFieldNumber;
104 #endif // !_MSC_VER
105 
106 ReplicationOptions::ReplicationOptions()
107  : ::google::protobuf::Message() {
108  SharedCtor();
109 }
110 
111 void ReplicationOptions::InitAsDefaultInstance() {
112 }
113 
114 ReplicationOptions::ReplicationOptions(const ReplicationOptions& from)
115  : ::google::protobuf::Message() {
116  SharedCtor();
117  MergeFrom(from);
118 }
119 
120 void ReplicationOptions::SharedCtor() {
121  _cached_size_ = 0;
122  is_replicated_ = false;
123  ::memset(_has_bits_, 0, sizeof(_has_bits_));
124 }
125 
126 ReplicationOptions::~ReplicationOptions() {
127  SharedDtor();
128 }
129 
130 void ReplicationOptions::SharedDtor() {
131  if (this != default_instance_) {
132  }
133 }
134 
135 void ReplicationOptions::SetCachedSize(int size) const {
136  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
137  _cached_size_ = size;
138  GOOGLE_SAFE_CONCURRENT_WRITES_END();
139 }
140 const ::google::protobuf::Descriptor* ReplicationOptions::descriptor() {
141  protobuf_AssignDescriptorsOnce();
142  return ReplicationOptions_descriptor_;
143 }
144 
145 const ReplicationOptions& ReplicationOptions::default_instance() {
146  if (default_instance_ == NULL) protobuf_AddDesc_replication_5foptions_2eproto();
147  return *default_instance_;
148 }
149 
150 ReplicationOptions* ReplicationOptions::default_instance_ = NULL;
151 
152 ReplicationOptions* ReplicationOptions::New() const {
153  return new ReplicationOptions;
154 }
155 
156 void ReplicationOptions::Clear() {
157  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
158  is_replicated_ = false;
159  }
160  ::memset(_has_bits_, 0, sizeof(_has_bits_));
161  mutable_unknown_fields()->Clear();
162 }
163 
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)) {
170  // optional bool is_replicated = 2;
171  case 2: {
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();
178  } else {
179  goto handle_uninterpreted;
180  }
181  if (input->ExpectAtEnd()) return true;
182  break;
183  }
184 
185  default: {
186  handle_uninterpreted:
187  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
188  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
189  return true;
190  }
191  DO_(::google::protobuf::internal::WireFormat::SkipField(
192  input, tag, mutable_unknown_fields()));
193  break;
194  }
195  }
196  }
197  return true;
198 #undef DO_
199 }
200 
201 void ReplicationOptions::SerializeWithCachedSizes(
202  ::google::protobuf::io::CodedOutputStream* output) const {
203  // optional bool is_replicated = 2;
204  if (has_is_replicated()) {
205  ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_replicated(), output);
206  }
207 
208  if (!unknown_fields().empty()) {
209  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
210  unknown_fields(), output);
211  }
212 }
213 
214 ::google::protobuf::uint8* ReplicationOptions::SerializeWithCachedSizesToArray(
215  ::google::protobuf::uint8* target) const {
216  // optional bool is_replicated = 2;
217  if (has_is_replicated()) {
218  target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_replicated(), target);
219  }
220 
221  if (!unknown_fields().empty()) {
222  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
223  unknown_fields(), target);
224  }
225  return target;
226 }
227 
228 int ReplicationOptions::ByteSize() const {
229  int total_size = 0;
230 
231  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
232  // optional bool is_replicated = 2;
233  if (has_is_replicated()) {
234  total_size += 1 + 1;
235  }
236 
237  }
238  if (!unknown_fields().empty()) {
239  total_size +=
240  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
241  unknown_fields());
242  }
243  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
244  _cached_size_ = total_size;
245  GOOGLE_SAFE_CONCURRENT_WRITES_END();
246  return total_size;
247 }
248 
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*>(
253  &from);
254  if (source == NULL) {
255  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
256  } else {
257  MergeFrom(*source);
258  }
259 }
260 
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());
266  }
267  }
268  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
269 }
270 
271 void ReplicationOptions::CopyFrom(const ::google::protobuf::Message& from) {
272  if (&from == this) return;
273  Clear();
274  MergeFrom(from);
275 }
276 
277 void ReplicationOptions::CopyFrom(const ReplicationOptions& from) {
278  if (&from == this) return;
279  Clear();
280  MergeFrom(from);
281 }
282 
283 bool ReplicationOptions::IsInitialized() const {
284 
285  return true;
286 }
287 
288 void ReplicationOptions::Swap(ReplicationOptions* other) {
289  if (other != this) {
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_);
294  }
295 }
296 
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_;
302  return metadata;
303 }
304 
305 
306 // @@protoc_insertion_point(namespace_scope)
307 
308 } // namespace message
309 } // namespace drizzled
310 
311 // @@protoc_insertion_point(global_scope)