Goby v2
file_transfer.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/acomms/protobuf/file_transfer.proto
3 
4 #ifndef PROTOBUF_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto__INCLUDED
5 #define PROTOBUF_goby_2facomms_2fprotobuf_2ffile_5ftransfer_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 "goby/common/protobuf/option_extensions.pb.h"
29 #include "dccl/option_extensions.pb.h"
30 #include <boost/units/quantity.hpp>
31 #include <boost/units/absolute.hpp>
32 #include <boost/units/dimensionless_type.hpp>
33 #include <boost/units/make_scaled_unit.hpp>
34 // @@protoc_insertion_point(includes)
35 
36 namespace goby {
37 namespace acomms {
38 namespace protobuf {
39 
40 // Internal implementation detail -- do not call these.
41 void protobuf_AddDesc_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto();
42 void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto();
43 void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto();
44 
45 class FileFragment;
46 class TransferRequest;
47 class TransferResponse;
48 
49 enum TransferRequest_PushPull {
50  TransferRequest_PushPull_PUSH = 1,
51  TransferRequest_PushPull_PULL = 2
52 };
53 bool TransferRequest_PushPull_IsValid(int value);
54 const TransferRequest_PushPull TransferRequest_PushPull_PushPull_MIN = TransferRequest_PushPull_PUSH;
55 const TransferRequest_PushPull TransferRequest_PushPull_PushPull_MAX = TransferRequest_PushPull_PULL;
56 const int TransferRequest_PushPull_PushPull_ARRAYSIZE = TransferRequest_PushPull_PushPull_MAX + 1;
57 
58 const ::google::protobuf::EnumDescriptor* TransferRequest_PushPull_descriptor();
59 inline const ::std::string& TransferRequest_PushPull_Name(TransferRequest_PushPull value) {
60  return ::google::protobuf::internal::NameOfEnum(
61  TransferRequest_PushPull_descriptor(), value);
62 }
63 inline bool TransferRequest_PushPull_Parse(
64  const ::std::string& name, TransferRequest_PushPull* value) {
65  return ::google::protobuf::internal::ParseNamedEnum<TransferRequest_PushPull>(
66  TransferRequest_PushPull_descriptor(), name, value);
67 }
68 enum TransferResponse_ErrorCode {
69  TransferResponse_ErrorCode_COULD_NOT_READ_FILE = 1,
70  TransferResponse_ErrorCode_FILE_TOO_LARGE = 2,
71  TransferResponse_ErrorCode_TIMEOUT = 3,
72  TransferResponse_ErrorCode_COULD_NOT_WRITE_FILE = 4,
73  TransferResponse_ErrorCode_ERROR_WHILE_READING = 5,
74  TransferResponse_ErrorCode_OTHER_ERROR = 6
75 };
76 bool TransferResponse_ErrorCode_IsValid(int value);
77 const TransferResponse_ErrorCode TransferResponse_ErrorCode_ErrorCode_MIN = TransferResponse_ErrorCode_COULD_NOT_READ_FILE;
78 const TransferResponse_ErrorCode TransferResponse_ErrorCode_ErrorCode_MAX = TransferResponse_ErrorCode_OTHER_ERROR;
79 const int TransferResponse_ErrorCode_ErrorCode_ARRAYSIZE = TransferResponse_ErrorCode_ErrorCode_MAX + 1;
80 
81 const ::google::protobuf::EnumDescriptor* TransferResponse_ErrorCode_descriptor();
82 inline const ::std::string& TransferResponse_ErrorCode_Name(TransferResponse_ErrorCode value) {
83  return ::google::protobuf::internal::NameOfEnum(
84  TransferResponse_ErrorCode_descriptor(), value);
85 }
86 inline bool TransferResponse_ErrorCode_Parse(
87  const ::std::string& name, TransferResponse_ErrorCode* value) {
88  return ::google::protobuf::internal::ParseNamedEnum<TransferResponse_ErrorCode>(
89  TransferResponse_ErrorCode_descriptor(), name, value);
90 }
91 // ===================================================================
92 
93 class FileFragment : public ::google::protobuf::Message {
94  public:
95  FileFragment();
96  virtual ~FileFragment();
97 
98  FileFragment(const FileFragment& from);
99 
100  inline FileFragment& operator=(const FileFragment& from) {
101  CopyFrom(from);
102  return *this;
103  }
104 
105  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
106  return _unknown_fields_;
107  }
108 
109  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
110  return &_unknown_fields_;
111  }
112 
113  static const ::google::protobuf::Descriptor* descriptor();
114  static const FileFragment& default_instance();
115 
116  void Swap(FileFragment* other);
117 
118  // implements Message ----------------------------------------------
119 
120  FileFragment* New() const;
121  void CopyFrom(const ::google::protobuf::Message& from);
122  void MergeFrom(const ::google::protobuf::Message& from);
123  void CopyFrom(const FileFragment& from);
124  void MergeFrom(const FileFragment& from);
125  void Clear();
126  bool IsInitialized() const;
127 
128  int ByteSize() const;
129  bool MergePartialFromCodedStream(
130  ::google::protobuf::io::CodedInputStream* input);
131  void SerializeWithCachedSizes(
132  ::google::protobuf::io::CodedOutputStream* output) const;
133  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
134  int GetCachedSize() const { return _cached_size_; }
135  private:
136  void SharedCtor();
137  void SharedDtor();
138  void SetCachedSize(int size) const;
139  public:
140  ::google::protobuf::Metadata GetMetadata() const;
141 
142  // nested types ----------------------------------------------------
143 
144  // accessors -------------------------------------------------------
145 
146  // required int32 src = 1;
147  inline bool has_src() const;
148  inline void clear_src();
149  static const int kSrcFieldNumber = 1;
150  inline ::google::protobuf::int32 src() const;
151  inline void set_src(::google::protobuf::int32 value);
152 
153  // required int32 dest = 2;
154  inline bool has_dest() const;
155  inline void clear_dest();
156  static const int kDestFieldNumber = 2;
157  inline ::google::protobuf::int32 dest() const;
158  inline void set_dest(::google::protobuf::int32 value);
159 
160  // required int32 fragment = 3;
161  inline bool has_fragment() const;
162  inline void clear_fragment();
163  static const int kFragmentFieldNumber = 3;
164  inline ::google::protobuf::int32 fragment() const;
165  inline void set_fragment(::google::protobuf::int32 value);
166 
167  // required bool is_last_fragment = 4;
168  inline bool has_is_last_fragment() const;
169  inline void clear_is_last_fragment();
170  static const int kIsLastFragmentFieldNumber = 4;
171  inline bool is_last_fragment() const;
172  inline void set_is_last_fragment(bool value);
173 
174  // required int32 num_bytes = 5;
175  inline bool has_num_bytes() const;
176  inline void clear_num_bytes();
177  static const int kNumBytesFieldNumber = 5;
178  inline ::google::protobuf::int32 num_bytes() const;
179  inline void set_num_bytes(::google::protobuf::int32 value);
180 
181  // required bytes data = 6;
182  inline bool has_data() const;
183  inline void clear_data();
184  static const int kDataFieldNumber = 6;
185  inline const ::std::string& data() const;
186  inline void set_data(const ::std::string& value);
187  inline void set_data(const char* value);
188  inline void set_data(const void* value, size_t size);
189  inline ::std::string* mutable_data();
190  inline ::std::string* release_data();
191  inline void set_allocated_data(::std::string* data);
192 
193  enum DCCLParameters { DCCL_ID = 7, DCCL_MAX_BYTES = 64 };
194  // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.FileFragment)
195  private:
196  inline void set_has_src();
197  inline void clear_has_src();
198  inline void set_has_dest();
199  inline void clear_has_dest();
200  inline void set_has_fragment();
201  inline void clear_has_fragment();
202  inline void set_has_is_last_fragment();
203  inline void clear_has_is_last_fragment();
204  inline void set_has_num_bytes();
205  inline void clear_has_num_bytes();
206  inline void set_has_data();
207  inline void clear_has_data();
208 
209  ::google::protobuf::UnknownFieldSet _unknown_fields_;
210 
211  ::google::protobuf::uint32 _has_bits_[1];
212  mutable int _cached_size_;
213  ::google::protobuf::int32 src_;
214  ::google::protobuf::int32 dest_;
215  ::google::protobuf::int32 fragment_;
216  bool is_last_fragment_;
217  ::std::string* data_;
218  ::google::protobuf::int32 num_bytes_;
219  friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto();
220  friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto();
221  friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto();
222 
223  void InitAsDefaultInstance();
224  static FileFragment* default_instance_;
225 };
226 // -------------------------------------------------------------------
227 
228 class TransferRequest : public ::google::protobuf::Message {
229  public:
230  TransferRequest();
231  virtual ~TransferRequest();
232 
233  TransferRequest(const TransferRequest& from);
234 
235  inline TransferRequest& operator=(const TransferRequest& from) {
236  CopyFrom(from);
237  return *this;
238  }
239 
240  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
241  return _unknown_fields_;
242  }
243 
244  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
245  return &_unknown_fields_;
246  }
247 
248  static const ::google::protobuf::Descriptor* descriptor();
249  static const TransferRequest& default_instance();
250 
251  void Swap(TransferRequest* other);
252 
253  // implements Message ----------------------------------------------
254 
255  TransferRequest* New() const;
256  void CopyFrom(const ::google::protobuf::Message& from);
257  void MergeFrom(const ::google::protobuf::Message& from);
258  void CopyFrom(const TransferRequest& from);
259  void MergeFrom(const TransferRequest& from);
260  void Clear();
261  bool IsInitialized() const;
262 
263  int ByteSize() const;
264  bool MergePartialFromCodedStream(
265  ::google::protobuf::io::CodedInputStream* input);
266  void SerializeWithCachedSizes(
267  ::google::protobuf::io::CodedOutputStream* output) const;
268  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
269  int GetCachedSize() const { return _cached_size_; }
270  private:
271  void SharedCtor();
272  void SharedDtor();
273  void SetCachedSize(int size) const;
274  public:
275  ::google::protobuf::Metadata GetMetadata() const;
276 
277  // nested types ----------------------------------------------------
278 
279  typedef TransferRequest_PushPull PushPull;
280  static const PushPull PUSH = TransferRequest_PushPull_PUSH;
281  static const PushPull PULL = TransferRequest_PushPull_PULL;
282  static inline bool PushPull_IsValid(int value) {
283  return TransferRequest_PushPull_IsValid(value);
284  }
285  static const PushPull PushPull_MIN =
286  TransferRequest_PushPull_PushPull_MIN;
287  static const PushPull PushPull_MAX =
288  TransferRequest_PushPull_PushPull_MAX;
289  static const int PushPull_ARRAYSIZE =
290  TransferRequest_PushPull_PushPull_ARRAYSIZE;
291  static inline const ::google::protobuf::EnumDescriptor*
292  PushPull_descriptor() {
293  return TransferRequest_PushPull_descriptor();
294  }
295  static inline const ::std::string& PushPull_Name(PushPull value) {
296  return TransferRequest_PushPull_Name(value);
297  }
298  static inline bool PushPull_Parse(const ::std::string& name,
299  PushPull* value) {
300  return TransferRequest_PushPull_Parse(name, value);
301  }
302 
303  // accessors -------------------------------------------------------
304 
305  // required int32 src = 1;
306  inline bool has_src() const;
307  inline void clear_src();
308  static const int kSrcFieldNumber = 1;
309  inline ::google::protobuf::int32 src() const;
310  inline void set_src(::google::protobuf::int32 value);
311 
312  // required int32 dest = 2;
313  inline bool has_dest() const;
314  inline void clear_dest();
315  static const int kDestFieldNumber = 2;
316  inline ::google::protobuf::int32 dest() const;
317  inline void set_dest(::google::protobuf::int32 value);
318 
319  // required .goby.acomms.protobuf.TransferRequest.PushPull push_or_pull = 3;
320  inline bool has_push_or_pull() const;
321  inline void clear_push_or_pull();
322  static const int kPushOrPullFieldNumber = 3;
323  inline ::goby::acomms::protobuf::TransferRequest_PushPull push_or_pull() const;
324  inline void set_push_or_pull(::goby::acomms::protobuf::TransferRequest_PushPull value);
325 
326  // required string file = 10;
327  inline bool has_file() const;
328  inline void clear_file();
329  static const int kFileFieldNumber = 10;
330  inline const ::std::string& file() const;
331  inline void set_file(const ::std::string& value);
332  inline void set_file(const char* value);
333  inline void set_file(const char* value, size_t size);
334  inline ::std::string* mutable_file();
335  inline ::std::string* release_file();
336  inline void set_allocated_file(::std::string* file);
337 
338  enum DCCLParameters { DCCL_ID = 8, DCCL_MAX_BYTES = 64 };
339  // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.TransferRequest)
340  private:
341  inline void set_has_src();
342  inline void clear_has_src();
343  inline void set_has_dest();
344  inline void clear_has_dest();
345  inline void set_has_push_or_pull();
346  inline void clear_has_push_or_pull();
347  inline void set_has_file();
348  inline void clear_has_file();
349 
350  ::google::protobuf::UnknownFieldSet _unknown_fields_;
351 
352  ::google::protobuf::uint32 _has_bits_[1];
353  mutable int _cached_size_;
354  ::google::protobuf::int32 src_;
355  ::google::protobuf::int32 dest_;
356  ::std::string* file_;
357  int push_or_pull_;
358  friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto();
359  friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto();
360  friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto();
361 
362  void InitAsDefaultInstance();
363  static TransferRequest* default_instance_;
364 };
365 // -------------------------------------------------------------------
366 
367 class TransferResponse : public ::google::protobuf::Message {
368  public:
370  virtual ~TransferResponse();
371 
372  TransferResponse(const TransferResponse& from);
373 
374  inline TransferResponse& operator=(const TransferResponse& from) {
375  CopyFrom(from);
376  return *this;
377  }
378 
379  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
380  return _unknown_fields_;
381  }
382 
383  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
384  return &_unknown_fields_;
385  }
386 
387  static const ::google::protobuf::Descriptor* descriptor();
388  static const TransferResponse& default_instance();
389 
390  void Swap(TransferResponse* other);
391 
392  // implements Message ----------------------------------------------
393 
394  TransferResponse* New() const;
395  void CopyFrom(const ::google::protobuf::Message& from);
396  void MergeFrom(const ::google::protobuf::Message& from);
397  void CopyFrom(const TransferResponse& from);
398  void MergeFrom(const TransferResponse& from);
399  void Clear();
400  bool IsInitialized() const;
401 
402  int ByteSize() const;
403  bool MergePartialFromCodedStream(
404  ::google::protobuf::io::CodedInputStream* input);
405  void SerializeWithCachedSizes(
406  ::google::protobuf::io::CodedOutputStream* output) const;
407  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
408  int GetCachedSize() const { return _cached_size_; }
409  private:
410  void SharedCtor();
411  void SharedDtor();
412  void SetCachedSize(int size) const;
413  public:
414  ::google::protobuf::Metadata GetMetadata() const;
415 
416  // nested types ----------------------------------------------------
417 
418  typedef TransferResponse_ErrorCode ErrorCode;
419  static const ErrorCode COULD_NOT_READ_FILE = TransferResponse_ErrorCode_COULD_NOT_READ_FILE;
420  static const ErrorCode FILE_TOO_LARGE = TransferResponse_ErrorCode_FILE_TOO_LARGE;
421  static const ErrorCode TIMEOUT = TransferResponse_ErrorCode_TIMEOUT;
422  static const ErrorCode COULD_NOT_WRITE_FILE = TransferResponse_ErrorCode_COULD_NOT_WRITE_FILE;
423  static const ErrorCode ERROR_WHILE_READING = TransferResponse_ErrorCode_ERROR_WHILE_READING;
424  static const ErrorCode OTHER_ERROR = TransferResponse_ErrorCode_OTHER_ERROR;
425  static inline bool ErrorCode_IsValid(int value) {
426  return TransferResponse_ErrorCode_IsValid(value);
427  }
428  static const ErrorCode ErrorCode_MIN =
429  TransferResponse_ErrorCode_ErrorCode_MIN;
430  static const ErrorCode ErrorCode_MAX =
431  TransferResponse_ErrorCode_ErrorCode_MAX;
432  static const int ErrorCode_ARRAYSIZE =
433  TransferResponse_ErrorCode_ErrorCode_ARRAYSIZE;
434  static inline const ::google::protobuf::EnumDescriptor*
435  ErrorCode_descriptor() {
436  return TransferResponse_ErrorCode_descriptor();
437  }
438  static inline const ::std::string& ErrorCode_Name(ErrorCode value) {
439  return TransferResponse_ErrorCode_Name(value);
440  }
441  static inline bool ErrorCode_Parse(const ::std::string& name,
442  ErrorCode* value) {
443  return TransferResponse_ErrorCode_Parse(name, value);
444  }
445 
446  // accessors -------------------------------------------------------
447 
448  // required int32 src = 1;
449  inline bool has_src() const;
450  inline void clear_src();
451  static const int kSrcFieldNumber = 1;
452  inline ::google::protobuf::int32 src() const;
453  inline void set_src(::google::protobuf::int32 value);
454 
455  // required int32 dest = 2;
456  inline bool has_dest() const;
457  inline void clear_dest();
458  static const int kDestFieldNumber = 2;
459  inline ::google::protobuf::int32 dest() const;
460  inline void set_dest(::google::protobuf::int32 value);
461 
462  // required bool transfer_successful = 3;
463  inline bool has_transfer_successful() const;
464  inline void clear_transfer_successful();
465  static const int kTransferSuccessfulFieldNumber = 3;
466  inline bool transfer_successful() const;
467  inline void set_transfer_successful(bool value);
468 
469  // optional .goby.acomms.protobuf.TransferResponse.ErrorCode error = 4;
470  inline bool has_error() const;
471  inline void clear_error();
472  static const int kErrorFieldNumber = 4;
473  inline ::goby::acomms::protobuf::TransferResponse_ErrorCode error() const;
474  inline void set_error(::goby::acomms::protobuf::TransferResponse_ErrorCode value);
475 
476  // optional int32 num_fragments = 5;
477  inline bool has_num_fragments() const;
478  inline void clear_num_fragments();
479  static const int kNumFragmentsFieldNumber = 5;
480  inline ::google::protobuf::int32 num_fragments() const;
481  inline void set_num_fragments(::google::protobuf::int32 value);
482 
483  enum DCCLParameters { DCCL_ID = 9, DCCL_MAX_BYTES = 64 };
484  // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.TransferResponse)
485  private:
486  inline void set_has_src();
487  inline void clear_has_src();
488  inline void set_has_dest();
489  inline void clear_has_dest();
490  inline void set_has_transfer_successful();
491  inline void clear_has_transfer_successful();
492  inline void set_has_error();
493  inline void clear_has_error();
494  inline void set_has_num_fragments();
495  inline void clear_has_num_fragments();
496 
497  ::google::protobuf::UnknownFieldSet _unknown_fields_;
498 
499  ::google::protobuf::uint32 _has_bits_[1];
500  mutable int _cached_size_;
501  ::google::protobuf::int32 src_;
502  ::google::protobuf::int32 dest_;
503  bool transfer_successful_;
504  int error_;
505  ::google::protobuf::int32 num_fragments_;
506  friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto();
507  friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto();
508  friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto();
509 
510  void InitAsDefaultInstance();
511  static TransferResponse* default_instance_;
512 };
513 // ===================================================================
514 
515 
516 // ===================================================================
517 
518 // FileFragment
519 
520 // required int32 src = 1;
521 inline bool FileFragment::has_src() const {
522  return (_has_bits_[0] & 0x00000001u) != 0;
523 }
524 inline void FileFragment::set_has_src() {
525  _has_bits_[0] |= 0x00000001u;
526 }
527 inline void FileFragment::clear_has_src() {
528  _has_bits_[0] &= ~0x00000001u;
529 }
530 inline void FileFragment::clear_src() {
531  src_ = 0;
532  clear_has_src();
533 }
534 inline ::google::protobuf::int32 FileFragment::src() const {
535  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.FileFragment.src)
536  return src_;
537 }
538 inline void FileFragment::set_src(::google::protobuf::int32 value) {
539  set_has_src();
540  src_ = value;
541  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.FileFragment.src)
542 }
543 
544 // required int32 dest = 2;
545 inline bool FileFragment::has_dest() const {
546  return (_has_bits_[0] & 0x00000002u) != 0;
547 }
548 inline void FileFragment::set_has_dest() {
549  _has_bits_[0] |= 0x00000002u;
550 }
551 inline void FileFragment::clear_has_dest() {
552  _has_bits_[0] &= ~0x00000002u;
553 }
554 inline void FileFragment::clear_dest() {
555  dest_ = 0;
556  clear_has_dest();
557 }
558 inline ::google::protobuf::int32 FileFragment::dest() const {
559  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.FileFragment.dest)
560  return dest_;
561 }
562 inline void FileFragment::set_dest(::google::protobuf::int32 value) {
563  set_has_dest();
564  dest_ = value;
565  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.FileFragment.dest)
566 }
567 
568 // required int32 fragment = 3;
569 inline bool FileFragment::has_fragment() const {
570  return (_has_bits_[0] & 0x00000004u) != 0;
571 }
572 inline void FileFragment::set_has_fragment() {
573  _has_bits_[0] |= 0x00000004u;
574 }
575 inline void FileFragment::clear_has_fragment() {
576  _has_bits_[0] &= ~0x00000004u;
577 }
578 inline void FileFragment::clear_fragment() {
579  fragment_ = 0;
580  clear_has_fragment();
581 }
582 inline ::google::protobuf::int32 FileFragment::fragment() const {
583  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.FileFragment.fragment)
584  return fragment_;
585 }
586 inline void FileFragment::set_fragment(::google::protobuf::int32 value) {
587  set_has_fragment();
588  fragment_ = value;
589  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.FileFragment.fragment)
590 }
591 
592 // required bool is_last_fragment = 4;
593 inline bool FileFragment::has_is_last_fragment() const {
594  return (_has_bits_[0] & 0x00000008u) != 0;
595 }
596 inline void FileFragment::set_has_is_last_fragment() {
597  _has_bits_[0] |= 0x00000008u;
598 }
599 inline void FileFragment::clear_has_is_last_fragment() {
600  _has_bits_[0] &= ~0x00000008u;
601 }
602 inline void FileFragment::clear_is_last_fragment() {
603  is_last_fragment_ = false;
604  clear_has_is_last_fragment();
605 }
606 inline bool FileFragment::is_last_fragment() const {
607  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.FileFragment.is_last_fragment)
608  return is_last_fragment_;
609 }
610 inline void FileFragment::set_is_last_fragment(bool value) {
611  set_has_is_last_fragment();
612  is_last_fragment_ = value;
613  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.FileFragment.is_last_fragment)
614 }
615 
616 // required int32 num_bytes = 5;
617 inline bool FileFragment::has_num_bytes() const {
618  return (_has_bits_[0] & 0x00000010u) != 0;
619 }
620 inline void FileFragment::set_has_num_bytes() {
621  _has_bits_[0] |= 0x00000010u;
622 }
623 inline void FileFragment::clear_has_num_bytes() {
624  _has_bits_[0] &= ~0x00000010u;
625 }
626 inline void FileFragment::clear_num_bytes() {
627  num_bytes_ = 0;
628  clear_has_num_bytes();
629 }
630 inline ::google::protobuf::int32 FileFragment::num_bytes() const {
631  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.FileFragment.num_bytes)
632  return num_bytes_;
633 }
634 inline void FileFragment::set_num_bytes(::google::protobuf::int32 value) {
635  set_has_num_bytes();
636  num_bytes_ = value;
637  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.FileFragment.num_bytes)
638 }
639 
640 // required bytes data = 6;
641 inline bool FileFragment::has_data() const {
642  return (_has_bits_[0] & 0x00000020u) != 0;
643 }
644 inline void FileFragment::set_has_data() {
645  _has_bits_[0] |= 0x00000020u;
646 }
647 inline void FileFragment::clear_has_data() {
648  _has_bits_[0] &= ~0x00000020u;
649 }
650 inline void FileFragment::clear_data() {
651  if (data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
652  data_->clear();
653  }
654  clear_has_data();
655 }
656 inline const ::std::string& FileFragment::data() const {
657  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.FileFragment.data)
658  return *data_;
659 }
660 inline void FileFragment::set_data(const ::std::string& value) {
661  set_has_data();
662  if (data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
663  data_ = new ::std::string;
664  }
665  data_->assign(value);
666  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.FileFragment.data)
667 }
668 inline void FileFragment::set_data(const char* value) {
669  set_has_data();
670  if (data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
671  data_ = new ::std::string;
672  }
673  data_->assign(value);
674  // @@protoc_insertion_point(field_set_char:goby.acomms.protobuf.FileFragment.data)
675 }
676 inline void FileFragment::set_data(const void* value, size_t size) {
677  set_has_data();
678  if (data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
679  data_ = new ::std::string;
680  }
681  data_->assign(reinterpret_cast<const char*>(value), size);
682  // @@protoc_insertion_point(field_set_pointer:goby.acomms.protobuf.FileFragment.data)
683 }
684 inline ::std::string* FileFragment::mutable_data() {
685  set_has_data();
686  if (data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
687  data_ = new ::std::string;
688  }
689  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.FileFragment.data)
690  return data_;
691 }
692 inline ::std::string* FileFragment::release_data() {
693  clear_has_data();
694  if (data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
695  return NULL;
696  } else {
697  ::std::string* temp = data_;
698  data_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
699  return temp;
700  }
701 }
702 inline void FileFragment::set_allocated_data(::std::string* data) {
703  if (data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
704  delete data_;
705  }
706  if (data) {
707  set_has_data();
708  data_ = data;
709  } else {
710  clear_has_data();
711  data_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
712  }
713  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.FileFragment.data)
714 }
715 
716 // -------------------------------------------------------------------
717 
718 // TransferRequest
719 
720 // required int32 src = 1;
721 inline bool TransferRequest::has_src() const {
722  return (_has_bits_[0] & 0x00000001u) != 0;
723 }
724 inline void TransferRequest::set_has_src() {
725  _has_bits_[0] |= 0x00000001u;
726 }
727 inline void TransferRequest::clear_has_src() {
728  _has_bits_[0] &= ~0x00000001u;
729 }
730 inline void TransferRequest::clear_src() {
731  src_ = 0;
732  clear_has_src();
733 }
734 inline ::google::protobuf::int32 TransferRequest::src() const {
735  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.TransferRequest.src)
736  return src_;
737 }
738 inline void TransferRequest::set_src(::google::protobuf::int32 value) {
739  set_has_src();
740  src_ = value;
741  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.TransferRequest.src)
742 }
743 
744 // required int32 dest = 2;
745 inline bool TransferRequest::has_dest() const {
746  return (_has_bits_[0] & 0x00000002u) != 0;
747 }
748 inline void TransferRequest::set_has_dest() {
749  _has_bits_[0] |= 0x00000002u;
750 }
751 inline void TransferRequest::clear_has_dest() {
752  _has_bits_[0] &= ~0x00000002u;
753 }
754 inline void TransferRequest::clear_dest() {
755  dest_ = 0;
756  clear_has_dest();
757 }
758 inline ::google::protobuf::int32 TransferRequest::dest() const {
759  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.TransferRequest.dest)
760  return dest_;
761 }
762 inline void TransferRequest::set_dest(::google::protobuf::int32 value) {
763  set_has_dest();
764  dest_ = value;
765  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.TransferRequest.dest)
766 }
767 
768 // required .goby.acomms.protobuf.TransferRequest.PushPull push_or_pull = 3;
769 inline bool TransferRequest::has_push_or_pull() const {
770  return (_has_bits_[0] & 0x00000004u) != 0;
771 }
772 inline void TransferRequest::set_has_push_or_pull() {
773  _has_bits_[0] |= 0x00000004u;
774 }
775 inline void TransferRequest::clear_has_push_or_pull() {
776  _has_bits_[0] &= ~0x00000004u;
777 }
778 inline void TransferRequest::clear_push_or_pull() {
779  push_or_pull_ = 1;
780  clear_has_push_or_pull();
781 }
782 inline ::goby::acomms::protobuf::TransferRequest_PushPull TransferRequest::push_or_pull() const {
783  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.TransferRequest.push_or_pull)
784  return static_cast< ::goby::acomms::protobuf::TransferRequest_PushPull >(push_or_pull_);
785 }
786 inline void TransferRequest::set_push_or_pull(::goby::acomms::protobuf::TransferRequest_PushPull value) {
787  assert(::goby::acomms::protobuf::TransferRequest_PushPull_IsValid(value));
788  set_has_push_or_pull();
789  push_or_pull_ = value;
790  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.TransferRequest.push_or_pull)
791 }
792 
793 // required string file = 10;
794 inline bool TransferRequest::has_file() const {
795  return (_has_bits_[0] & 0x00000008u) != 0;
796 }
797 inline void TransferRequest::set_has_file() {
798  _has_bits_[0] |= 0x00000008u;
799 }
800 inline void TransferRequest::clear_has_file() {
801  _has_bits_[0] &= ~0x00000008u;
802 }
803 inline void TransferRequest::clear_file() {
804  if (file_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
805  file_->clear();
806  }
807  clear_has_file();
808 }
809 inline const ::std::string& TransferRequest::file() const {
810  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.TransferRequest.file)
811  return *file_;
812 }
813 inline void TransferRequest::set_file(const ::std::string& value) {
814  set_has_file();
815  if (file_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
816  file_ = new ::std::string;
817  }
818  file_->assign(value);
819  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.TransferRequest.file)
820 }
821 inline void TransferRequest::set_file(const char* value) {
822  set_has_file();
823  if (file_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
824  file_ = new ::std::string;
825  }
826  file_->assign(value);
827  // @@protoc_insertion_point(field_set_char:goby.acomms.protobuf.TransferRequest.file)
828 }
829 inline void TransferRequest::set_file(const char* value, size_t size) {
830  set_has_file();
831  if (file_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
832  file_ = new ::std::string;
833  }
834  file_->assign(reinterpret_cast<const char*>(value), size);
835  // @@protoc_insertion_point(field_set_pointer:goby.acomms.protobuf.TransferRequest.file)
836 }
837 inline ::std::string* TransferRequest::mutable_file() {
838  set_has_file();
839  if (file_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
840  file_ = new ::std::string;
841  }
842  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.TransferRequest.file)
843  return file_;
844 }
845 inline ::std::string* TransferRequest::release_file() {
846  clear_has_file();
847  if (file_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
848  return NULL;
849  } else {
850  ::std::string* temp = file_;
851  file_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
852  return temp;
853  }
854 }
855 inline void TransferRequest::set_allocated_file(::std::string* file) {
856  if (file_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
857  delete file_;
858  }
859  if (file) {
860  set_has_file();
861  file_ = file;
862  } else {
863  clear_has_file();
864  file_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
865  }
866  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.TransferRequest.file)
867 }
868 
869 // -------------------------------------------------------------------
870 
871 // TransferResponse
872 
873 // required int32 src = 1;
874 inline bool TransferResponse::has_src() const {
875  return (_has_bits_[0] & 0x00000001u) != 0;
876 }
877 inline void TransferResponse::set_has_src() {
878  _has_bits_[0] |= 0x00000001u;
879 }
880 inline void TransferResponse::clear_has_src() {
881  _has_bits_[0] &= ~0x00000001u;
882 }
883 inline void TransferResponse::clear_src() {
884  src_ = 0;
885  clear_has_src();
886 }
887 inline ::google::protobuf::int32 TransferResponse::src() const {
888  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.TransferResponse.src)
889  return src_;
890 }
891 inline void TransferResponse::set_src(::google::protobuf::int32 value) {
892  set_has_src();
893  src_ = value;
894  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.TransferResponse.src)
895 }
896 
897 // required int32 dest = 2;
898 inline bool TransferResponse::has_dest() const {
899  return (_has_bits_[0] & 0x00000002u) != 0;
900 }
901 inline void TransferResponse::set_has_dest() {
902  _has_bits_[0] |= 0x00000002u;
903 }
904 inline void TransferResponse::clear_has_dest() {
905  _has_bits_[0] &= ~0x00000002u;
906 }
907 inline void TransferResponse::clear_dest() {
908  dest_ = 0;
909  clear_has_dest();
910 }
911 inline ::google::protobuf::int32 TransferResponse::dest() const {
912  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.TransferResponse.dest)
913  return dest_;
914 }
915 inline void TransferResponse::set_dest(::google::protobuf::int32 value) {
916  set_has_dest();
917  dest_ = value;
918  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.TransferResponse.dest)
919 }
920 
921 // required bool transfer_successful = 3;
922 inline bool TransferResponse::has_transfer_successful() const {
923  return (_has_bits_[0] & 0x00000004u) != 0;
924 }
925 inline void TransferResponse::set_has_transfer_successful() {
926  _has_bits_[0] |= 0x00000004u;
927 }
928 inline void TransferResponse::clear_has_transfer_successful() {
929  _has_bits_[0] &= ~0x00000004u;
930 }
931 inline void TransferResponse::clear_transfer_successful() {
932  transfer_successful_ = false;
933  clear_has_transfer_successful();
934 }
935 inline bool TransferResponse::transfer_successful() const {
936  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.TransferResponse.transfer_successful)
937  return transfer_successful_;
938 }
939 inline void TransferResponse::set_transfer_successful(bool value) {
940  set_has_transfer_successful();
941  transfer_successful_ = value;
942  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.TransferResponse.transfer_successful)
943 }
944 
945 // optional .goby.acomms.protobuf.TransferResponse.ErrorCode error = 4;
946 inline bool TransferResponse::has_error() const {
947  return (_has_bits_[0] & 0x00000008u) != 0;
948 }
949 inline void TransferResponse::set_has_error() {
950  _has_bits_[0] |= 0x00000008u;
951 }
952 inline void TransferResponse::clear_has_error() {
953  _has_bits_[0] &= ~0x00000008u;
954 }
955 inline void TransferResponse::clear_error() {
956  error_ = 1;
957  clear_has_error();
958 }
959 inline ::goby::acomms::protobuf::TransferResponse_ErrorCode TransferResponse::error() const {
960  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.TransferResponse.error)
961  return static_cast< ::goby::acomms::protobuf::TransferResponse_ErrorCode >(error_);
962 }
963 inline void TransferResponse::set_error(::goby::acomms::protobuf::TransferResponse_ErrorCode value) {
964  assert(::goby::acomms::protobuf::TransferResponse_ErrorCode_IsValid(value));
965  set_has_error();
966  error_ = value;
967  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.TransferResponse.error)
968 }
969 
970 // optional int32 num_fragments = 5;
971 inline bool TransferResponse::has_num_fragments() const {
972  return (_has_bits_[0] & 0x00000010u) != 0;
973 }
974 inline void TransferResponse::set_has_num_fragments() {
975  _has_bits_[0] |= 0x00000010u;
976 }
977 inline void TransferResponse::clear_has_num_fragments() {
978  _has_bits_[0] &= ~0x00000010u;
979 }
980 inline void TransferResponse::clear_num_fragments() {
981  num_fragments_ = 0;
982  clear_has_num_fragments();
983 }
984 inline ::google::protobuf::int32 TransferResponse::num_fragments() const {
985  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.TransferResponse.num_fragments)
986  return num_fragments_;
987 }
988 inline void TransferResponse::set_num_fragments(::google::protobuf::int32 value) {
989  set_has_num_fragments();
990  num_fragments_ = value;
991  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.TransferResponse.num_fragments)
992 }
993 
994 
995 // @@protoc_insertion_point(namespace_scope)
996 
997 } // namespace protobuf
998 } // namespace acomms
999 } // namespace goby
1000 
1001 #ifndef SWIG
1002 namespace google {
1003 namespace protobuf {
1004 
1005 template <> struct is_proto_enum< ::goby::acomms::protobuf::TransferRequest_PushPull> : ::google::protobuf::internal::true_type {};
1006 template <>
1007 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::TransferRequest_PushPull>() {
1008  return ::goby::acomms::protobuf::TransferRequest_PushPull_descriptor();
1009 }
1010 template <> struct is_proto_enum< ::goby::acomms::protobuf::TransferResponse_ErrorCode> : ::google::protobuf::internal::true_type {};
1011 template <>
1012 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::TransferResponse_ErrorCode>() {
1013  return ::goby::acomms::protobuf::TransferResponse_ErrorCode_descriptor();
1014 }
1015 
1016 } // namespace google
1017 } // namespace protobuf
1018 #endif // SWIG
1019 
1020 // @@protoc_insertion_point(global_scope)
1021 
1022 #endif // PROTOBUF_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto__INCLUDED
The global namespace for the Goby project.