Goby v2
database_request.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/pb/protobuf/database_request.proto
3 
4 #ifndef PROTOBUF_goby_2fpb_2fprotobuf_2fdatabase_5frequest_2eproto__INCLUDED
5 #define PROTOBUF_goby_2fpb_2fprotobuf_2fdatabase_5frequest_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
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
14 #error your headers.
15 #endif
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.
20 #endif
21 
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>
35 // @@protoc_insertion_point(includes)
36 
37 namespace goby {
38 namespace common {
39 namespace protobuf {
40 
41 // Internal implementation detail -- do not call these.
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();
45 
46 class DatabaseRequest;
47 class DatabaseResponse;
48 class DatabaseClientConfig;
49 
50 enum DatabaseRequest_RequestType {
51  DatabaseRequest_RequestType_NEW_PUBLISH = 1,
52  DatabaseRequest_RequestType_SQL_QUERY = 2
53 };
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;
58 
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);
63 }
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);
68 }
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
74 };
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;
79 
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);
84 }
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);
89 }
90 // ===================================================================
91 
92 class DatabaseRequest : public ::google::protobuf::Message {
93  public:
95  virtual ~DatabaseRequest();
96 
97  DatabaseRequest(const DatabaseRequest& from);
98 
99  inline DatabaseRequest& operator=(const DatabaseRequest& from) {
100  CopyFrom(from);
101  return *this;
102  }
103 
104  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
105  return _unknown_fields_;
106  }
107 
108  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
109  return &_unknown_fields_;
110  }
111 
112  static const ::google::protobuf::Descriptor* descriptor();
113  static const DatabaseRequest& default_instance();
114 
115  void Swap(DatabaseRequest* other);
116 
117  // implements Message ----------------------------------------------
118 
119  DatabaseRequest* New() const;
120  void CopyFrom(const ::google::protobuf::Message& from);
121  void MergeFrom(const ::google::protobuf::Message& from);
122  void CopyFrom(const DatabaseRequest& from);
123  void MergeFrom(const DatabaseRequest& from);
124  void Clear();
125  bool IsInitialized() const;
126 
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_; }
134  private:
135  void SharedCtor();
136  void SharedDtor();
137  void SetCachedSize(int size) const;
138  public:
139  ::google::protobuf::Metadata GetMetadata() const;
140 
141  // nested types ----------------------------------------------------
142 
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);
148  }
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();
158  }
159  static inline const ::std::string& RequestType_Name(RequestType value) {
160  return DatabaseRequest_RequestType_Name(value);
161  }
162  static inline bool RequestType_Parse(const ::std::string& name,
163  RequestType* value) {
164  return DatabaseRequest_RequestType_Parse(name, value);
165  }
166 
167  // accessors -------------------------------------------------------
168 
169  // required .goby.common.protobuf.DatabaseRequest.RequestType request_type = 1;
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);
175 
176  // optional string publish_protobuf_full_name = 2;
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);
187 
188  // repeated .google.protobuf.FileDescriptorProto file_descriptor_proto = 3;
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();
199 
200  // @@protoc_insertion_point(class_scope:goby.common.protobuf.DatabaseRequest)
201  private:
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();
206 
207  ::google::protobuf::UnknownFieldSet _unknown_fields_;
208 
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_;
213  int request_type_;
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();
217 
218  void InitAsDefaultInstance();
219  static DatabaseRequest* default_instance_;
220 };
221 // -------------------------------------------------------------------
222 
223 class DatabaseResponse : public ::google::protobuf::Message {
224  public:
226  virtual ~DatabaseResponse();
227 
228  DatabaseResponse(const DatabaseResponse& from);
229 
230  inline DatabaseResponse& operator=(const DatabaseResponse& from) {
231  CopyFrom(from);
232  return *this;
233  }
234 
235  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
236  return _unknown_fields_;
237  }
238 
239  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
240  return &_unknown_fields_;
241  }
242 
243  static const ::google::protobuf::Descriptor* descriptor();
244  static const DatabaseResponse& default_instance();
245 
246  void Swap(DatabaseResponse* other);
247 
248  // implements Message ----------------------------------------------
249 
250  DatabaseResponse* New() const;
251  void CopyFrom(const ::google::protobuf::Message& from);
252  void MergeFrom(const ::google::protobuf::Message& from);
253  void CopyFrom(const DatabaseResponse& from);
254  void MergeFrom(const DatabaseResponse& from);
255  void Clear();
256  bool IsInitialized() const;
257 
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_; }
265  private:
266  void SharedCtor();
267  void SharedDtor();
268  void SetCachedSize(int size) const;
269  public:
270  ::google::protobuf::Metadata GetMetadata() const;
271 
272  // nested types ----------------------------------------------------
273 
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);
281  }
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();
291  }
292  static inline const ::std::string& ResponseType_Name(ResponseType value) {
293  return DatabaseResponse_ResponseType_Name(value);
294  }
295  static inline bool ResponseType_Parse(const ::std::string& name,
296  ResponseType* value) {
297  return DatabaseResponse_ResponseType_Parse(name, value);
298  }
299 
300  // accessors -------------------------------------------------------
301 
302  // required .goby.common.protobuf.DatabaseResponse.ResponseType response_type = 1;
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);
308 
309  // repeated .goby.common.protobuf.EmbeddedMessage sql_result = 2;
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 >&
317  sql_result() const;
318  inline ::google::protobuf::RepeatedPtrField< ::goby::common::protobuf::EmbeddedMessage >*
319  mutable_sql_result();
320 
321  // @@protoc_insertion_point(class_scope:goby.common.protobuf.DatabaseResponse)
322  private:
323  inline void set_has_response_type();
324  inline void clear_has_response_type();
325 
326  ::google::protobuf::UnknownFieldSet _unknown_fields_;
327 
328  ::google::protobuf::uint32 _has_bits_[1];
329  mutable int _cached_size_;
330  ::google::protobuf::RepeatedPtrField< ::goby::common::protobuf::EmbeddedMessage > sql_result_;
331  int response_type_;
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();
335 
336  void InitAsDefaultInstance();
337  static DatabaseResponse* default_instance_;
338 };
339 // -------------------------------------------------------------------
340 
341 class DatabaseClientConfig : public ::google::protobuf::Message {
342  public:
344  virtual ~DatabaseClientConfig();
345 
347 
348  inline DatabaseClientConfig& operator=(const DatabaseClientConfig& from) {
349  CopyFrom(from);
350  return *this;
351  }
352 
353  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
354  return _unknown_fields_;
355  }
356 
357  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
358  return &_unknown_fields_;
359  }
360 
361  static const ::google::protobuf::Descriptor* descriptor();
362  static const DatabaseClientConfig& default_instance();
363 
364  void Swap(DatabaseClientConfig* other);
365 
366  // implements Message ----------------------------------------------
367 
368  DatabaseClientConfig* New() const;
369  void CopyFrom(const ::google::protobuf::Message& from);
370  void MergeFrom(const ::google::protobuf::Message& from);
371  void CopyFrom(const DatabaseClientConfig& from);
372  void MergeFrom(const DatabaseClientConfig& from);
373  void Clear();
374  bool IsInitialized() const;
375 
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_; }
383  private:
384  void SharedCtor();
385  void SharedDtor();
386  void SetCachedSize(int size) const;
387  public:
388  ::google::protobuf::Metadata GetMetadata() const;
389 
390  // nested types ----------------------------------------------------
391 
392  // accessors -------------------------------------------------------
393 
394  // optional bool using_database = 10 [default = true];
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);
400 
401  // optional string database_address = 11;
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);
412 
413  // optional uint32 database_port = 12;
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);
419 
420  // @@protoc_insertion_point(class_scope:goby.common.protobuf.DatabaseClientConfig)
421  private:
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();
428 
429  ::google::protobuf::UnknownFieldSet _unknown_fields_;
430 
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();
439 
440  void InitAsDefaultInstance();
441  static DatabaseClientConfig* default_instance_;
442 };
443 // ===================================================================
444 
445 
446 // ===================================================================
447 
448 // DatabaseRequest
449 
450 // required .goby.common.protobuf.DatabaseRequest.RequestType request_type = 1;
451 inline bool DatabaseRequest::has_request_type() const {
452  return (_has_bits_[0] & 0x00000001u) != 0;
453 }
454 inline void DatabaseRequest::set_has_request_type() {
455  _has_bits_[0] |= 0x00000001u;
456 }
457 inline void DatabaseRequest::clear_has_request_type() {
458  _has_bits_[0] &= ~0x00000001u;
459 }
460 inline void DatabaseRequest::clear_request_type() {
461  request_type_ = 1;
462  clear_has_request_type();
463 }
464 inline ::goby::common::protobuf::DatabaseRequest_RequestType DatabaseRequest::request_type() const {
465  // @@protoc_insertion_point(field_get:goby.common.protobuf.DatabaseRequest.request_type)
466  return static_cast< ::goby::common::protobuf::DatabaseRequest_RequestType >(request_type_);
467 }
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;
472  // @@protoc_insertion_point(field_set:goby.common.protobuf.DatabaseRequest.request_type)
473 }
474 
475 // optional string publish_protobuf_full_name = 2;
476 inline bool DatabaseRequest::has_publish_protobuf_full_name() const {
477  return (_has_bits_[0] & 0x00000002u) != 0;
478 }
479 inline void DatabaseRequest::set_has_publish_protobuf_full_name() {
480  _has_bits_[0] |= 0x00000002u;
481 }
482 inline void DatabaseRequest::clear_has_publish_protobuf_full_name() {
483  _has_bits_[0] &= ~0x00000002u;
484 }
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();
488  }
489  clear_has_publish_protobuf_full_name();
490 }
491 inline const ::std::string& DatabaseRequest::publish_protobuf_full_name() const {
492  // @@protoc_insertion_point(field_get:goby.common.protobuf.DatabaseRequest.publish_protobuf_full_name)
493  return *publish_protobuf_full_name_;
494 }
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;
499  }
500  publish_protobuf_full_name_->assign(value);
501  // @@protoc_insertion_point(field_set:goby.common.protobuf.DatabaseRequest.publish_protobuf_full_name)
502 }
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;
507  }
508  publish_protobuf_full_name_->assign(value);
509  // @@protoc_insertion_point(field_set_char:goby.common.protobuf.DatabaseRequest.publish_protobuf_full_name)
510 }
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;
515  }
516  publish_protobuf_full_name_->assign(reinterpret_cast<const char*>(value), size);
517  // @@protoc_insertion_point(field_set_pointer:goby.common.protobuf.DatabaseRequest.publish_protobuf_full_name)
518 }
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;
523  }
524  // @@protoc_insertion_point(field_mutable:goby.common.protobuf.DatabaseRequest.publish_protobuf_full_name)
525  return publish_protobuf_full_name_;
526 }
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()) {
530  return NULL;
531  } else {
532  ::std::string* temp = publish_protobuf_full_name_;
533  publish_protobuf_full_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
534  return temp;
535  }
536 }
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_;
540  }
541  if (publish_protobuf_full_name) {
542  set_has_publish_protobuf_full_name();
543  publish_protobuf_full_name_ = publish_protobuf_full_name;
544  } else {
545  clear_has_publish_protobuf_full_name();
546  publish_protobuf_full_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
547  }
548  // @@protoc_insertion_point(field_set_allocated:goby.common.protobuf.DatabaseRequest.publish_protobuf_full_name)
549 }
550 
551 // repeated .google.protobuf.FileDescriptorProto file_descriptor_proto = 3;
552 inline int DatabaseRequest::file_descriptor_proto_size() const {
553  return file_descriptor_proto_.size();
554 }
555 inline void DatabaseRequest::clear_file_descriptor_proto() {
556  file_descriptor_proto_.Clear();
557 }
558 inline const ::google::protobuf::FileDescriptorProto& DatabaseRequest::file_descriptor_proto(int index) const {
559  // @@protoc_insertion_point(field_get:goby.common.protobuf.DatabaseRequest.file_descriptor_proto)
560  return file_descriptor_proto_.Get(index);
561 }
562 inline ::google::protobuf::FileDescriptorProto* DatabaseRequest::mutable_file_descriptor_proto(int index) {
563  // @@protoc_insertion_point(field_mutable:goby.common.protobuf.DatabaseRequest.file_descriptor_proto)
564  return file_descriptor_proto_.Mutable(index);
565 }
566 inline ::google::protobuf::FileDescriptorProto* DatabaseRequest::add_file_descriptor_proto() {
567  // @@protoc_insertion_point(field_add:goby.common.protobuf.DatabaseRequest.file_descriptor_proto)
568  return file_descriptor_proto_.Add();
569 }
570 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >&
571 DatabaseRequest::file_descriptor_proto() const {
572  // @@protoc_insertion_point(field_list:goby.common.protobuf.DatabaseRequest.file_descriptor_proto)
573  return file_descriptor_proto_;
574 }
575 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >*
576 DatabaseRequest::mutable_file_descriptor_proto() {
577  // @@protoc_insertion_point(field_mutable_list:goby.common.protobuf.DatabaseRequest.file_descriptor_proto)
578  return &file_descriptor_proto_;
579 }
580 
581 // -------------------------------------------------------------------
582 
583 // DatabaseResponse
584 
585 // required .goby.common.protobuf.DatabaseResponse.ResponseType response_type = 1;
586 inline bool DatabaseResponse::has_response_type() const {
587  return (_has_bits_[0] & 0x00000001u) != 0;
588 }
589 inline void DatabaseResponse::set_has_response_type() {
590  _has_bits_[0] |= 0x00000001u;
591 }
592 inline void DatabaseResponse::clear_has_response_type() {
593  _has_bits_[0] &= ~0x00000001u;
594 }
595 inline void DatabaseResponse::clear_response_type() {
596  response_type_ = 1;
597  clear_has_response_type();
598 }
599 inline ::goby::common::protobuf::DatabaseResponse_ResponseType DatabaseResponse::response_type() const {
600  // @@protoc_insertion_point(field_get:goby.common.protobuf.DatabaseResponse.response_type)
601  return static_cast< ::goby::common::protobuf::DatabaseResponse_ResponseType >(response_type_);
602 }
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;
607  // @@protoc_insertion_point(field_set:goby.common.protobuf.DatabaseResponse.response_type)
608 }
609 
610 // repeated .goby.common.protobuf.EmbeddedMessage sql_result = 2;
611 inline int DatabaseResponse::sql_result_size() const {
612  return sql_result_.size();
613 }
614 inline void DatabaseResponse::clear_sql_result() {
615  sql_result_.Clear();
616 }
617 inline const ::goby::common::protobuf::EmbeddedMessage& DatabaseResponse::sql_result(int index) const {
618  // @@protoc_insertion_point(field_get:goby.common.protobuf.DatabaseResponse.sql_result)
619  return sql_result_.Get(index);
620 }
621 inline ::goby::common::protobuf::EmbeddedMessage* DatabaseResponse::mutable_sql_result(int index) {
622  // @@protoc_insertion_point(field_mutable:goby.common.protobuf.DatabaseResponse.sql_result)
623  return sql_result_.Mutable(index);
624 }
625 inline ::goby::common::protobuf::EmbeddedMessage* DatabaseResponse::add_sql_result() {
626  // @@protoc_insertion_point(field_add:goby.common.protobuf.DatabaseResponse.sql_result)
627  return sql_result_.Add();
628 }
629 inline const ::google::protobuf::RepeatedPtrField< ::goby::common::protobuf::EmbeddedMessage >&
630 DatabaseResponse::sql_result() const {
631  // @@protoc_insertion_point(field_list:goby.common.protobuf.DatabaseResponse.sql_result)
632  return sql_result_;
633 }
634 inline ::google::protobuf::RepeatedPtrField< ::goby::common::protobuf::EmbeddedMessage >*
635 DatabaseResponse::mutable_sql_result() {
636  // @@protoc_insertion_point(field_mutable_list:goby.common.protobuf.DatabaseResponse.sql_result)
637  return &sql_result_;
638 }
639 
640 // -------------------------------------------------------------------
641 
642 // DatabaseClientConfig
643 
644 // optional bool using_database = 10 [default = true];
645 inline bool DatabaseClientConfig::has_using_database() const {
646  return (_has_bits_[0] & 0x00000001u) != 0;
647 }
648 inline void DatabaseClientConfig::set_has_using_database() {
649  _has_bits_[0] |= 0x00000001u;
650 }
651 inline void DatabaseClientConfig::clear_has_using_database() {
652  _has_bits_[0] &= ~0x00000001u;
653 }
654 inline void DatabaseClientConfig::clear_using_database() {
655  using_database_ = true;
656  clear_has_using_database();
657 }
658 inline bool DatabaseClientConfig::using_database() const {
659  // @@protoc_insertion_point(field_get:goby.common.protobuf.DatabaseClientConfig.using_database)
660  return using_database_;
661 }
662 inline void DatabaseClientConfig::set_using_database(bool value) {
663  set_has_using_database();
664  using_database_ = value;
665  // @@protoc_insertion_point(field_set:goby.common.protobuf.DatabaseClientConfig.using_database)
666 }
667 
668 // optional string database_address = 11;
669 inline bool DatabaseClientConfig::has_database_address() const {
670  return (_has_bits_[0] & 0x00000002u) != 0;
671 }
672 inline void DatabaseClientConfig::set_has_database_address() {
673  _has_bits_[0] |= 0x00000002u;
674 }
675 inline void DatabaseClientConfig::clear_has_database_address() {
676  _has_bits_[0] &= ~0x00000002u;
677 }
678 inline void DatabaseClientConfig::clear_database_address() {
679  if (database_address_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
680  database_address_->clear();
681  }
682  clear_has_database_address();
683 }
684 inline const ::std::string& DatabaseClientConfig::database_address() const {
685  // @@protoc_insertion_point(field_get:goby.common.protobuf.DatabaseClientConfig.database_address)
686  return *database_address_;
687 }
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;
692  }
693  database_address_->assign(value);
694  // @@protoc_insertion_point(field_set:goby.common.protobuf.DatabaseClientConfig.database_address)
695 }
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;
700  }
701  database_address_->assign(value);
702  // @@protoc_insertion_point(field_set_char:goby.common.protobuf.DatabaseClientConfig.database_address)
703 }
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;
708  }
709  database_address_->assign(reinterpret_cast<const char*>(value), size);
710  // @@protoc_insertion_point(field_set_pointer:goby.common.protobuf.DatabaseClientConfig.database_address)
711 }
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;
716  }
717  // @@protoc_insertion_point(field_mutable:goby.common.protobuf.DatabaseClientConfig.database_address)
718  return database_address_;
719 }
720 inline ::std::string* DatabaseClientConfig::release_database_address() {
721  clear_has_database_address();
722  if (database_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
723  return NULL;
724  } else {
725  ::std::string* temp = database_address_;
726  database_address_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
727  return temp;
728  }
729 }
730 inline void DatabaseClientConfig::set_allocated_database_address(::std::string* database_address) {
731  if (database_address_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
732  delete database_address_;
733  }
734  if (database_address) {
735  set_has_database_address();
736  database_address_ = database_address;
737  } else {
738  clear_has_database_address();
739  database_address_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
740  }
741  // @@protoc_insertion_point(field_set_allocated:goby.common.protobuf.DatabaseClientConfig.database_address)
742 }
743 
744 // optional uint32 database_port = 12;
745 inline bool DatabaseClientConfig::has_database_port() const {
746  return (_has_bits_[0] & 0x00000004u) != 0;
747 }
748 inline void DatabaseClientConfig::set_has_database_port() {
749  _has_bits_[0] |= 0x00000004u;
750 }
751 inline void DatabaseClientConfig::clear_has_database_port() {
752  _has_bits_[0] &= ~0x00000004u;
753 }
754 inline void DatabaseClientConfig::clear_database_port() {
755  database_port_ = 0u;
756  clear_has_database_port();
757 }
758 inline ::google::protobuf::uint32 DatabaseClientConfig::database_port() const {
759  // @@protoc_insertion_point(field_get:goby.common.protobuf.DatabaseClientConfig.database_port)
760  return database_port_;
761 }
762 inline void DatabaseClientConfig::set_database_port(::google::protobuf::uint32 value) {
763  set_has_database_port();
764  database_port_ = value;
765  // @@protoc_insertion_point(field_set:goby.common.protobuf.DatabaseClientConfig.database_port)
766 }
767 
768 
769 // @@protoc_insertion_point(namespace_scope)
770 
771 } // namespace protobuf
772 } // namespace common
773 } // namespace goby
774 
775 #ifndef SWIG
776 namespace google {
777 namespace protobuf {
778 
779 template <> struct is_proto_enum< ::goby::common::protobuf::DatabaseRequest_RequestType> : ::google::protobuf::internal::true_type {};
780 template <>
781 inline const EnumDescriptor* GetEnumDescriptor< ::goby::common::protobuf::DatabaseRequest_RequestType>() {
782  return ::goby::common::protobuf::DatabaseRequest_RequestType_descriptor();
783 }
784 template <> struct is_proto_enum< ::goby::common::protobuf::DatabaseResponse_ResponseType> : ::google::protobuf::internal::true_type {};
785 template <>
786 inline const EnumDescriptor* GetEnumDescriptor< ::goby::common::protobuf::DatabaseResponse_ResponseType>() {
787  return ::goby::common::protobuf::DatabaseResponse_ResponseType_descriptor();
788 }
789 
790 } // namespace google
791 } // namespace protobuf
792 #endif // SWIG
793 
794 // @@protoc_insertion_point(global_scope)
795 
796 #endif // PROTOBUF_goby_2fpb_2fprotobuf_2fdatabase_5frequest_2eproto__INCLUDED
The global namespace for the Goby project.