4 #ifndef PROTOBUF_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto__INCLUDED 5 #define PROTOBUF_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 11 #if GOOGLE_PROTOBUF_VERSION < 2006000 12 #error This file was generated by a newer version of protoc which is 13 #error incompatible with your Protocol Buffer headers. Please update 16 #if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION 17 #error This file was generated by an older version of protoc which is 18 #error incompatible with your Protocol Buffer headers. Please 19 #error regenerate this file with a newer version of protoc. 22 #include <google/protobuf/generated_message_util.h> 23 #include <google/protobuf/message.h> 24 #include <google/protobuf/repeated_field.h> 25 #include <google/protobuf/extension_set.h> 26 #include <google/protobuf/generated_enum_reflection.h> 27 #include <google/protobuf/unknown_field_set.h> 28 #include "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> 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();
46 class TransferRequest;
47 class TransferResponse;
49 enum TransferRequest_PushPull {
50 TransferRequest_PushPull_PUSH = 1,
51 TransferRequest_PushPull_PULL = 2
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;
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);
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);
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
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;
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);
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);
105 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
106 return _unknown_fields_;
109 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
110 return &_unknown_fields_;
113 static const ::google::protobuf::Descriptor* descriptor();
121 void CopyFrom(const ::google::protobuf::Message& from);
122 void MergeFrom(const ::google::protobuf::Message& from);
126 bool IsInitialized()
const;
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_; }
138 void SetCachedSize(
int size)
const;
140 ::google::protobuf::Metadata GetMetadata()
const;
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);
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);
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);
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);
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);
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);
193 enum DCCLParameters { DCCL_ID = 7, DCCL_MAX_BYTES = 64 };
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();
209 ::google::protobuf::UnknownFieldSet _unknown_fields_;
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();
223 void InitAsDefaultInstance();
240 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
241 return _unknown_fields_;
244 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
245 return &_unknown_fields_;
248 static const ::google::protobuf::Descriptor* descriptor();
256 void CopyFrom(const ::google::protobuf::Message& from);
257 void MergeFrom(const ::google::protobuf::Message& from);
261 bool IsInitialized()
const;
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_; }
273 void SetCachedSize(
int size)
const;
275 ::google::protobuf::Metadata GetMetadata()
const;
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);
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();
295 static inline const ::std::string& PushPull_Name(PushPull value) {
296 return TransferRequest_PushPull_Name(value);
298 static inline bool PushPull_Parse(const ::std::string& name,
300 return TransferRequest_PushPull_Parse(name, value);
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);
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);
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);
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);
338 enum DCCLParameters { DCCL_ID = 8, DCCL_MAX_BYTES = 64 };
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();
350 ::google::protobuf::UnknownFieldSet _unknown_fields_;
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_;
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();
362 void InitAsDefaultInstance();
379 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
380 return _unknown_fields_;
383 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
384 return &_unknown_fields_;
387 static const ::google::protobuf::Descriptor* descriptor();
395 void CopyFrom(const ::google::protobuf::Message& from);
396 void MergeFrom(const ::google::protobuf::Message& from);
400 bool IsInitialized()
const;
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_; }
412 void SetCachedSize(
int size)
const;
414 ::google::protobuf::Metadata GetMetadata()
const;
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);
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();
438 static inline const ::std::string& ErrorCode_Name(ErrorCode value) {
439 return TransferResponse_ErrorCode_Name(value);
441 static inline bool ErrorCode_Parse(const ::std::string& name,
443 return TransferResponse_ErrorCode_Parse(name, value);
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);
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);
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);
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);
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);
483 enum DCCLParameters { DCCL_ID = 9, DCCL_MAX_BYTES = 64 };
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();
497 ::google::protobuf::UnknownFieldSet _unknown_fields_;
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_;
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();
510 void InitAsDefaultInstance();
521 inline bool FileFragment::has_src()
const {
522 return (_has_bits_[0] & 0x00000001u) != 0;
524 inline void FileFragment::set_has_src() {
525 _has_bits_[0] |= 0x00000001u;
527 inline void FileFragment::clear_has_src() {
528 _has_bits_[0] &= ~0x00000001u;
530 inline void FileFragment::clear_src() {
534 inline ::google::protobuf::int32 FileFragment::src()
const {
538 inline void FileFragment::set_src(::google::protobuf::int32 value) {
545 inline bool FileFragment::has_dest()
const {
546 return (_has_bits_[0] & 0x00000002u) != 0;
548 inline void FileFragment::set_has_dest() {
549 _has_bits_[0] |= 0x00000002u;
551 inline void FileFragment::clear_has_dest() {
552 _has_bits_[0] &= ~0x00000002u;
554 inline void FileFragment::clear_dest() {
558 inline ::google::protobuf::int32 FileFragment::dest()
const {
562 inline void FileFragment::set_dest(::google::protobuf::int32 value) {
569 inline bool FileFragment::has_fragment()
const {
570 return (_has_bits_[0] & 0x00000004u) != 0;
572 inline void FileFragment::set_has_fragment() {
573 _has_bits_[0] |= 0x00000004u;
575 inline void FileFragment::clear_has_fragment() {
576 _has_bits_[0] &= ~0x00000004u;
578 inline void FileFragment::clear_fragment() {
580 clear_has_fragment();
582 inline ::google::protobuf::int32 FileFragment::fragment()
const {
586 inline void FileFragment::set_fragment(::google::protobuf::int32 value) {
593 inline bool FileFragment::has_is_last_fragment()
const {
594 return (_has_bits_[0] & 0x00000008u) != 0;
596 inline void FileFragment::set_has_is_last_fragment() {
597 _has_bits_[0] |= 0x00000008u;
599 inline void FileFragment::clear_has_is_last_fragment() {
600 _has_bits_[0] &= ~0x00000008u;
602 inline void FileFragment::clear_is_last_fragment() {
603 is_last_fragment_ =
false;
604 clear_has_is_last_fragment();
606 inline bool FileFragment::is_last_fragment()
const {
608 return is_last_fragment_;
610 inline void FileFragment::set_is_last_fragment(
bool value) {
611 set_has_is_last_fragment();
612 is_last_fragment_ = value;
617 inline bool FileFragment::has_num_bytes()
const {
618 return (_has_bits_[0] & 0x00000010u) != 0;
620 inline void FileFragment::set_has_num_bytes() {
621 _has_bits_[0] |= 0x00000010u;
623 inline void FileFragment::clear_has_num_bytes() {
624 _has_bits_[0] &= ~0x00000010u;
626 inline void FileFragment::clear_num_bytes() {
628 clear_has_num_bytes();
630 inline ::google::protobuf::int32 FileFragment::num_bytes()
const {
634 inline void FileFragment::set_num_bytes(::google::protobuf::int32 value) {
641 inline bool FileFragment::has_data()
const {
642 return (_has_bits_[0] & 0x00000020u) != 0;
644 inline void FileFragment::set_has_data() {
645 _has_bits_[0] |= 0x00000020u;
647 inline void FileFragment::clear_has_data() {
648 _has_bits_[0] &= ~0x00000020u;
650 inline void FileFragment::clear_data() {
651 if (data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
656 inline const ::std::string& FileFragment::data()
const {
660 inline void FileFragment::set_data(const ::std::string& value) {
662 if (data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
663 data_ = new ::std::string;
665 data_->assign(value);
668 inline void FileFragment::set_data(
const char* value) {
670 if (data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
671 data_ = new ::std::string;
673 data_->assign(value);
676 inline void FileFragment::set_data(
const void* value,
size_t size) {
678 if (data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
679 data_ = new ::std::string;
681 data_->assign(reinterpret_cast<const char*>(value), size);
684 inline ::std::string* FileFragment::mutable_data() {
686 if (data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
687 data_ = new ::std::string;
692 inline ::std::string* FileFragment::release_data() {
694 if (data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
697 ::std::string* temp = data_;
698 data_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
702 inline void FileFragment::set_allocated_data(::std::string* data) {
703 if (data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
711 data_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
721 inline bool TransferRequest::has_src()
const {
722 return (_has_bits_[0] & 0x00000001u) != 0;
724 inline void TransferRequest::set_has_src() {
725 _has_bits_[0] |= 0x00000001u;
727 inline void TransferRequest::clear_has_src() {
728 _has_bits_[0] &= ~0x00000001u;
730 inline void TransferRequest::clear_src() {
734 inline ::google::protobuf::int32 TransferRequest::src()
const {
738 inline void TransferRequest::set_src(::google::protobuf::int32 value) {
745 inline bool TransferRequest::has_dest()
const {
746 return (_has_bits_[0] & 0x00000002u) != 0;
748 inline void TransferRequest::set_has_dest() {
749 _has_bits_[0] |= 0x00000002u;
751 inline void TransferRequest::clear_has_dest() {
752 _has_bits_[0] &= ~0x00000002u;
754 inline void TransferRequest::clear_dest() {
758 inline ::google::protobuf::int32 TransferRequest::dest()
const {
762 inline void TransferRequest::set_dest(::google::protobuf::int32 value) {
769 inline bool TransferRequest::has_push_or_pull()
const {
770 return (_has_bits_[0] & 0x00000004u) != 0;
772 inline void TransferRequest::set_has_push_or_pull() {
773 _has_bits_[0] |= 0x00000004u;
775 inline void TransferRequest::clear_has_push_or_pull() {
776 _has_bits_[0] &= ~0x00000004u;
778 inline void TransferRequest::clear_push_or_pull() {
780 clear_has_push_or_pull();
782 inline ::goby::acomms::protobuf::TransferRequest_PushPull TransferRequest::push_or_pull()
const {
784 return static_cast< ::goby::acomms::protobuf::TransferRequest_PushPull
>(push_or_pull_);
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;
794 inline bool TransferRequest::has_file()
const {
795 return (_has_bits_[0] & 0x00000008u) != 0;
797 inline void TransferRequest::set_has_file() {
798 _has_bits_[0] |= 0x00000008u;
800 inline void TransferRequest::clear_has_file() {
801 _has_bits_[0] &= ~0x00000008u;
803 inline void TransferRequest::clear_file() {
804 if (file_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
809 inline const ::std::string& TransferRequest::file()
const {
813 inline void TransferRequest::set_file(const ::std::string& value) {
815 if (file_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
816 file_ = new ::std::string;
818 file_->assign(value);
821 inline void TransferRequest::set_file(
const char* value) {
823 if (file_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
824 file_ = new ::std::string;
826 file_->assign(value);
829 inline void TransferRequest::set_file(
const char* value,
size_t size) {
831 if (file_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
832 file_ = new ::std::string;
834 file_->assign(reinterpret_cast<const char*>(value), size);
837 inline ::std::string* TransferRequest::mutable_file() {
839 if (file_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
840 file_ = new ::std::string;
845 inline ::std::string* TransferRequest::release_file() {
847 if (file_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
850 ::std::string* temp = file_;
851 file_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
855 inline void TransferRequest::set_allocated_file(::std::string* file) {
856 if (file_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
864 file_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
874 inline bool TransferResponse::has_src()
const {
875 return (_has_bits_[0] & 0x00000001u) != 0;
877 inline void TransferResponse::set_has_src() {
878 _has_bits_[0] |= 0x00000001u;
880 inline void TransferResponse::clear_has_src() {
881 _has_bits_[0] &= ~0x00000001u;
883 inline void TransferResponse::clear_src() {
887 inline ::google::protobuf::int32 TransferResponse::src()
const {
891 inline void TransferResponse::set_src(::google::protobuf::int32 value) {
898 inline bool TransferResponse::has_dest()
const {
899 return (_has_bits_[0] & 0x00000002u) != 0;
901 inline void TransferResponse::set_has_dest() {
902 _has_bits_[0] |= 0x00000002u;
904 inline void TransferResponse::clear_has_dest() {
905 _has_bits_[0] &= ~0x00000002u;
907 inline void TransferResponse::clear_dest() {
911 inline ::google::protobuf::int32 TransferResponse::dest()
const {
915 inline void TransferResponse::set_dest(::google::protobuf::int32 value) {
922 inline bool TransferResponse::has_transfer_successful()
const {
923 return (_has_bits_[0] & 0x00000004u) != 0;
925 inline void TransferResponse::set_has_transfer_successful() {
926 _has_bits_[0] |= 0x00000004u;
928 inline void TransferResponse::clear_has_transfer_successful() {
929 _has_bits_[0] &= ~0x00000004u;
931 inline void TransferResponse::clear_transfer_successful() {
932 transfer_successful_ =
false;
933 clear_has_transfer_successful();
935 inline bool TransferResponse::transfer_successful()
const {
937 return transfer_successful_;
939 inline void TransferResponse::set_transfer_successful(
bool value) {
940 set_has_transfer_successful();
941 transfer_successful_ = value;
946 inline bool TransferResponse::has_error()
const {
947 return (_has_bits_[0] & 0x00000008u) != 0;
949 inline void TransferResponse::set_has_error() {
950 _has_bits_[0] |= 0x00000008u;
952 inline void TransferResponse::clear_has_error() {
953 _has_bits_[0] &= ~0x00000008u;
955 inline void TransferResponse::clear_error() {
959 inline ::goby::acomms::protobuf::TransferResponse_ErrorCode TransferResponse::error()
const {
961 return static_cast< ::goby::acomms::protobuf::TransferResponse_ErrorCode
>(error_);
963 inline void TransferResponse::set_error(::goby::acomms::protobuf::TransferResponse_ErrorCode value) {
964 assert(::goby::acomms::protobuf::TransferResponse_ErrorCode_IsValid(value));
971 inline bool TransferResponse::has_num_fragments()
const {
972 return (_has_bits_[0] & 0x00000010u) != 0;
974 inline void TransferResponse::set_has_num_fragments() {
975 _has_bits_[0] |= 0x00000010u;
977 inline void TransferResponse::clear_has_num_fragments() {
978 _has_bits_[0] &= ~0x00000010u;
980 inline void TransferResponse::clear_num_fragments() {
982 clear_has_num_fragments();
984 inline ::google::protobuf::int32 TransferResponse::num_fragments()
const {
986 return num_fragments_;
988 inline void TransferResponse::set_num_fragments(::google::protobuf::int32 value) {
989 set_has_num_fragments();
990 num_fragments_ = value;
1003 namespace protobuf {
1005 template <>
struct is_proto_enum< ::goby::acomms::protobuf::TransferRequest_PushPull> : ::google::protobuf::internal::true_type {};
1007 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::TransferRequest_PushPull>() {
1008 return ::goby::acomms::protobuf::TransferRequest_PushPull_descriptor();
1010 template <>
struct is_proto_enum< ::goby::acomms::protobuf::TransferResponse_ErrorCode> : ::google::protobuf::internal::true_type {};
1012 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::TransferResponse_ErrorCode>() {
1013 return ::goby::acomms::protobuf::TransferResponse_ErrorCode_descriptor();
1022 #endif // PROTOBUF_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto__INCLUDED
The global namespace for the Goby project.