4 #ifndef PROTOBUF_catalog_2eproto__INCLUDED
5 #define PROTOBUF_catalog_2eproto__INCLUDED
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 2004000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 2004001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
22 #include <google/protobuf/generated_message_util.h>
23 #include <google/protobuf/repeated_field.h>
24 #include <google/protobuf/extension_set.h>
25 #include <google/protobuf/generated_message_reflection.h>
26 #include "engine.pb.h"
33 void protobuf_AddDesc_catalog_2eproto();
34 void protobuf_AssignDesc_catalog_2eproto();
35 void protobuf_ShutdownFile_catalog_2eproto();
41 class Catalog :
public ::google::protobuf::Message {
53 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
54 return _unknown_fields_;
57 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
58 return &_unknown_fields_;
61 static const ::google::protobuf::Descriptor* descriptor();
62 static const Catalog& default_instance();
69 void CopyFrom(const ::google::protobuf::Message& from);
70 void MergeFrom(const ::google::protobuf::Message& from);
71 void CopyFrom(
const Catalog& from);
72 void MergeFrom(
const Catalog& from);
74 bool IsInitialized()
const;
77 bool MergePartialFromCodedStream(
78 ::google::protobuf::io::CodedInputStream* input);
79 void SerializeWithCachedSizes(
80 ::google::protobuf::io::CodedOutputStream* output)
const;
81 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
82 int GetCachedSize()
const {
return _cached_size_; }
86 void SetCachedSize(
int size)
const;
89 ::google::protobuf::Metadata GetMetadata()
const;
96 inline bool has_name()
const;
97 inline void clear_name();
98 static const int kNameFieldNumber = 1;
99 inline const ::std::string& name()
const;
100 inline void set_name(const ::std::string& value);
101 inline void set_name(
const char* value);
102 inline void set_name(
const char* value,
size_t size);
103 inline ::std::string* mutable_name();
104 inline ::std::string* release_name();
107 inline bool has_engine()
const;
108 inline void clear_engine();
109 static const int kEngineFieldNumber = 3;
110 inline const ::drizzled::message::Engine& engine()
const;
111 inline ::drizzled::message::Engine* mutable_engine();
112 inline ::drizzled::message::Engine* release_engine();
115 inline bool has_creation_timestamp()
const;
116 inline void clear_creation_timestamp();
117 static const int kCreationTimestampFieldNumber = 11;
118 inline ::google::protobuf::uint64 creation_timestamp()
const;
119 inline void set_creation_timestamp(::google::protobuf::uint64 value);
122 inline bool has_update_timestamp()
const;
123 inline void clear_update_timestamp();
124 static const int kUpdateTimestampFieldNumber = 12;
125 inline ::google::protobuf::uint64 update_timestamp()
const;
126 inline void set_update_timestamp(::google::protobuf::uint64 value);
129 inline bool has_uuid()
const;
130 inline void clear_uuid();
131 static const int kUuidFieldNumber = 13;
132 inline const ::std::string& uuid()
const;
133 inline void set_uuid(const ::std::string& value);
134 inline void set_uuid(
const char* value);
135 inline void set_uuid(
const char* value,
size_t size);
136 inline ::std::string* mutable_uuid();
137 inline ::std::string* release_uuid();
140 inline bool has_version()
const;
141 inline void clear_version();
142 static const int kVersionFieldNumber = 14;
143 inline ::google::protobuf::uint64 version()
const;
144 inline void set_version(::google::protobuf::uint64 value);
148 inline void set_has_name();
149 inline void clear_has_name();
150 inline void set_has_engine();
151 inline void clear_has_engine();
152 inline void set_has_creation_timestamp();
153 inline void clear_has_creation_timestamp();
154 inline void set_has_update_timestamp();
155 inline void clear_has_update_timestamp();
156 inline void set_has_uuid();
157 inline void clear_has_uuid();
158 inline void set_has_version();
159 inline void clear_has_version();
161 ::google::protobuf::UnknownFieldSet _unknown_fields_;
163 ::std::string* name_;
165 ::google::protobuf::uint64 creation_timestamp_;
166 ::google::protobuf::uint64 update_timestamp_;
167 ::std::string* uuid_;
168 ::google::protobuf::uint64 version_;
170 mutable int _cached_size_;
171 ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32];
173 friend void protobuf_AddDesc_catalog_2eproto();
174 friend void protobuf_AssignDesc_catalog_2eproto();
175 friend void protobuf_ShutdownFile_catalog_2eproto();
177 void InitAsDefaultInstance();
178 static Catalog* default_instance_;
188 inline bool Catalog::has_name()
const {
189 return (_has_bits_[0] & 0x00000001u) != 0;
191 inline void Catalog::set_has_name() {
192 _has_bits_[0] |= 0x00000001u;
194 inline void Catalog::clear_has_name() {
195 _has_bits_[0] &= ~0x00000001u;
197 inline void Catalog::clear_name() {
198 if (name_ != &::google::protobuf::internal::kEmptyString) {
203 inline const ::std::string& Catalog::name()
const {
206 inline void Catalog::set_name(const ::std::string& value) {
208 if (name_ == &::google::protobuf::internal::kEmptyString) {
209 name_ = new ::std::string;
211 name_->assign(value);
213 inline void Catalog::set_name(
const char* value) {
215 if (name_ == &::google::protobuf::internal::kEmptyString) {
216 name_ = new ::std::string;
218 name_->assign(value);
220 inline void Catalog::set_name(
const char* value,
size_t size) {
222 if (name_ == &::google::protobuf::internal::kEmptyString) {
223 name_ = new ::std::string;
225 name_->assign(reinterpret_cast<const char*>(value), size);
227 inline ::std::string* Catalog::mutable_name() {
229 if (name_ == &::google::protobuf::internal::kEmptyString) {
230 name_ = new ::std::string;
234 inline ::std::string* Catalog::release_name() {
236 if (name_ == &::google::protobuf::internal::kEmptyString) {
239 ::std::string* temp = name_;
240 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
246 inline bool Catalog::has_engine()
const {
247 return (_has_bits_[0] & 0x00000002u) != 0;
249 inline void Catalog::set_has_engine() {
250 _has_bits_[0] |= 0x00000002u;
252 inline void Catalog::clear_has_engine() {
253 _has_bits_[0] &= ~0x00000002u;
255 inline void Catalog::clear_engine() {
256 if (engine_ != NULL) engine_->::drizzled::message::Engine::Clear();
259 inline const ::drizzled::message::Engine& Catalog::engine()
const {
260 return engine_ != NULL ? *engine_ : *default_instance_->engine_;
262 inline ::drizzled::message::Engine* Catalog::mutable_engine() {
264 if (engine_ == NULL) engine_ = new ::drizzled::message::Engine;
267 inline ::drizzled::message::Engine* Catalog::release_engine() {
275 inline bool Catalog::has_creation_timestamp()
const {
276 return (_has_bits_[0] & 0x00000004u) != 0;
278 inline void Catalog::set_has_creation_timestamp() {
279 _has_bits_[0] |= 0x00000004u;
281 inline void Catalog::clear_has_creation_timestamp() {
282 _has_bits_[0] &= ~0x00000004u;
284 inline void Catalog::clear_creation_timestamp() {
285 creation_timestamp_ = GOOGLE_ULONGLONG(0);
286 clear_has_creation_timestamp();
288 inline ::google::protobuf::uint64 Catalog::creation_timestamp()
const {
289 return creation_timestamp_;
291 inline void Catalog::set_creation_timestamp(::google::protobuf::uint64 value) {
292 set_has_creation_timestamp();
293 creation_timestamp_ = value;
297 inline bool Catalog::has_update_timestamp()
const {
298 return (_has_bits_[0] & 0x00000008u) != 0;
300 inline void Catalog::set_has_update_timestamp() {
301 _has_bits_[0] |= 0x00000008u;
303 inline void Catalog::clear_has_update_timestamp() {
304 _has_bits_[0] &= ~0x00000008u;
306 inline void Catalog::clear_update_timestamp() {
307 update_timestamp_ = GOOGLE_ULONGLONG(0);
308 clear_has_update_timestamp();
310 inline ::google::protobuf::uint64 Catalog::update_timestamp()
const {
311 return update_timestamp_;
313 inline void Catalog::set_update_timestamp(::google::protobuf::uint64 value) {
314 set_has_update_timestamp();
315 update_timestamp_ = value;
319 inline bool Catalog::has_uuid()
const {
320 return (_has_bits_[0] & 0x00000010u) != 0;
322 inline void Catalog::set_has_uuid() {
323 _has_bits_[0] |= 0x00000010u;
325 inline void Catalog::clear_has_uuid() {
326 _has_bits_[0] &= ~0x00000010u;
328 inline void Catalog::clear_uuid() {
329 if (uuid_ != &::google::protobuf::internal::kEmptyString) {
334 inline const ::std::string& Catalog::uuid()
const {
337 inline void Catalog::set_uuid(const ::std::string& value) {
339 if (uuid_ == &::google::protobuf::internal::kEmptyString) {
340 uuid_ = new ::std::string;
342 uuid_->assign(value);
344 inline void Catalog::set_uuid(
const char* value) {
346 if (uuid_ == &::google::protobuf::internal::kEmptyString) {
347 uuid_ = new ::std::string;
349 uuid_->assign(value);
351 inline void Catalog::set_uuid(
const char* value,
size_t size) {
353 if (uuid_ == &::google::protobuf::internal::kEmptyString) {
354 uuid_ = new ::std::string;
356 uuid_->assign(reinterpret_cast<const char*>(value), size);
358 inline ::std::string* Catalog::mutable_uuid() {
360 if (uuid_ == &::google::protobuf::internal::kEmptyString) {
361 uuid_ = new ::std::string;
365 inline ::std::string* Catalog::release_uuid() {
367 if (uuid_ == &::google::protobuf::internal::kEmptyString) {
370 ::std::string* temp = uuid_;
371 uuid_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
377 inline bool Catalog::has_version()
const {
378 return (_has_bits_[0] & 0x00000020u) != 0;
380 inline void Catalog::set_has_version() {
381 _has_bits_[0] |= 0x00000020u;
383 inline void Catalog::clear_has_version() {
384 _has_bits_[0] &= ~0x00000020u;
386 inline void Catalog::clear_version() {
387 version_ = GOOGLE_ULONGLONG(0);
390 inline ::google::protobuf::uint64 Catalog::version()
const {
393 inline void Catalog::set_version(::google::protobuf::uint64 value) {
415 #endif // PROTOBUF_catalog_2eproto__INCLUDED