4 #ifndef PROTOBUF_catalog_2eproto__INCLUDED
5 #define PROTOBUF_catalog_2eproto__INCLUDED
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 2005000
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 2005000 < 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/message.h>
24 #include <google/protobuf/repeated_field.h>
25 #include <google/protobuf/extension_set.h>
26 #include <google/protobuf/unknown_field_set.h>
27 #include "engine.pb.h"
34 void protobuf_AddDesc_catalog_2eproto();
35 void protobuf_AssignDesc_catalog_2eproto();
36 void protobuf_ShutdownFile_catalog_2eproto();
42 class Catalog :
public ::google::protobuf::Message {
54 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
55 return _unknown_fields_;
58 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
59 return &_unknown_fields_;
62 static const ::google::protobuf::Descriptor* descriptor();
63 static const Catalog& default_instance();
70 void CopyFrom(const ::google::protobuf::Message& from);
71 void MergeFrom(const ::google::protobuf::Message& from);
72 void CopyFrom(
const Catalog& from);
73 void MergeFrom(
const Catalog& from);
75 bool IsInitialized()
const;
78 bool MergePartialFromCodedStream(
79 ::google::protobuf::io::CodedInputStream* input);
80 void SerializeWithCachedSizes(
81 ::google::protobuf::io::CodedOutputStream* output)
const;
82 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
83 int GetCachedSize()
const {
return _cached_size_; }
87 void SetCachedSize(
int size)
const;
90 ::google::protobuf::Metadata GetMetadata()
const;
97 inline bool has_name()
const;
98 inline void clear_name();
99 static const int kNameFieldNumber = 1;
100 inline const ::std::string& name()
const;
101 inline void set_name(const ::std::string& value);
102 inline void set_name(
const char* value);
103 inline void set_name(
const char* value,
size_t size);
104 inline ::std::string* mutable_name();
105 inline ::std::string* release_name();
106 inline void set_allocated_name(::std::string* name);
109 inline bool has_engine()
const;
110 inline void clear_engine();
111 static const int kEngineFieldNumber = 3;
112 inline const ::drizzled::message::Engine& engine()
const;
113 inline ::drizzled::message::Engine* mutable_engine();
114 inline ::drizzled::message::Engine* release_engine();
118 inline bool has_creation_timestamp()
const;
119 inline void clear_creation_timestamp();
120 static const int kCreationTimestampFieldNumber = 11;
121 inline ::google::protobuf::uint64 creation_timestamp()
const;
122 inline void set_creation_timestamp(::google::protobuf::uint64 value);
125 inline bool has_update_timestamp()
const;
126 inline void clear_update_timestamp();
127 static const int kUpdateTimestampFieldNumber = 12;
128 inline ::google::protobuf::uint64 update_timestamp()
const;
129 inline void set_update_timestamp(::google::protobuf::uint64 value);
132 inline bool has_uuid()
const;
133 inline void clear_uuid();
134 static const int kUuidFieldNumber = 13;
135 inline const ::std::string& uuid()
const;
136 inline void set_uuid(const ::std::string& value);
137 inline void set_uuid(
const char* value);
138 inline void set_uuid(
const char* value,
size_t size);
139 inline ::std::string* mutable_uuid();
140 inline ::std::string* release_uuid();
141 inline void set_allocated_uuid(::std::string* uuid);
144 inline bool has_version()
const;
145 inline void clear_version();
146 static const int kVersionFieldNumber = 14;
147 inline ::google::protobuf::uint64 version()
const;
148 inline void set_version(::google::protobuf::uint64 value);
152 inline void set_has_name();
153 inline void clear_has_name();
154 inline void set_has_engine();
155 inline void clear_has_engine();
156 inline void set_has_creation_timestamp();
157 inline void clear_has_creation_timestamp();
158 inline void set_has_update_timestamp();
159 inline void clear_has_update_timestamp();
160 inline void set_has_uuid();
161 inline void clear_has_uuid();
162 inline void set_has_version();
163 inline void clear_has_version();
165 ::google::protobuf::UnknownFieldSet _unknown_fields_;
167 ::std::string* name_;
169 ::google::protobuf::uint64 creation_timestamp_;
170 ::google::protobuf::uint64 update_timestamp_;
171 ::std::string* uuid_;
172 ::google::protobuf::uint64 version_;
174 mutable int _cached_size_;
175 ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32];
177 friend void protobuf_AddDesc_catalog_2eproto();
178 friend void protobuf_AssignDesc_catalog_2eproto();
179 friend void protobuf_ShutdownFile_catalog_2eproto();
181 void InitAsDefaultInstance();
182 static Catalog* default_instance_;
192 inline bool Catalog::has_name()
const {
193 return (_has_bits_[0] & 0x00000001u) != 0;
195 inline void Catalog::set_has_name() {
196 _has_bits_[0] |= 0x00000001u;
198 inline void Catalog::clear_has_name() {
199 _has_bits_[0] &= ~0x00000001u;
201 inline void Catalog::clear_name() {
202 if (name_ != &::google::protobuf::internal::kEmptyString) {
207 inline const ::std::string& Catalog::name()
const {
210 inline void Catalog::set_name(const ::std::string& value) {
212 if (name_ == &::google::protobuf::internal::kEmptyString) {
213 name_ = new ::std::string;
215 name_->assign(value);
217 inline void Catalog::set_name(
const char* value) {
219 if (name_ == &::google::protobuf::internal::kEmptyString) {
220 name_ = new ::std::string;
222 name_->assign(value);
224 inline void Catalog::set_name(
const char* value,
size_t size) {
226 if (name_ == &::google::protobuf::internal::kEmptyString) {
227 name_ = new ::std::string;
229 name_->assign(reinterpret_cast<const char*>(value), size);
231 inline ::std::string* Catalog::mutable_name() {
233 if (name_ == &::google::protobuf::internal::kEmptyString) {
234 name_ = new ::std::string;
238 inline ::std::string* Catalog::release_name() {
240 if (name_ == &::google::protobuf::internal::kEmptyString) {
243 ::std::string* temp = name_;
244 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
248 inline void Catalog::set_allocated_name(::std::string* name) {
249 if (name_ != &::google::protobuf::internal::kEmptyString) {
257 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
262 inline bool Catalog::has_engine()
const {
263 return (_has_bits_[0] & 0x00000002u) != 0;
265 inline void Catalog::set_has_engine() {
266 _has_bits_[0] |= 0x00000002u;
268 inline void Catalog::clear_has_engine() {
269 _has_bits_[0] &= ~0x00000002u;
271 inline void Catalog::clear_engine() {
272 if (engine_ != NULL) engine_->::drizzled::message::Engine::Clear();
275 inline const ::drizzled::message::Engine& Catalog::engine()
const {
276 return engine_ != NULL ? *engine_ : *default_instance_->engine_;
278 inline ::drizzled::message::Engine* Catalog::mutable_engine() {
280 if (engine_ == NULL) engine_ = new ::drizzled::message::Engine;
283 inline ::drizzled::message::Engine* Catalog::release_engine() {
300 inline bool Catalog::has_creation_timestamp()
const {
301 return (_has_bits_[0] & 0x00000004u) != 0;
303 inline void Catalog::set_has_creation_timestamp() {
304 _has_bits_[0] |= 0x00000004u;
306 inline void Catalog::clear_has_creation_timestamp() {
307 _has_bits_[0] &= ~0x00000004u;
309 inline void Catalog::clear_creation_timestamp() {
310 creation_timestamp_ = GOOGLE_ULONGLONG(0);
311 clear_has_creation_timestamp();
313 inline ::google::protobuf::uint64 Catalog::creation_timestamp()
const {
314 return creation_timestamp_;
316 inline void Catalog::set_creation_timestamp(::google::protobuf::uint64 value) {
317 set_has_creation_timestamp();
318 creation_timestamp_ = value;
322 inline bool Catalog::has_update_timestamp()
const {
323 return (_has_bits_[0] & 0x00000008u) != 0;
325 inline void Catalog::set_has_update_timestamp() {
326 _has_bits_[0] |= 0x00000008u;
328 inline void Catalog::clear_has_update_timestamp() {
329 _has_bits_[0] &= ~0x00000008u;
331 inline void Catalog::clear_update_timestamp() {
332 update_timestamp_ = GOOGLE_ULONGLONG(0);
333 clear_has_update_timestamp();
335 inline ::google::protobuf::uint64 Catalog::update_timestamp()
const {
336 return update_timestamp_;
338 inline void Catalog::set_update_timestamp(::google::protobuf::uint64 value) {
339 set_has_update_timestamp();
340 update_timestamp_ = value;
344 inline bool Catalog::has_uuid()
const {
345 return (_has_bits_[0] & 0x00000010u) != 0;
347 inline void Catalog::set_has_uuid() {
348 _has_bits_[0] |= 0x00000010u;
350 inline void Catalog::clear_has_uuid() {
351 _has_bits_[0] &= ~0x00000010u;
353 inline void Catalog::clear_uuid() {
354 if (uuid_ != &::google::protobuf::internal::kEmptyString) {
359 inline const ::std::string& Catalog::uuid()
const {
362 inline void Catalog::set_uuid(const ::std::string& value) {
364 if (uuid_ == &::google::protobuf::internal::kEmptyString) {
365 uuid_ = new ::std::string;
367 uuid_->assign(value);
369 inline void Catalog::set_uuid(
const char* value) {
371 if (uuid_ == &::google::protobuf::internal::kEmptyString) {
372 uuid_ = new ::std::string;
374 uuid_->assign(value);
376 inline void Catalog::set_uuid(
const char* value,
size_t size) {
378 if (uuid_ == &::google::protobuf::internal::kEmptyString) {
379 uuid_ = new ::std::string;
381 uuid_->assign(reinterpret_cast<const char*>(value), size);
383 inline ::std::string* Catalog::mutable_uuid() {
385 if (uuid_ == &::google::protobuf::internal::kEmptyString) {
386 uuid_ = new ::std::string;
390 inline ::std::string* Catalog::release_uuid() {
392 if (uuid_ == &::google::protobuf::internal::kEmptyString) {
395 ::std::string* temp = uuid_;
396 uuid_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
400 inline void Catalog::set_allocated_uuid(::std::string* uuid) {
401 if (uuid_ != &::google::protobuf::internal::kEmptyString) {
409 uuid_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
414 inline bool Catalog::has_version()
const {
415 return (_has_bits_[0] & 0x00000020u) != 0;
417 inline void Catalog::set_has_version() {
418 _has_bits_[0] |= 0x00000020u;
420 inline void Catalog::clear_has_version() {
421 _has_bits_[0] &= ~0x00000020u;
423 inline void Catalog::clear_version() {
424 version_ = GOOGLE_ULONGLONG(0);
427 inline ::google::protobuf::uint64 Catalog::version()
const {
430 inline void Catalog::set_version(::google::protobuf::uint64 value) {
452 #endif // PROTOBUF_catalog_2eproto__INCLUDED