Drizzled Public API Documentation

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