Goby v2
store_server.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/acomms/protobuf/store_server.proto
3 
4 #ifndef PROTOBUF_goby_2facomms_2fprotobuf_2fstore_5fserver_2eproto__INCLUDED
5 #define PROTOBUF_goby_2facomms_2fprotobuf_2fstore_5fserver_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/unknown_field_set.h>
27 #include "goby/acomms/protobuf/modem_message.pb.h"
28 #include <boost/units/quantity.hpp>
29 #include <boost/units/absolute.hpp>
30 #include <boost/units/dimensionless_type.hpp>
31 #include <boost/units/make_scaled_unit.hpp>
32 // @@protoc_insertion_point(includes)
33 
34 namespace goby {
35 namespace acomms {
36 namespace protobuf {
37 
38 // Internal implementation detail -- do not call these.
39 void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fstore_5fserver_2eproto();
40 void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fstore_5fserver_2eproto();
41 void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fstore_5fserver_2eproto();
42 
43 class StoreServerRequest;
44 class StoreServerResponse;
45 
46 // ===================================================================
47 
48 class StoreServerRequest : public ::google::protobuf::Message {
49  public:
51  virtual ~StoreServerRequest();
52 
54 
55  inline StoreServerRequest& operator=(const StoreServerRequest& from) {
56  CopyFrom(from);
57  return *this;
58  }
59 
60  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
61  return _unknown_fields_;
62  }
63 
64  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
65  return &_unknown_fields_;
66  }
67 
68  static const ::google::protobuf::Descriptor* descriptor();
69  static const StoreServerRequest& default_instance();
70 
71  void Swap(StoreServerRequest* other);
72 
73  // implements Message ----------------------------------------------
74 
75  StoreServerRequest* New() const;
76  void CopyFrom(const ::google::protobuf::Message& from);
77  void MergeFrom(const ::google::protobuf::Message& from);
78  void CopyFrom(const StoreServerRequest& from);
79  void MergeFrom(const StoreServerRequest& from);
80  void Clear();
81  bool IsInitialized() const;
82 
83  int ByteSize() const;
84  bool MergePartialFromCodedStream(
85  ::google::protobuf::io::CodedInputStream* input);
86  void SerializeWithCachedSizes(
87  ::google::protobuf::io::CodedOutputStream* output) const;
88  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
89  int GetCachedSize() const { return _cached_size_; }
90  private:
91  void SharedCtor();
92  void SharedDtor();
93  void SetCachedSize(int size) const;
94  public:
95  ::google::protobuf::Metadata GetMetadata() const;
96 
97  // nested types ----------------------------------------------------
98 
99  // accessors -------------------------------------------------------
100 
101  // required int32 modem_id = 1;
102  inline bool has_modem_id() const;
103  inline void clear_modem_id();
104  static const int kModemIdFieldNumber = 1;
105  inline ::google::protobuf::int32 modem_id() const;
106  inline void set_modem_id(::google::protobuf::int32 value);
107 
108  // repeated .goby.acomms.protobuf.ModemTransmission outbox = 2;
109  inline int outbox_size() const;
110  inline void clear_outbox();
111  static const int kOutboxFieldNumber = 2;
112  inline const ::goby::acomms::protobuf::ModemTransmission& outbox(int index) const;
113  inline ::goby::acomms::protobuf::ModemTransmission* mutable_outbox(int index);
114  inline ::goby::acomms::protobuf::ModemTransmission* add_outbox();
115  inline const ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >&
116  outbox() const;
117  inline ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >*
118  mutable_outbox();
119 
120  // optional uint64 request_id = 3;
121  inline bool has_request_id() const;
122  inline void clear_request_id();
123  static const int kRequestIdFieldNumber = 3;
124  inline ::google::protobuf::uint64 request_id() const;
125  inline void set_request_id(::google::protobuf::uint64 value);
126 
127  // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.StoreServerRequest)
128  private:
129  inline void set_has_modem_id();
130  inline void clear_has_modem_id();
131  inline void set_has_request_id();
132  inline void clear_has_request_id();
133 
134  ::google::protobuf::UnknownFieldSet _unknown_fields_;
135 
136  ::google::protobuf::uint32 _has_bits_[1];
137  mutable int _cached_size_;
138  ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission > outbox_;
139  ::google::protobuf::uint64 request_id_;
140  ::google::protobuf::int32 modem_id_;
141  friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fstore_5fserver_2eproto();
142  friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fstore_5fserver_2eproto();
143  friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fstore_5fserver_2eproto();
144 
145  void InitAsDefaultInstance();
146  static StoreServerRequest* default_instance_;
147 };
148 // -------------------------------------------------------------------
149 
150 class StoreServerResponse : public ::google::protobuf::Message {
151  public:
153  virtual ~StoreServerResponse();
154 
156 
157  inline StoreServerResponse& operator=(const StoreServerResponse& from) {
158  CopyFrom(from);
159  return *this;
160  }
161 
162  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
163  return _unknown_fields_;
164  }
165 
166  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
167  return &_unknown_fields_;
168  }
169 
170  static const ::google::protobuf::Descriptor* descriptor();
171  static const StoreServerResponse& default_instance();
172 
173  void Swap(StoreServerResponse* other);
174 
175  // implements Message ----------------------------------------------
176 
177  StoreServerResponse* New() const;
178  void CopyFrom(const ::google::protobuf::Message& from);
179  void MergeFrom(const ::google::protobuf::Message& from);
180  void CopyFrom(const StoreServerResponse& from);
181  void MergeFrom(const StoreServerResponse& from);
182  void Clear();
183  bool IsInitialized() const;
184 
185  int ByteSize() const;
186  bool MergePartialFromCodedStream(
187  ::google::protobuf::io::CodedInputStream* input);
188  void SerializeWithCachedSizes(
189  ::google::protobuf::io::CodedOutputStream* output) const;
190  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
191  int GetCachedSize() const { return _cached_size_; }
192  private:
193  void SharedCtor();
194  void SharedDtor();
195  void SetCachedSize(int size) const;
196  public:
197  ::google::protobuf::Metadata GetMetadata() const;
198 
199  // nested types ----------------------------------------------------
200 
201  // accessors -------------------------------------------------------
202 
203  // required int32 modem_id = 1;
204  inline bool has_modem_id() const;
205  inline void clear_modem_id();
206  static const int kModemIdFieldNumber = 1;
207  inline ::google::protobuf::int32 modem_id() const;
208  inline void set_modem_id(::google::protobuf::int32 value);
209 
210  // repeated .goby.acomms.protobuf.ModemTransmission inbox = 2;
211  inline int inbox_size() const;
212  inline void clear_inbox();
213  static const int kInboxFieldNumber = 2;
214  inline const ::goby::acomms::protobuf::ModemTransmission& inbox(int index) const;
215  inline ::goby::acomms::protobuf::ModemTransmission* mutable_inbox(int index);
216  inline ::goby::acomms::protobuf::ModemTransmission* add_inbox();
217  inline const ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >&
218  inbox() const;
219  inline ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >*
220  mutable_inbox();
221 
222  // optional uint64 request_id = 3;
223  inline bool has_request_id() const;
224  inline void clear_request_id();
225  static const int kRequestIdFieldNumber = 3;
226  inline ::google::protobuf::uint64 request_id() const;
227  inline void set_request_id(::google::protobuf::uint64 value);
228 
229  // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.StoreServerResponse)
230  private:
231  inline void set_has_modem_id();
232  inline void clear_has_modem_id();
233  inline void set_has_request_id();
234  inline void clear_has_request_id();
235 
236  ::google::protobuf::UnknownFieldSet _unknown_fields_;
237 
238  ::google::protobuf::uint32 _has_bits_[1];
239  mutable int _cached_size_;
240  ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission > inbox_;
241  ::google::protobuf::uint64 request_id_;
242  ::google::protobuf::int32 modem_id_;
243  friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fstore_5fserver_2eproto();
244  friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fstore_5fserver_2eproto();
245  friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fstore_5fserver_2eproto();
246 
247  void InitAsDefaultInstance();
248  static StoreServerResponse* default_instance_;
249 };
250 // ===================================================================
251 
252 
253 // ===================================================================
254 
255 // StoreServerRequest
256 
257 // required int32 modem_id = 1;
258 inline bool StoreServerRequest::has_modem_id() const {
259  return (_has_bits_[0] & 0x00000001u) != 0;
260 }
261 inline void StoreServerRequest::set_has_modem_id() {
262  _has_bits_[0] |= 0x00000001u;
263 }
264 inline void StoreServerRequest::clear_has_modem_id() {
265  _has_bits_[0] &= ~0x00000001u;
266 }
267 inline void StoreServerRequest::clear_modem_id() {
268  modem_id_ = 0;
269  clear_has_modem_id();
270 }
271 inline ::google::protobuf::int32 StoreServerRequest::modem_id() const {
272  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.StoreServerRequest.modem_id)
273  return modem_id_;
274 }
275 inline void StoreServerRequest::set_modem_id(::google::protobuf::int32 value) {
276  set_has_modem_id();
277  modem_id_ = value;
278  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.StoreServerRequest.modem_id)
279 }
280 
281 // repeated .goby.acomms.protobuf.ModemTransmission outbox = 2;
282 inline int StoreServerRequest::outbox_size() const {
283  return outbox_.size();
284 }
285 inline void StoreServerRequest::clear_outbox() {
286  outbox_.Clear();
287 }
288 inline const ::goby::acomms::protobuf::ModemTransmission& StoreServerRequest::outbox(int index) const {
289  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.StoreServerRequest.outbox)
290  return outbox_.Get(index);
291 }
292 inline ::goby::acomms::protobuf::ModemTransmission* StoreServerRequest::mutable_outbox(int index) {
293  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.StoreServerRequest.outbox)
294  return outbox_.Mutable(index);
295 }
296 inline ::goby::acomms::protobuf::ModemTransmission* StoreServerRequest::add_outbox() {
297  // @@protoc_insertion_point(field_add:goby.acomms.protobuf.StoreServerRequest.outbox)
298  return outbox_.Add();
299 }
300 inline const ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >&
301 StoreServerRequest::outbox() const {
302  // @@protoc_insertion_point(field_list:goby.acomms.protobuf.StoreServerRequest.outbox)
303  return outbox_;
304 }
305 inline ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >*
306 StoreServerRequest::mutable_outbox() {
307  // @@protoc_insertion_point(field_mutable_list:goby.acomms.protobuf.StoreServerRequest.outbox)
308  return &outbox_;
309 }
310 
311 // optional uint64 request_id = 3;
312 inline bool StoreServerRequest::has_request_id() const {
313  return (_has_bits_[0] & 0x00000004u) != 0;
314 }
315 inline void StoreServerRequest::set_has_request_id() {
316  _has_bits_[0] |= 0x00000004u;
317 }
318 inline void StoreServerRequest::clear_has_request_id() {
319  _has_bits_[0] &= ~0x00000004u;
320 }
321 inline void StoreServerRequest::clear_request_id() {
322  request_id_ = GOOGLE_ULONGLONG(0);
323  clear_has_request_id();
324 }
325 inline ::google::protobuf::uint64 StoreServerRequest::request_id() const {
326  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.StoreServerRequest.request_id)
327  return request_id_;
328 }
329 inline void StoreServerRequest::set_request_id(::google::protobuf::uint64 value) {
330  set_has_request_id();
331  request_id_ = value;
332  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.StoreServerRequest.request_id)
333 }
334 
335 // -------------------------------------------------------------------
336 
337 // StoreServerResponse
338 
339 // required int32 modem_id = 1;
340 inline bool StoreServerResponse::has_modem_id() const {
341  return (_has_bits_[0] & 0x00000001u) != 0;
342 }
343 inline void StoreServerResponse::set_has_modem_id() {
344  _has_bits_[0] |= 0x00000001u;
345 }
346 inline void StoreServerResponse::clear_has_modem_id() {
347  _has_bits_[0] &= ~0x00000001u;
348 }
349 inline void StoreServerResponse::clear_modem_id() {
350  modem_id_ = 0;
351  clear_has_modem_id();
352 }
353 inline ::google::protobuf::int32 StoreServerResponse::modem_id() const {
354  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.StoreServerResponse.modem_id)
355  return modem_id_;
356 }
357 inline void StoreServerResponse::set_modem_id(::google::protobuf::int32 value) {
358  set_has_modem_id();
359  modem_id_ = value;
360  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.StoreServerResponse.modem_id)
361 }
362 
363 // repeated .goby.acomms.protobuf.ModemTransmission inbox = 2;
364 inline int StoreServerResponse::inbox_size() const {
365  return inbox_.size();
366 }
367 inline void StoreServerResponse::clear_inbox() {
368  inbox_.Clear();
369 }
370 inline const ::goby::acomms::protobuf::ModemTransmission& StoreServerResponse::inbox(int index) const {
371  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.StoreServerResponse.inbox)
372  return inbox_.Get(index);
373 }
374 inline ::goby::acomms::protobuf::ModemTransmission* StoreServerResponse::mutable_inbox(int index) {
375  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.StoreServerResponse.inbox)
376  return inbox_.Mutable(index);
377 }
378 inline ::goby::acomms::protobuf::ModemTransmission* StoreServerResponse::add_inbox() {
379  // @@protoc_insertion_point(field_add:goby.acomms.protobuf.StoreServerResponse.inbox)
380  return inbox_.Add();
381 }
382 inline const ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >&
383 StoreServerResponse::inbox() const {
384  // @@protoc_insertion_point(field_list:goby.acomms.protobuf.StoreServerResponse.inbox)
385  return inbox_;
386 }
387 inline ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >*
388 StoreServerResponse::mutable_inbox() {
389  // @@protoc_insertion_point(field_mutable_list:goby.acomms.protobuf.StoreServerResponse.inbox)
390  return &inbox_;
391 }
392 
393 // optional uint64 request_id = 3;
394 inline bool StoreServerResponse::has_request_id() const {
395  return (_has_bits_[0] & 0x00000004u) != 0;
396 }
397 inline void StoreServerResponse::set_has_request_id() {
398  _has_bits_[0] |= 0x00000004u;
399 }
400 inline void StoreServerResponse::clear_has_request_id() {
401  _has_bits_[0] &= ~0x00000004u;
402 }
403 inline void StoreServerResponse::clear_request_id() {
404  request_id_ = GOOGLE_ULONGLONG(0);
405  clear_has_request_id();
406 }
407 inline ::google::protobuf::uint64 StoreServerResponse::request_id() const {
408  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.StoreServerResponse.request_id)
409  return request_id_;
410 }
411 inline void StoreServerResponse::set_request_id(::google::protobuf::uint64 value) {
412  set_has_request_id();
413  request_id_ = value;
414  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.StoreServerResponse.request_id)
415 }
416 
417 
418 // @@protoc_insertion_point(namespace_scope)
419 
420 } // namespace protobuf
421 } // namespace acomms
422 } // namespace goby
423 
424 #ifndef SWIG
425 namespace google {
426 namespace protobuf {
427 
428 
429 } // namespace google
430 } // namespace protobuf
431 #endif // SWIG
432 
433 // @@protoc_insertion_point(global_scope)
434 
435 #endif // PROTOBUF_goby_2facomms_2fprotobuf_2fstore_5fserver_2eproto__INCLUDED
The global namespace for the Goby project.