4 #ifndef PROTOBUF_goby_2fpb_2fprotobuf_2fdatabase_5frequest_2eproto__INCLUDED 5 #define PROTOBUF_goby_2fpb_2fprotobuf_2fdatabase_5frequest_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/generated_enum_reflection.h> 27 #include <google/protobuf/unknown_field_set.h> 28 #include "google/protobuf/descriptor.pb.h" 29 #include "goby/pb/protobuf/interprocess_notification.pb.h" 30 #include "goby/common/protobuf/option_extensions.pb.h" 31 #include <boost/units/quantity.hpp> 32 #include <boost/units/absolute.hpp> 33 #include <boost/units/dimensionless_type.hpp> 34 #include <boost/units/make_scaled_unit.hpp> 42 void protobuf_AddDesc_goby_2fpb_2fprotobuf_2fdatabase_5frequest_2eproto();
43 void protobuf_AssignDesc_goby_2fpb_2fprotobuf_2fdatabase_5frequest_2eproto();
44 void protobuf_ShutdownFile_goby_2fpb_2fprotobuf_2fdatabase_5frequest_2eproto();
46 class DatabaseRequest;
47 class DatabaseResponse;
48 class DatabaseClientConfig;
50 enum DatabaseRequest_RequestType {
51 DatabaseRequest_RequestType_NEW_PUBLISH = 1,
52 DatabaseRequest_RequestType_SQL_QUERY = 2
54 bool DatabaseRequest_RequestType_IsValid(
int value);
55 const DatabaseRequest_RequestType DatabaseRequest_RequestType_RequestType_MIN = DatabaseRequest_RequestType_NEW_PUBLISH;
56 const DatabaseRequest_RequestType DatabaseRequest_RequestType_RequestType_MAX = DatabaseRequest_RequestType_SQL_QUERY;
57 const int DatabaseRequest_RequestType_RequestType_ARRAYSIZE = DatabaseRequest_RequestType_RequestType_MAX + 1;
59 const ::google::protobuf::EnumDescriptor* DatabaseRequest_RequestType_descriptor();
60 inline const ::std::string& DatabaseRequest_RequestType_Name(DatabaseRequest_RequestType value) {
61 return ::google::protobuf::internal::NameOfEnum(
62 DatabaseRequest_RequestType_descriptor(), value);
64 inline bool DatabaseRequest_RequestType_Parse(
65 const ::std::string& name, DatabaseRequest_RequestType* value) {
66 return ::google::protobuf::internal::ParseNamedEnum<DatabaseRequest_RequestType>(
67 DatabaseRequest_RequestType_descriptor(), name, value);
69 enum DatabaseResponse_ResponseType {
70 DatabaseResponse_ResponseType_NEW_PUBLISH_ACCEPTED = 1,
71 DatabaseResponse_ResponseType_NEW_PUBLISH_DENIED = 2,
72 DatabaseResponse_ResponseType_SQL_QUERY_RESULT = 3,
73 DatabaseResponse_ResponseType_SQL_QUERY_INVALID = 4
75 bool DatabaseResponse_ResponseType_IsValid(
int value);
76 const DatabaseResponse_ResponseType DatabaseResponse_ResponseType_ResponseType_MIN = DatabaseResponse_ResponseType_NEW_PUBLISH_ACCEPTED;
77 const DatabaseResponse_ResponseType DatabaseResponse_ResponseType_ResponseType_MAX = DatabaseResponse_ResponseType_SQL_QUERY_INVALID;
78 const int DatabaseResponse_ResponseType_ResponseType_ARRAYSIZE = DatabaseResponse_ResponseType_ResponseType_MAX + 1;
80 const ::google::protobuf::EnumDescriptor* DatabaseResponse_ResponseType_descriptor();
81 inline const ::std::string& DatabaseResponse_ResponseType_Name(DatabaseResponse_ResponseType value) {
82 return ::google::protobuf::internal::NameOfEnum(
83 DatabaseResponse_ResponseType_descriptor(), value);
85 inline bool DatabaseResponse_ResponseType_Parse(
86 const ::std::string& name, DatabaseResponse_ResponseType* value) {
87 return ::google::protobuf::internal::ParseNamedEnum<DatabaseResponse_ResponseType>(
88 DatabaseResponse_ResponseType_descriptor(), name, value);
104 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
105 return _unknown_fields_;
108 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
109 return &_unknown_fields_;
112 static const ::google::protobuf::Descriptor* descriptor();
120 void CopyFrom(const ::google::protobuf::Message& from);
121 void MergeFrom(const ::google::protobuf::Message& from);
125 bool IsInitialized()
const;
127 int ByteSize()
const;
128 bool MergePartialFromCodedStream(
129 ::google::protobuf::io::CodedInputStream* input);
130 void SerializeWithCachedSizes(
131 ::google::protobuf::io::CodedOutputStream* output)
const;
132 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
133 int GetCachedSize()
const {
return _cached_size_; }
137 void SetCachedSize(
int size)
const;
139 ::google::protobuf::Metadata GetMetadata()
const;
143 typedef DatabaseRequest_RequestType RequestType;
144 static const RequestType NEW_PUBLISH = DatabaseRequest_RequestType_NEW_PUBLISH;
145 static const RequestType SQL_QUERY = DatabaseRequest_RequestType_SQL_QUERY;
146 static inline bool RequestType_IsValid(
int value) {
147 return DatabaseRequest_RequestType_IsValid(value);
149 static const RequestType RequestType_MIN =
150 DatabaseRequest_RequestType_RequestType_MIN;
151 static const RequestType RequestType_MAX =
152 DatabaseRequest_RequestType_RequestType_MAX;
153 static const int RequestType_ARRAYSIZE =
154 DatabaseRequest_RequestType_RequestType_ARRAYSIZE;
155 static inline const ::google::protobuf::EnumDescriptor*
156 RequestType_descriptor() {
157 return DatabaseRequest_RequestType_descriptor();
159 static inline const ::std::string& RequestType_Name(RequestType value) {
160 return DatabaseRequest_RequestType_Name(value);
162 static inline bool RequestType_Parse(const ::std::string& name,
163 RequestType* value) {
164 return DatabaseRequest_RequestType_Parse(name, value);
170 inline bool has_request_type()
const;
171 inline void clear_request_type();
172 static const int kRequestTypeFieldNumber = 1;
173 inline ::goby::common::protobuf::DatabaseRequest_RequestType request_type()
const;
174 inline void set_request_type(::goby::common::protobuf::DatabaseRequest_RequestType value);
177 inline bool has_publish_protobuf_full_name()
const;
178 inline void clear_publish_protobuf_full_name();
179 static const int kPublishProtobufFullNameFieldNumber = 2;
180 inline const ::std::string& publish_protobuf_full_name()
const;
181 inline void set_publish_protobuf_full_name(const ::std::string& value);
182 inline void set_publish_protobuf_full_name(
const char* value);
183 inline void set_publish_protobuf_full_name(
const char* value,
size_t size);
184 inline ::std::string* mutable_publish_protobuf_full_name();
185 inline ::std::string* release_publish_protobuf_full_name();
186 inline void set_allocated_publish_protobuf_full_name(::std::string* publish_protobuf_full_name);
189 inline int file_descriptor_proto_size()
const;
190 inline void clear_file_descriptor_proto();
191 static const int kFileDescriptorProtoFieldNumber = 3;
192 inline const ::google::protobuf::FileDescriptorProto& file_descriptor_proto(
int index)
const;
193 inline ::google::protobuf::FileDescriptorProto* mutable_file_descriptor_proto(
int index);
194 inline ::google::protobuf::FileDescriptorProto* add_file_descriptor_proto();
195 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >&
196 file_descriptor_proto()
const;
197 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >*
198 mutable_file_descriptor_proto();
202 inline void set_has_request_type();
203 inline void clear_has_request_type();
204 inline void set_has_publish_protobuf_full_name();
205 inline void clear_has_publish_protobuf_full_name();
207 ::google::protobuf::UnknownFieldSet _unknown_fields_;
209 ::google::protobuf::uint32 _has_bits_[1];
210 mutable int _cached_size_;
211 ::std::string* publish_protobuf_full_name_;
212 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto > file_descriptor_proto_;
214 friend void protobuf_AddDesc_goby_2fpb_2fprotobuf_2fdatabase_5frequest_2eproto();
215 friend void protobuf_AssignDesc_goby_2fpb_2fprotobuf_2fdatabase_5frequest_2eproto();
216 friend void protobuf_ShutdownFile_goby_2fpb_2fprotobuf_2fdatabase_5frequest_2eproto();
218 void InitAsDefaultInstance();
235 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
236 return _unknown_fields_;
239 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
240 return &_unknown_fields_;
243 static const ::google::protobuf::Descriptor* descriptor();
251 void CopyFrom(const ::google::protobuf::Message& from);
252 void MergeFrom(const ::google::protobuf::Message& from);
256 bool IsInitialized()
const;
258 int ByteSize()
const;
259 bool MergePartialFromCodedStream(
260 ::google::protobuf::io::CodedInputStream* input);
261 void SerializeWithCachedSizes(
262 ::google::protobuf::io::CodedOutputStream* output)
const;
263 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
264 int GetCachedSize()
const {
return _cached_size_; }
268 void SetCachedSize(
int size)
const;
270 ::google::protobuf::Metadata GetMetadata()
const;
274 typedef DatabaseResponse_ResponseType ResponseType;
275 static const ResponseType NEW_PUBLISH_ACCEPTED = DatabaseResponse_ResponseType_NEW_PUBLISH_ACCEPTED;
276 static const ResponseType NEW_PUBLISH_DENIED = DatabaseResponse_ResponseType_NEW_PUBLISH_DENIED;
277 static const ResponseType SQL_QUERY_RESULT = DatabaseResponse_ResponseType_SQL_QUERY_RESULT;
278 static const ResponseType SQL_QUERY_INVALID = DatabaseResponse_ResponseType_SQL_QUERY_INVALID;
279 static inline bool ResponseType_IsValid(
int value) {
280 return DatabaseResponse_ResponseType_IsValid(value);
282 static const ResponseType ResponseType_MIN =
283 DatabaseResponse_ResponseType_ResponseType_MIN;
284 static const ResponseType ResponseType_MAX =
285 DatabaseResponse_ResponseType_ResponseType_MAX;
286 static const int ResponseType_ARRAYSIZE =
287 DatabaseResponse_ResponseType_ResponseType_ARRAYSIZE;
288 static inline const ::google::protobuf::EnumDescriptor*
289 ResponseType_descriptor() {
290 return DatabaseResponse_ResponseType_descriptor();
292 static inline const ::std::string& ResponseType_Name(ResponseType value) {
293 return DatabaseResponse_ResponseType_Name(value);
295 static inline bool ResponseType_Parse(const ::std::string& name,
296 ResponseType* value) {
297 return DatabaseResponse_ResponseType_Parse(name, value);
303 inline bool has_response_type()
const;
304 inline void clear_response_type();
305 static const int kResponseTypeFieldNumber = 1;
306 inline ::goby::common::protobuf::DatabaseResponse_ResponseType response_type()
const;
307 inline void set_response_type(::goby::common::protobuf::DatabaseResponse_ResponseType value);
310 inline int sql_result_size()
const;
311 inline void clear_sql_result();
312 static const int kSqlResultFieldNumber = 2;
313 inline const ::goby::common::protobuf::EmbeddedMessage& sql_result(
int index)
const;
314 inline ::goby::common::protobuf::EmbeddedMessage* mutable_sql_result(
int index);
315 inline ::goby::common::protobuf::EmbeddedMessage* add_sql_result();
316 inline const ::google::protobuf::RepeatedPtrField< ::goby::common::protobuf::EmbeddedMessage >&
318 inline ::google::protobuf::RepeatedPtrField< ::goby::common::protobuf::EmbeddedMessage >*
319 mutable_sql_result();
323 inline void set_has_response_type();
324 inline void clear_has_response_type();
326 ::google::protobuf::UnknownFieldSet _unknown_fields_;
328 ::google::protobuf::uint32 _has_bits_[1];
329 mutable int _cached_size_;
330 ::google::protobuf::RepeatedPtrField< ::goby::common::protobuf::EmbeddedMessage > sql_result_;
332 friend void protobuf_AddDesc_goby_2fpb_2fprotobuf_2fdatabase_5frequest_2eproto();
333 friend void protobuf_AssignDesc_goby_2fpb_2fprotobuf_2fdatabase_5frequest_2eproto();
334 friend void protobuf_ShutdownFile_goby_2fpb_2fprotobuf_2fdatabase_5frequest_2eproto();
336 void InitAsDefaultInstance();
353 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
354 return _unknown_fields_;
357 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
358 return &_unknown_fields_;
361 static const ::google::protobuf::Descriptor* descriptor();
369 void CopyFrom(const ::google::protobuf::Message& from);
370 void MergeFrom(const ::google::protobuf::Message& from);
374 bool IsInitialized()
const;
376 int ByteSize()
const;
377 bool MergePartialFromCodedStream(
378 ::google::protobuf::io::CodedInputStream* input);
379 void SerializeWithCachedSizes(
380 ::google::protobuf::io::CodedOutputStream* output)
const;
381 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
382 int GetCachedSize()
const {
return _cached_size_; }
386 void SetCachedSize(
int size)
const;
388 ::google::protobuf::Metadata GetMetadata()
const;
395 inline bool has_using_database()
const;
396 inline void clear_using_database();
397 static const int kUsingDatabaseFieldNumber = 10;
398 inline bool using_database()
const;
399 inline void set_using_database(
bool value);
402 inline bool has_database_address()
const;
403 inline void clear_database_address();
404 static const int kDatabaseAddressFieldNumber = 11;
405 inline const ::std::string& database_address()
const;
406 inline void set_database_address(const ::std::string& value);
407 inline void set_database_address(
const char* value);
408 inline void set_database_address(
const char* value,
size_t size);
409 inline ::std::string* mutable_database_address();
410 inline ::std::string* release_database_address();
411 inline void set_allocated_database_address(::std::string* database_address);
414 inline bool has_database_port()
const;
415 inline void clear_database_port();
416 static const int kDatabasePortFieldNumber = 12;
417 inline ::google::protobuf::uint32 database_port()
const;
418 inline void set_database_port(::google::protobuf::uint32 value);
422 inline void set_has_using_database();
423 inline void clear_has_using_database();
424 inline void set_has_database_address();
425 inline void clear_has_database_address();
426 inline void set_has_database_port();
427 inline void clear_has_database_port();
429 ::google::protobuf::UnknownFieldSet _unknown_fields_;
431 ::google::protobuf::uint32 _has_bits_[1];
432 mutable int _cached_size_;
433 ::std::string* database_address_;
434 bool using_database_;
435 ::google::protobuf::uint32 database_port_;
436 friend void protobuf_AddDesc_goby_2fpb_2fprotobuf_2fdatabase_5frequest_2eproto();
437 friend void protobuf_AssignDesc_goby_2fpb_2fprotobuf_2fdatabase_5frequest_2eproto();
438 friend void protobuf_ShutdownFile_goby_2fpb_2fprotobuf_2fdatabase_5frequest_2eproto();
440 void InitAsDefaultInstance();
451 inline bool DatabaseRequest::has_request_type()
const {
452 return (_has_bits_[0] & 0x00000001u) != 0;
454 inline void DatabaseRequest::set_has_request_type() {
455 _has_bits_[0] |= 0x00000001u;
457 inline void DatabaseRequest::clear_has_request_type() {
458 _has_bits_[0] &= ~0x00000001u;
460 inline void DatabaseRequest::clear_request_type() {
462 clear_has_request_type();
464 inline ::goby::common::protobuf::DatabaseRequest_RequestType DatabaseRequest::request_type()
const {
466 return static_cast< ::goby::common::protobuf::DatabaseRequest_RequestType
>(request_type_);
468 inline void DatabaseRequest::set_request_type(::goby::common::protobuf::DatabaseRequest_RequestType value) {
469 assert(::goby::common::protobuf::DatabaseRequest_RequestType_IsValid(value));
470 set_has_request_type();
471 request_type_ = value;
476 inline bool DatabaseRequest::has_publish_protobuf_full_name()
const {
477 return (_has_bits_[0] & 0x00000002u) != 0;
479 inline void DatabaseRequest::set_has_publish_protobuf_full_name() {
480 _has_bits_[0] |= 0x00000002u;
482 inline void DatabaseRequest::clear_has_publish_protobuf_full_name() {
483 _has_bits_[0] &= ~0x00000002u;
485 inline void DatabaseRequest::clear_publish_protobuf_full_name() {
486 if (publish_protobuf_full_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
487 publish_protobuf_full_name_->clear();
489 clear_has_publish_protobuf_full_name();
491 inline const ::std::string& DatabaseRequest::publish_protobuf_full_name()
const {
493 return *publish_protobuf_full_name_;
495 inline void DatabaseRequest::set_publish_protobuf_full_name(const ::std::string& value) {
496 set_has_publish_protobuf_full_name();
497 if (publish_protobuf_full_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
498 publish_protobuf_full_name_ = new ::std::string;
500 publish_protobuf_full_name_->assign(value);
503 inline void DatabaseRequest::set_publish_protobuf_full_name(
const char* value) {
504 set_has_publish_protobuf_full_name();
505 if (publish_protobuf_full_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
506 publish_protobuf_full_name_ = new ::std::string;
508 publish_protobuf_full_name_->assign(value);
511 inline void DatabaseRequest::set_publish_protobuf_full_name(
const char* value,
size_t size) {
512 set_has_publish_protobuf_full_name();
513 if (publish_protobuf_full_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
514 publish_protobuf_full_name_ = new ::std::string;
516 publish_protobuf_full_name_->assign(reinterpret_cast<const char*>(value), size);
519 inline ::std::string* DatabaseRequest::mutable_publish_protobuf_full_name() {
520 set_has_publish_protobuf_full_name();
521 if (publish_protobuf_full_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
522 publish_protobuf_full_name_ = new ::std::string;
525 return publish_protobuf_full_name_;
527 inline ::std::string* DatabaseRequest::release_publish_protobuf_full_name() {
528 clear_has_publish_protobuf_full_name();
529 if (publish_protobuf_full_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
532 ::std::string* temp = publish_protobuf_full_name_;
533 publish_protobuf_full_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
537 inline void DatabaseRequest::set_allocated_publish_protobuf_full_name(::std::string* publish_protobuf_full_name) {
538 if (publish_protobuf_full_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
539 delete publish_protobuf_full_name_;
541 if (publish_protobuf_full_name) {
542 set_has_publish_protobuf_full_name();
543 publish_protobuf_full_name_ = publish_protobuf_full_name;
545 clear_has_publish_protobuf_full_name();
546 publish_protobuf_full_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
552 inline int DatabaseRequest::file_descriptor_proto_size()
const {
553 return file_descriptor_proto_.size();
555 inline void DatabaseRequest::clear_file_descriptor_proto() {
556 file_descriptor_proto_.Clear();
558 inline const ::google::protobuf::FileDescriptorProto& DatabaseRequest::file_descriptor_proto(
int index)
const {
560 return file_descriptor_proto_.Get(index);
562 inline ::google::protobuf::FileDescriptorProto* DatabaseRequest::mutable_file_descriptor_proto(
int index) {
564 return file_descriptor_proto_.Mutable(index);
566 inline ::google::protobuf::FileDescriptorProto* DatabaseRequest::add_file_descriptor_proto() {
568 return file_descriptor_proto_.Add();
570 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >&
571 DatabaseRequest::file_descriptor_proto()
const {
573 return file_descriptor_proto_;
575 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >*
576 DatabaseRequest::mutable_file_descriptor_proto() {
578 return &file_descriptor_proto_;
586 inline bool DatabaseResponse::has_response_type()
const {
587 return (_has_bits_[0] & 0x00000001u) != 0;
589 inline void DatabaseResponse::set_has_response_type() {
590 _has_bits_[0] |= 0x00000001u;
592 inline void DatabaseResponse::clear_has_response_type() {
593 _has_bits_[0] &= ~0x00000001u;
595 inline void DatabaseResponse::clear_response_type() {
597 clear_has_response_type();
599 inline ::goby::common::protobuf::DatabaseResponse_ResponseType DatabaseResponse::response_type()
const {
601 return static_cast< ::goby::common::protobuf::DatabaseResponse_ResponseType
>(response_type_);
603 inline void DatabaseResponse::set_response_type(::goby::common::protobuf::DatabaseResponse_ResponseType value) {
604 assert(::goby::common::protobuf::DatabaseResponse_ResponseType_IsValid(value));
605 set_has_response_type();
606 response_type_ = value;
611 inline int DatabaseResponse::sql_result_size()
const {
612 return sql_result_.size();
614 inline void DatabaseResponse::clear_sql_result() {
617 inline const ::goby::common::protobuf::EmbeddedMessage& DatabaseResponse::sql_result(
int index)
const {
619 return sql_result_.Get(index);
621 inline ::goby::common::protobuf::EmbeddedMessage* DatabaseResponse::mutable_sql_result(
int index) {
623 return sql_result_.Mutable(index);
625 inline ::goby::common::protobuf::EmbeddedMessage* DatabaseResponse::add_sql_result() {
627 return sql_result_.Add();
629 inline const ::google::protobuf::RepeatedPtrField< ::goby::common::protobuf::EmbeddedMessage >&
630 DatabaseResponse::sql_result()
const {
634 inline ::google::protobuf::RepeatedPtrField< ::goby::common::protobuf::EmbeddedMessage >*
635 DatabaseResponse::mutable_sql_result() {
645 inline bool DatabaseClientConfig::has_using_database()
const {
646 return (_has_bits_[0] & 0x00000001u) != 0;
648 inline void DatabaseClientConfig::set_has_using_database() {
649 _has_bits_[0] |= 0x00000001u;
651 inline void DatabaseClientConfig::clear_has_using_database() {
652 _has_bits_[0] &= ~0x00000001u;
654 inline void DatabaseClientConfig::clear_using_database() {
655 using_database_ =
true;
656 clear_has_using_database();
658 inline bool DatabaseClientConfig::using_database()
const {
660 return using_database_;
662 inline void DatabaseClientConfig::set_using_database(
bool value) {
663 set_has_using_database();
664 using_database_ = value;
669 inline bool DatabaseClientConfig::has_database_address()
const {
670 return (_has_bits_[0] & 0x00000002u) != 0;
672 inline void DatabaseClientConfig::set_has_database_address() {
673 _has_bits_[0] |= 0x00000002u;
675 inline void DatabaseClientConfig::clear_has_database_address() {
676 _has_bits_[0] &= ~0x00000002u;
678 inline void DatabaseClientConfig::clear_database_address() {
679 if (database_address_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
680 database_address_->clear();
682 clear_has_database_address();
684 inline const ::std::string& DatabaseClientConfig::database_address()
const {
686 return *database_address_;
688 inline void DatabaseClientConfig::set_database_address(const ::std::string& value) {
689 set_has_database_address();
690 if (database_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
691 database_address_ = new ::std::string;
693 database_address_->assign(value);
696 inline void DatabaseClientConfig::set_database_address(
const char* value) {
697 set_has_database_address();
698 if (database_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
699 database_address_ = new ::std::string;
701 database_address_->assign(value);
704 inline void DatabaseClientConfig::set_database_address(
const char* value,
size_t size) {
705 set_has_database_address();
706 if (database_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
707 database_address_ = new ::std::string;
709 database_address_->assign(reinterpret_cast<const char*>(value), size);
712 inline ::std::string* DatabaseClientConfig::mutable_database_address() {
713 set_has_database_address();
714 if (database_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
715 database_address_ = new ::std::string;
718 return database_address_;
720 inline ::std::string* DatabaseClientConfig::release_database_address() {
721 clear_has_database_address();
722 if (database_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
725 ::std::string* temp = database_address_;
726 database_address_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
730 inline void DatabaseClientConfig::set_allocated_database_address(::std::string* database_address) {
731 if (database_address_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
732 delete database_address_;
734 if (database_address) {
735 set_has_database_address();
736 database_address_ = database_address;
738 clear_has_database_address();
739 database_address_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
745 inline bool DatabaseClientConfig::has_database_port()
const {
746 return (_has_bits_[0] & 0x00000004u) != 0;
748 inline void DatabaseClientConfig::set_has_database_port() {
749 _has_bits_[0] |= 0x00000004u;
751 inline void DatabaseClientConfig::clear_has_database_port() {
752 _has_bits_[0] &= ~0x00000004u;
754 inline void DatabaseClientConfig::clear_database_port() {
756 clear_has_database_port();
758 inline ::google::protobuf::uint32 DatabaseClientConfig::database_port()
const {
760 return database_port_;
762 inline void DatabaseClientConfig::set_database_port(::google::protobuf::uint32 value) {
763 set_has_database_port();
764 database_port_ = value;
779 template <>
struct is_proto_enum< ::goby::common::protobuf::DatabaseRequest_RequestType> : ::google::protobuf::internal::true_type {};
781 inline const EnumDescriptor* GetEnumDescriptor< ::goby::common::protobuf::DatabaseRequest_RequestType>() {
782 return ::goby::common::protobuf::DatabaseRequest_RequestType_descriptor();
784 template <>
struct is_proto_enum< ::goby::common::protobuf::DatabaseResponse_ResponseType> : ::google::protobuf::internal::true_type {};
786 inline const EnumDescriptor* GetEnumDescriptor< ::goby::common::protobuf::DatabaseResponse_ResponseType>() {
787 return ::goby::common::protobuf::DatabaseResponse_ResponseType_descriptor();
796 #endif // PROTOBUF_goby_2fpb_2fprotobuf_2fdatabase_5frequest_2eproto__INCLUDED
The global namespace for the Goby project.