4 #ifndef PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto
5 #define PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
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 3006001 < 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/io/coded_stream.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
30 #include <google/protobuf/repeated_field.h>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
35 #include "dccl/option_extensions.pb.h"
36 #include <boost/units/quantity.hpp>
37 #include <boost/units/absolute.hpp>
38 #include <boost/units/dimensionless_type.hpp>
39 #include <boost/units/make_scaled_unit.hpp>
41 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto
46 static const ::google::protobuf::internal::ParseTableField
entries[];
47 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
48 static const ::google::protobuf::internal::ParseTable
schema[3];
59 class FileFragmentDefaultTypeInternal;
61 class TransferRequest;
62 class TransferRequestDefaultTypeInternal;
64 class TransferResponse;
65 class TransferResponseDefaultTypeInternal;
92 return ::google::protobuf::internal::NameOfEnum(
97 return ::google::protobuf::internal::ParseNamedEnum<TransferRequest_PushPull>(
115 return ::google::protobuf::internal::NameOfEnum(
120 return ::google::protobuf::internal::ParseNamedEnum<TransferResponse_ErrorCode>(
139 *
this = ::std::move(from);
143 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
144 if (
this != &from) InternalSwap(&from);
152 return _internal_metadata_.unknown_fields();
155 return _internal_metadata_.mutable_unknown_fields();
158 static const ::google::protobuf::Descriptor*
descriptor();
177 return CreateMaybeMessage<FileFragment>(NULL);
181 return CreateMaybeMessage<FileFragment>(arena);
183 void CopyFrom(const ::google::protobuf::Message& from)
final;
184 void MergeFrom(const ::google::protobuf::Message& from)
final;
192 ::
google::protobuf::io::CodedInputStream* input) final;
194 ::
google::protobuf::io::CodedOutputStream* output) const final;
196 bool deterministic, ::
google::protobuf::uint8* target) const final;
202 void SetCachedSize(
int size)
const final;
205 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
208 inline void* MaybeArenaPtr()
const {
223 const ::std::
string&
data() const;
224 void set_data(const ::std::
string& value);
226 void set_data(::std::string&& value);
229 void set_data(
const void* value,
size_t size);
273 void clear_has_src();
275 void clear_has_dest();
276 void set_has_fragment();
277 void clear_has_fragment();
278 void set_has_is_last_fragment();
279 void clear_has_is_last_fragment();
280 void set_has_num_bytes();
281 void clear_has_num_bytes();
283 void clear_has_data();
286 size_t RequiredFieldsByteSizeFallback()
const;
288 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
289 ::google::protobuf::internal::HasBits<1> _has_bits_;
290 mutable ::google::protobuf::internal::CachedSize _cached_size_;
291 ::google::protobuf::internal::ArenaStringPtr data_;
295 bool is_last_fragment_;
297 friend struct ::protobuf_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto::TableStruct;
315 *
this = ::std::move(from);
319 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
320 if (
this != &from) InternalSwap(&from);
328 return _internal_metadata_.unknown_fields();
331 return _internal_metadata_.mutable_unknown_fields();
334 static const ::google::protobuf::Descriptor*
descriptor();
353 return CreateMaybeMessage<TransferRequest>(NULL);
357 return CreateMaybeMessage<TransferRequest>(arena);
359 void CopyFrom(const ::google::protobuf::Message& from)
final;
360 void MergeFrom(const ::google::protobuf::Message& from)
final;
368 ::
google::protobuf::io::CodedInputStream* input) final;
370 ::
google::protobuf::io::CodedOutputStream* output) const final;
372 bool deterministic, ::
google::protobuf::uint8* target) const final;
378 void SetCachedSize(
int size)
const final;
381 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
384 inline void* MaybeArenaPtr()
const {
407 static inline const ::google::protobuf::EnumDescriptor*
425 const ::std::string&
file()
const;
426 void set_file(const ::std::string& value);
428 void set_file(::std::string&& value);
431 void set_file(
const char* value,
size_t size);
461 void clear_has_src();
463 void clear_has_dest();
464 void set_has_push_or_pull();
465 void clear_has_push_or_pull();
467 void clear_has_file();
470 size_t RequiredFieldsByteSizeFallback()
const;
472 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
473 ::google::protobuf::internal::HasBits<1> _has_bits_;
474 mutable ::google::protobuf::internal::CachedSize _cached_size_;
475 ::google::protobuf::internal::ArenaStringPtr file_;
479 friend struct ::protobuf_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto::TableStruct;
497 *
this = ::std::move(from);
501 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
502 if (
this != &from) InternalSwap(&from);
510 return _internal_metadata_.unknown_fields();
513 return _internal_metadata_.mutable_unknown_fields();
516 static const ::google::protobuf::Descriptor*
descriptor();
535 return CreateMaybeMessage<TransferResponse>(NULL);
539 return CreateMaybeMessage<TransferResponse>(arena);
541 void CopyFrom(const ::google::protobuf::Message& from)
final;
542 void MergeFrom(const ::google::protobuf::Message& from)
final;
550 ::
google::protobuf::io::CodedInputStream* input) final;
552 ::
google::protobuf::io::CodedOutputStream* output) const final;
554 bool deterministic, ::
google::protobuf::uint8* target) const final;
560 void SetCachedSize(
int size)
const final;
563 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
566 inline void* MaybeArenaPtr()
const {
597 static inline const ::google::protobuf::EnumDescriptor*
650 void clear_has_src();
652 void clear_has_dest();
653 void set_has_transfer_successful();
654 void clear_has_transfer_successful();
655 void set_has_error();
656 void clear_has_error();
657 void set_has_num_fragments();
658 void clear_has_num_fragments();
661 size_t RequiredFieldsByteSizeFallback()
const;
663 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
664 ::google::protobuf::internal::HasBits<1> _has_bits_;
665 mutable ::google::protobuf::internal::CachedSize _cached_size_;
668 bool transfer_successful_;
671 friend struct ::protobuf_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto::TableStruct;
679 #pragma GCC diagnostic push
680 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
686 return (_has_bits_[0] & 0x00000002u) != 0;
688 inline void FileFragment::set_has_src() {
689 _has_bits_[0] |= 0x00000002u;
691 inline void FileFragment::clear_has_src() {
692 _has_bits_[0] &= ~0x00000002u;
710 return (_has_bits_[0] & 0x00000004u) != 0;
712 inline void FileFragment::set_has_dest() {
713 _has_bits_[0] |= 0x00000004u;
715 inline void FileFragment::clear_has_dest() {
716 _has_bits_[0] &= ~0x00000004u;
734 return (_has_bits_[0] & 0x00000008u) != 0;
736 inline void FileFragment::set_has_fragment() {
737 _has_bits_[0] |= 0x00000008u;
739 inline void FileFragment::clear_has_fragment() {
740 _has_bits_[0] &= ~0x00000008u;
744 clear_has_fragment();
758 return (_has_bits_[0] & 0x00000010u) != 0;
760 inline void FileFragment::set_has_is_last_fragment() {
761 _has_bits_[0] |= 0x00000010u;
763 inline void FileFragment::clear_has_is_last_fragment() {
764 _has_bits_[0] &= ~0x00000010u;
767 is_last_fragment_ =
false;
768 clear_has_is_last_fragment();
772 return is_last_fragment_;
775 set_has_is_last_fragment();
776 is_last_fragment_ = value;
782 return (_has_bits_[0] & 0x00000020u) != 0;
784 inline void FileFragment::set_has_num_bytes() {
785 _has_bits_[0] |= 0x00000020u;
787 inline void FileFragment::clear_has_num_bytes() {
788 _has_bits_[0] &= ~0x00000020u;
792 clear_has_num_bytes();
806 return (_has_bits_[0] & 0x00000001u) != 0;
808 inline void FileFragment::set_has_data() {
809 _has_bits_[0] |= 0x00000001u;
811 inline void FileFragment::clear_has_data() {
812 _has_bits_[0] &= ~0x00000001u;
820 return data_.GetNoArena();
836 GOOGLE_DCHECK(value != NULL);
844 ::std::string(
reinterpret_cast<const char*
>(value), size));
876 return (_has_bits_[0] & 0x00000002u) != 0;
878 inline void TransferRequest::set_has_src() {
879 _has_bits_[0] |= 0x00000002u;
881 inline void TransferRequest::clear_has_src() {
882 _has_bits_[0] &= ~0x00000002u;
900 return (_has_bits_[0] & 0x00000004u) != 0;
902 inline void TransferRequest::set_has_dest() {
903 _has_bits_[0] |= 0x00000004u;
905 inline void TransferRequest::clear_has_dest() {
906 _has_bits_[0] &= ~0x00000004u;
924 return (_has_bits_[0] & 0x00000008u) != 0;
926 inline void TransferRequest::set_has_push_or_pull() {
927 _has_bits_[0] |= 0x00000008u;
929 inline void TransferRequest::clear_has_push_or_pull() {
930 _has_bits_[0] &= ~0x00000008u;
934 clear_has_push_or_pull();
942 set_has_push_or_pull();
943 push_or_pull_ = value;
949 return (_has_bits_[0] & 0x00000001u) != 0;
951 inline void TransferRequest::set_has_file() {
952 _has_bits_[0] |= 0x00000001u;
954 inline void TransferRequest::clear_has_file() {
955 _has_bits_[0] &= ~0x00000001u;
963 return file_.GetNoArena();
979 GOOGLE_DCHECK(value != NULL);
987 ::std::string(
reinterpret_cast<const char*
>(value), size));
1019 return (_has_bits_[0] & 0x00000001u) != 0;
1021 inline void TransferResponse::set_has_src() {
1022 _has_bits_[0] |= 0x00000001u;
1024 inline void TransferResponse::clear_has_src() {
1025 _has_bits_[0] &= ~0x00000001u;
1043 return (_has_bits_[0] & 0x00000002u) != 0;
1045 inline void TransferResponse::set_has_dest() {
1046 _has_bits_[0] |= 0x00000002u;
1048 inline void TransferResponse::clear_has_dest() {
1049 _has_bits_[0] &= ~0x00000002u;
1067 return (_has_bits_[0] & 0x00000004u) != 0;
1069 inline void TransferResponse::set_has_transfer_successful() {
1070 _has_bits_[0] |= 0x00000004u;
1072 inline void TransferResponse::clear_has_transfer_successful() {
1073 _has_bits_[0] &= ~0x00000004u;
1076 transfer_successful_ =
false;
1077 clear_has_transfer_successful();
1081 return transfer_successful_;
1084 set_has_transfer_successful();
1085 transfer_successful_ = value;
1091 return (_has_bits_[0] & 0x00000010u) != 0;
1093 inline void TransferResponse::set_has_error() {
1094 _has_bits_[0] |= 0x00000010u;
1096 inline void TransferResponse::clear_has_error() {
1097 _has_bits_[0] &= ~0x00000010u;
1116 return (_has_bits_[0] & 0x00000008u) != 0;
1118 inline void TransferResponse::set_has_num_fragments() {
1119 _has_bits_[0] |= 0x00000008u;
1121 inline void TransferResponse::clear_has_num_fragments() {
1122 _has_bits_[0] &= ~0x00000008u;
1126 clear_has_num_fragments();
1130 return num_fragments_;
1133 set_has_num_fragments();
1134 num_fragments_ = value;
1139 #pragma GCC diagnostic pop
1153 namespace protobuf {
1157 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::TransferRequest_PushPull>() {
1162 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::TransferResponse_ErrorCode>() {
1171 #endif // PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto