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  // @@protoc_insertion_point(constructor:drizzled.message.ReplicationOptions)
110 }
111 
112 void ReplicationOptions::InitAsDefaultInstance() {
113 }
114 
115 ReplicationOptions::ReplicationOptions(const ReplicationOptions& from)
116  : ::google::protobuf::Message() {
117  SharedCtor();
118  MergeFrom(from);
119  // @@protoc_insertion_point(copy_constructor:drizzled.message.ReplicationOptions)
120 }
121 
122 void ReplicationOptions::SharedCtor() {
123  _cached_size_ = 0;
124  is_replicated_ = false;
125  ::memset(_has_bits_, 0, sizeof(_has_bits_));
126 }
127 
128 ReplicationOptions::~ReplicationOptions() {
129  // @@protoc_insertion_point(destructor:drizzled.message.ReplicationOptions)
130  SharedDtor();
131 }
132 
133 void ReplicationOptions::SharedDtor() {
134  if (this != default_instance_) {
135  }
136 }
137 
138 void ReplicationOptions::SetCachedSize(int size) const {
139  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
140  _cached_size_ = size;
141  GOOGLE_SAFE_CONCURRENT_WRITES_END();
142 }
143 const ::google::protobuf::Descriptor* ReplicationOptions::descriptor() {
144  protobuf_AssignDescriptorsOnce();
145  return ReplicationOptions_descriptor_;
146 }
147 
148 const ReplicationOptions& ReplicationOptions::default_instance() {
149  if (default_instance_ == NULL) protobuf_AddDesc_replication_5foptions_2eproto();
150  return *default_instance_;
151 }
152 
153 ReplicationOptions* ReplicationOptions::default_instance_ = NULL;
154 
155 ReplicationOptions* ReplicationOptions::New() const {
156  return new ReplicationOptions;
157 }
158 
159 void ReplicationOptions::Clear() {
160  is_replicated_ = false;
161  ::memset(_has_bits_, 0, sizeof(_has_bits_));
162  mutable_unknown_fields()->Clear();
163 }
164 
165 bool ReplicationOptions::MergePartialFromCodedStream(
166  ::google::protobuf::io::CodedInputStream* input) {
167 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
168  ::google::protobuf::uint32 tag;
169  // @@protoc_insertion_point(parse_start:drizzled.message.ReplicationOptions)
170  for (;;) {
171  ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
172  tag = p.first;
173  if (!p.second) goto handle_unusual;
174  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
175  // optional bool is_replicated = 2;
176  case 2: {
177  if (tag == 16) {
178  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
179  bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
180  input, &is_replicated_)));
181  set_has_is_replicated();
182  } else {
183  goto handle_unusual;
184  }
185  if (input->ExpectAtEnd()) goto success;
186  break;
187  }
188 
189  default: {
190  handle_unusual:
191  if (tag == 0 ||
192  ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
193  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
194  goto success;
195  }
196  DO_(::google::protobuf::internal::WireFormat::SkipField(
197  input, tag, mutable_unknown_fields()));
198  break;
199  }
200  }
201  }
202 success:
203  // @@protoc_insertion_point(parse_success:drizzled.message.ReplicationOptions)
204  return true;
205 failure:
206  // @@protoc_insertion_point(parse_failure:drizzled.message.ReplicationOptions)
207  return false;
208 #undef DO_
209 }
210 
211 void ReplicationOptions::SerializeWithCachedSizes(
212  ::google::protobuf::io::CodedOutputStream* output) const {
213  // @@protoc_insertion_point(serialize_start:drizzled.message.ReplicationOptions)
214  // optional bool is_replicated = 2;
215  if (has_is_replicated()) {
216  ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_replicated(), output);
217  }
218 
219  if (!unknown_fields().empty()) {
220  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
221  unknown_fields(), output);
222  }
223  // @@protoc_insertion_point(serialize_end:drizzled.message.ReplicationOptions)
224 }
225 
226 ::google::protobuf::uint8* ReplicationOptions::SerializeWithCachedSizesToArray(
227  ::google::protobuf::uint8* target) const {
228  // @@protoc_insertion_point(serialize_to_array_start:drizzled.message.ReplicationOptions)
229  // optional bool is_replicated = 2;
230  if (has_is_replicated()) {
231  target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_replicated(), target);
232  }
233 
234  if (!unknown_fields().empty()) {
235  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
236  unknown_fields(), target);
237  }
238  // @@protoc_insertion_point(serialize_to_array_end:drizzled.message.ReplicationOptions)
239  return target;
240 }
241 
242 int ReplicationOptions::ByteSize() const {
243  int total_size = 0;
244 
245  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
246  // optional bool is_replicated = 2;
247  if (has_is_replicated()) {
248  total_size += 1 + 1;
249  }
250 
251  }
252  if (!unknown_fields().empty()) {
253  total_size +=
254  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
255  unknown_fields());
256  }
257  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
258  _cached_size_ = total_size;
259  GOOGLE_SAFE_CONCURRENT_WRITES_END();
260  return total_size;
261 }
262 
263 void ReplicationOptions::MergeFrom(const ::google::protobuf::Message& from) {
264  GOOGLE_CHECK_NE(&from, this);
265  const ReplicationOptions* source =
266  ::google::protobuf::internal::dynamic_cast_if_available<const ReplicationOptions*>(
267  &from);
268  if (source == NULL) {
269  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
270  } else {
271  MergeFrom(*source);
272  }
273 }
274 
275 void ReplicationOptions::MergeFrom(const ReplicationOptions& from) {
276  GOOGLE_CHECK_NE(&from, this);
277  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
278  if (from.has_is_replicated()) {
279  set_is_replicated(from.is_replicated());
280  }
281  }
282  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
283 }
284 
285 void ReplicationOptions::CopyFrom(const ::google::protobuf::Message& from) {
286  if (&from == this) return;
287  Clear();
288  MergeFrom(from);
289 }
290 
291 void ReplicationOptions::CopyFrom(const ReplicationOptions& from) {
292  if (&from == this) return;
293  Clear();
294  MergeFrom(from);
295 }
296 
297 bool ReplicationOptions::IsInitialized() const {
298 
299  return true;
300 }
301 
302 void ReplicationOptions::Swap(ReplicationOptions* other) {
303  if (other != this) {
304  std::swap(is_replicated_, other->is_replicated_);
305  std::swap(_has_bits_[0], other->_has_bits_[0]);
306  _unknown_fields_.Swap(&other->_unknown_fields_);
307  std::swap(_cached_size_, other->_cached_size_);
308  }
309 }
310 
311 ::google::protobuf::Metadata ReplicationOptions::GetMetadata() const {
312  protobuf_AssignDescriptorsOnce();
313  ::google::protobuf::Metadata metadata;
314  metadata.descriptor = ReplicationOptions_descriptor_;
315  metadata.reflection = ReplicationOptions_reflection_;
316  return metadata;
317 }
318 
319 
320 // @@protoc_insertion_point(namespace_scope)
321 
322 } // namespace message
323 } // namespace drizzled
324 
325 // @@protoc_insertion_point(global_scope)
TODO: Rename this file - func.h is stupid.