4 #ifndef PROTOBUF_catalog_2eproto__INCLUDED
5 #define PROTOBUF_catalog_2eproto__INCLUDED
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 2006000
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 2006001 < 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;
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();
105 inline void set_allocated_name(::std::string* name);
108 inline bool has_engine()
const;
109 inline void clear_engine();
110 static const int kEngineFieldNumber = 3;
111 inline const ::drizzled::message::Engine& engine()
const;
112 inline ::drizzled::message::Engine* mutable_engine();
113 inline ::drizzled::message::Engine* release_engine();
117 inline bool has_creation_timestamp()
const;
118 inline void clear_creation_timestamp();
119 static const int kCreationTimestampFieldNumber = 11;
120 inline ::google::protobuf::uint64 creation_timestamp()
const;
121 inline void set_creation_timestamp(::google::protobuf::uint64 value);
124 inline bool has_update_timestamp()
const;
125 inline void clear_update_timestamp();
126 static const int kUpdateTimestampFieldNumber = 12;
127 inline ::google::protobuf::uint64 update_timestamp()
const;
128 inline void set_update_timestamp(::google::protobuf::uint64 value);
131 inline bool has_uuid()
const;
132 inline void clear_uuid();
133 static const int kUuidFieldNumber = 13;
134 inline const ::std::string& uuid()
const;
135 inline void set_uuid(const ::std::string& value);
136 inline void set_uuid(
const char* value);
137 inline void set_uuid(
const char* value,
size_t size);
138 inline ::std::string* mutable_uuid();
139 inline ::std::string* release_uuid();
140 inline void set_allocated_uuid(::std::string* uuid);
143 inline bool has_version()
const;
144 inline void clear_version();
145 static const int kVersionFieldNumber = 14;
146 inline ::google::protobuf::uint64 version()
const;
147 inline void set_version(::google::protobuf::uint64 value);
151 inline void set_has_name();
152 inline void clear_has_name();
153 inline void set_has_engine();
154 inline void clear_has_engine();
155 inline void set_has_creation_timestamp();
156 inline void clear_has_creation_timestamp();
157 inline void set_has_update_timestamp();
158 inline void clear_has_update_timestamp();
159 inline void set_has_uuid();
160 inline void clear_has_uuid();
161 inline void set_has_version();
162 inline void clear_has_version();
164 ::google::protobuf::UnknownFieldSet _unknown_fields_;
166 ::google::protobuf::uint32 _has_bits_[1];
167 mutable int _cached_size_;
168 ::std::string* name_;
170 ::google::protobuf::uint64 creation_timestamp_;
171 ::google::protobuf::uint64 update_timestamp_;
172 ::std::string* uuid_;
173 ::google::protobuf::uint64 version_;
174 friend void protobuf_AddDesc_catalog_2eproto();
175 friend void protobuf_AssignDesc_catalog_2eproto();
176 friend void protobuf_ShutdownFile_catalog_2eproto();
178 void InitAsDefaultInstance();
179 static Catalog* default_instance_;
189 inline bool Catalog::has_name()
const {
190 return (_has_bits_[0] & 0x00000001u) != 0;
192 inline void Catalog::set_has_name() {
193 _has_bits_[0] |= 0x00000001u;
195 inline void Catalog::clear_has_name() {
196 _has_bits_[0] &= ~0x00000001u;
198 inline void Catalog::clear_name() {
199 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
204 inline const ::std::string& Catalog::name()
const {
208 inline void Catalog::set_name(const ::std::string& value) {
210 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
211 name_ = new ::std::string;
213 name_->assign(value);
216 inline void Catalog::set_name(
const char* value) {
218 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
219 name_ = new ::std::string;
221 name_->assign(value);
224 inline void Catalog::set_name(
const char* value,
size_t size) {
226 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
227 name_ = new ::std::string;
229 name_->assign(reinterpret_cast<const char*>(value), size);
232 inline ::std::string* Catalog::mutable_name() {
234 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
235 name_ = new ::std::string;
240 inline ::std::string* Catalog::release_name() {
242 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
245 ::std::string* temp = name_;
246 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
250 inline void Catalog::set_allocated_name(::std::string* name) {
251 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
259 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
265 inline bool Catalog::has_engine()
const {
266 return (_has_bits_[0] & 0x00000002u) != 0;
268 inline void Catalog::set_has_engine() {
269 _has_bits_[0] |= 0x00000002u;
271 inline void Catalog::clear_has_engine() {
272 _has_bits_[0] &= ~0x00000002u;
274 inline void Catalog::clear_engine() {
275 if (engine_ != NULL) engine_->::drizzled::message::Engine::Clear();
278 inline const ::drizzled::message::Engine& Catalog::engine()
const {
280 return engine_ != NULL ? *engine_ : *default_instance_->engine_;
282 inline ::drizzled::message::Engine* Catalog::mutable_engine() {
284 if (engine_ == NULL) engine_ = new ::drizzled::message::Engine;
288 inline ::drizzled::message::Engine* Catalog::release_engine() {
306 inline bool Catalog::has_creation_timestamp()
const {
307 return (_has_bits_[0] & 0x00000004u) != 0;
309 inline void Catalog::set_has_creation_timestamp() {
310 _has_bits_[0] |= 0x00000004u;
312 inline void Catalog::clear_has_creation_timestamp() {
313 _has_bits_[0] &= ~0x00000004u;
315 inline void Catalog::clear_creation_timestamp() {
316 creation_timestamp_ = GOOGLE_ULONGLONG(0);
317 clear_has_creation_timestamp();
319 inline ::google::protobuf::uint64 Catalog::creation_timestamp()
const {
321 return creation_timestamp_;
323 inline void Catalog::set_creation_timestamp(::google::protobuf::uint64 value) {
324 set_has_creation_timestamp();
325 creation_timestamp_ = value;
330 inline bool Catalog::has_update_timestamp()
const {
331 return (_has_bits_[0] & 0x00000008u) != 0;
333 inline void Catalog::set_has_update_timestamp() {
334 _has_bits_[0] |= 0x00000008u;
336 inline void Catalog::clear_has_update_timestamp() {
337 _has_bits_[0] &= ~0x00000008u;
339 inline void Catalog::clear_update_timestamp() {
340 update_timestamp_ = GOOGLE_ULONGLONG(0);
341 clear_has_update_timestamp();
343 inline ::google::protobuf::uint64 Catalog::update_timestamp()
const {
345 return update_timestamp_;
347 inline void Catalog::set_update_timestamp(::google::protobuf::uint64 value) {
348 set_has_update_timestamp();
349 update_timestamp_ = value;
354 inline bool Catalog::has_uuid()
const {
355 return (_has_bits_[0] & 0x00000010u) != 0;
357 inline void Catalog::set_has_uuid() {
358 _has_bits_[0] |= 0x00000010u;
360 inline void Catalog::clear_has_uuid() {
361 _has_bits_[0] &= ~0x00000010u;
363 inline void Catalog::clear_uuid() {
364 if (uuid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
369 inline const ::std::string& Catalog::uuid()
const {
373 inline void Catalog::set_uuid(const ::std::string& value) {
375 if (uuid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
376 uuid_ = new ::std::string;
378 uuid_->assign(value);
381 inline void Catalog::set_uuid(
const char* value) {
383 if (uuid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
384 uuid_ = new ::std::string;
386 uuid_->assign(value);
389 inline void Catalog::set_uuid(
const char* value,
size_t size) {
391 if (uuid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
392 uuid_ = new ::std::string;
394 uuid_->assign(reinterpret_cast<const char*>(value), size);
397 inline ::std::string* Catalog::mutable_uuid() {
399 if (uuid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
400 uuid_ = new ::std::string;
405 inline ::std::string* Catalog::release_uuid() {
407 if (uuid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
410 ::std::string* temp = uuid_;
411 uuid_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
415 inline void Catalog::set_allocated_uuid(::std::string* uuid) {
416 if (uuid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
424 uuid_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
430 inline bool Catalog::has_version()
const {
431 return (_has_bits_[0] & 0x00000020u) != 0;
433 inline void Catalog::set_has_version() {
434 _has_bits_[0] |= 0x00000020u;
436 inline void Catalog::clear_has_version() {
437 _has_bits_[0] &= ~0x00000020u;
439 inline void Catalog::clear_version() {
440 version_ = GOOGLE_ULONGLONG(0);
443 inline ::google::protobuf::uint64 Catalog::version()
const {
447 inline void Catalog::set_version(::google::protobuf::uint64 value) {
470 #endif // PROTOBUF_catalog_2eproto__INCLUDED
TODO: Rename this file - func.h is stupid.