4 #ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3012000
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 3012004 < 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/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/inlined_string_field.h>
29 #include <google/protobuf/metadata_lite.h>
30 #include <google/protobuf/generated_message_reflection.h>
32 #include <google/protobuf/repeated_field.h>
33 #include <google/protobuf/extension_set.h>
34 #include <google/protobuf/generated_enum_reflection.h>
35 #include <google/protobuf/unknown_field_set.h>
37 #include "dccl/option_extensions.pb.h"
38 #include <boost/units/quantity.hpp>
39 #include <boost/units/absolute.hpp>
40 #include <boost/units/dimensionless_type.hpp>
41 #include <boost/units/make_scaled_unit.hpp>
43 #include <google/protobuf/port_def.inc>
44 #define PROTOBUF_INTERNAL_EXPORT_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto
45 PROTOBUF_NAMESPACE_OPEN
49 PROTOBUF_NAMESPACE_CLOSE
53 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
55 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
57 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3]
59 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata
field_metadata[];
68 class FileFragmentDefaultTypeInternal;
70 class TransferRequest;
71 class TransferRequestDefaultTypeInternal;
73 class TransferResponse;
74 class TransferResponseDefaultTypeInternal;
79 PROTOBUF_NAMESPACE_OPEN
80 template<> ::goby::acomms::protobuf::FileFragment* Arena::CreateMaybeMessage<::goby::acomms::protobuf::FileFragment>(Arena*);
81 template<> ::goby::acomms::protobuf::TransferRequest* Arena::CreateMaybeMessage<::goby::acomms::protobuf::TransferRequest>(Arena*);
82 template<> ::goby::acomms::protobuf::TransferResponse* Arena::CreateMaybeMessage<::goby::acomms::protobuf::TransferResponse>(Arena*);
83 PROTOBUF_NAMESPACE_CLOSE
100 static_assert(::std::is_same<T, TransferRequest_PushPull>::value ||
101 ::std::is_integral<T>::value,
102 "Incorrect type passed to function TransferRequest_PushPull_Name.");
103 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
108 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<TransferRequest_PushPull>(
127 static_assert(::std::is_same<T, TransferResponse_ErrorCode>::value ||
128 ::std::is_integral<T>::value,
129 "Incorrect type passed to function TransferResponse_ErrorCode_Name.");
130 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
135 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<TransferResponse_ErrorCode>(
141 public ::PROTOBUF_NAMESPACE_ID::Message {
149 *
this = ::std::move(from);
152 inline FileFragment&
operator=(
const FileFragment& from) {
156 inline FileFragment&
operator=(FileFragment&& from) noexcept {
157 if (GetArena() == from.GetArena()) {
158 if (
this != &from) InternalSwap(&from);
166 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
169 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
172 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
173 return GetDescriptor();
176 return GetMetadataStatic().descriptor;
179 return GetMetadataStatic().reflection;
185 return reinterpret_cast<const FileFragment*
>(
188 static constexpr
int kIndexInFileMessages =
191 friend void swap(FileFragment& a, FileFragment& b) {
194 inline void Swap(FileFragment* other) {
195 if (other ==
this)
return;
196 if (GetArena() == other->GetArena()) {
199 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
203 if (other ==
this)
return;
204 GOOGLE_DCHECK(GetArena() == other->GetArena());
210 inline FileFragment*
New() const final {
211 return CreateMaybeMessage<FileFragment>(
nullptr);
214 FileFragment*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
215 return CreateMaybeMessage<FileFragment>(arena);
217 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
218 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
221 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
222 bool IsInitialized() const final;
225 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
226 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
227 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
228 int GetCachedSize() const final {
return _cached_size_.Get(); }
231 inline void SharedCtor();
232 inline void SharedDtor();
233 void SetCachedSize(
int size)
const final;
234 void InternalSwap(FileFragment* other);
235 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
236 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
237 return "goby.acomms.protobuf.FileFragment";
242 static void ArenaDtor(
void*
object);
243 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
248 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
260 kDataFieldNumber = 6,
262 kDestFieldNumber = 2,
263 kFragmentFieldNumber = 3,
264 kIsLastFragmentFieldNumber = 4,
265 kNumBytesFieldNumber = 5,
270 bool _internal_has_data()
const;
273 const std::string&
data()
const;
281 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(
"The unsafe_arena_ accessors for"
282 " string fields are deprecated and will be removed in a"
284 std::
string* unsafe_arena_release_data();
285 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
286 "
string fields are deprecated and will be removed in a"
288 void unsafe_arena_set_allocated_data(
291 const std::
string& _internal_data() const;
292 void _internal_set_data(const std::
string& value);
293 std::
string* _internal_mutable_data();
297 bool has_src() const;
299 bool _internal_has_src() const;
302 ::PROTOBUF_NAMESPACE_ID::
int32 src() const;
303 void set_src(::PROTOBUF_NAMESPACE_ID::
int32 value);
305 ::PROTOBUF_NAMESPACE_ID::
int32 _internal_src() const;
306 void _internal_set_src(::PROTOBUF_NAMESPACE_ID::
int32 value);
310 bool has_dest() const;
312 bool _internal_has_dest() const;
315 ::PROTOBUF_NAMESPACE_ID::
int32 dest() const;
316 void set_dest(::PROTOBUF_NAMESPACE_ID::
int32 value);
318 ::PROTOBUF_NAMESPACE_ID::
int32 _internal_dest() const;
319 void _internal_set_dest(::PROTOBUF_NAMESPACE_ID::
int32 value);
323 bool has_fragment() const;
325 bool _internal_has_fragment() const;
327 void clear_fragment();
328 ::PROTOBUF_NAMESPACE_ID::
int32 fragment() const;
329 void set_fragment(::PROTOBUF_NAMESPACE_ID::
int32 value);
331 ::PROTOBUF_NAMESPACE_ID::
int32 _internal_fragment() const;
332 void _internal_set_fragment(::PROTOBUF_NAMESPACE_ID::
int32 value);
336 bool has_is_last_fragment() const;
338 bool _internal_has_is_last_fragment() const;
340 void clear_is_last_fragment();
341 bool is_last_fragment() const;
342 void set_is_last_fragment(
bool value);
344 bool _internal_is_last_fragment() const;
345 void _internal_set_is_last_fragment(
bool value);
349 bool has_num_bytes() const;
351 bool _internal_has_num_bytes() const;
353 void clear_num_bytes();
354 ::PROTOBUF_NAMESPACE_ID::
int32 num_bytes() const;
355 void set_num_bytes(::PROTOBUF_NAMESPACE_ID::
int32 value);
357 ::PROTOBUF_NAMESPACE_ID::
int32 _internal_num_bytes() const;
358 void _internal_set_num_bytes(::PROTOBUF_NAMESPACE_ID::
int32 value);
367 size_t RequiredFieldsByteSizeFallback()
const;
369 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
370 typedef void InternalArenaConstructable_;
371 typedef void DestructorSkippable_;
372 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
373 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
374 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_;
378 bool is_last_fragment_;
380 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto;
385 public ::PROTOBUF_NAMESPACE_ID::Message {
392 : TransferRequest() {
393 *
this = ::std::move(from);
396 inline TransferRequest&
operator=(
const TransferRequest& from) {
400 inline TransferRequest&
operator=(TransferRequest&& from) noexcept {
401 if (GetArena() == from.GetArena()) {
402 if (
this != &from) InternalSwap(&from);
410 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
413 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
416 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
417 return GetDescriptor();
420 return GetMetadataStatic().descriptor;
423 return GetMetadataStatic().reflection;
429 return reinterpret_cast<const TransferRequest*
>(
432 static constexpr
int kIndexInFileMessages =
435 friend void swap(TransferRequest& a, TransferRequest& b) {
438 inline void Swap(TransferRequest* other) {
439 if (other ==
this)
return;
440 if (GetArena() == other->GetArena()) {
443 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
447 if (other ==
this)
return;
448 GOOGLE_DCHECK(GetArena() == other->GetArena());
454 inline TransferRequest*
New() const final {
455 return CreateMaybeMessage<TransferRequest>(
nullptr);
458 TransferRequest*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
459 return CreateMaybeMessage<TransferRequest>(arena);
461 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
462 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
465 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
466 bool IsInitialized() const final;
469 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
470 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
471 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
472 int GetCachedSize() const final {
return _cached_size_.Get(); }
475 inline void SharedCtor();
476 inline void SharedDtor();
477 void SetCachedSize(
int size)
const final;
478 void InternalSwap(TransferRequest* other);
479 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
480 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
481 return "goby.acomms.protobuf.TransferRequest";
486 static void ArenaDtor(
void*
object);
487 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
492 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
513 static constexpr
int PushPull_ARRAYSIZE =
515 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
521 static_assert(::std::is_same<T, PushPull>::value ||
522 ::std::is_integral<T>::value,
523 "Incorrect type passed to function PushPull_Name.");
534 kFileFieldNumber = 10,
536 kDestFieldNumber = 2,
537 kPushOrPullFieldNumber = 3,
542 bool _internal_has_file()
const;
545 const std::string&
file()
const;
553 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(
"The unsafe_arena_ accessors for"
554 " string fields are deprecated and will be removed in a"
556 std::
string* unsafe_arena_release_file();
557 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
558 "
string fields are deprecated and will be removed in a"
560 void unsafe_arena_set_allocated_file(
563 const std::
string& _internal_file() const;
564 void _internal_set_file(const std::
string& value);
565 std::
string* _internal_mutable_file();
569 bool has_src() const;
571 bool _internal_has_src() const;
574 ::PROTOBUF_NAMESPACE_ID::
int32 src() const;
575 void set_src(::PROTOBUF_NAMESPACE_ID::
int32 value);
577 ::PROTOBUF_NAMESPACE_ID::
int32 _internal_src() const;
578 void _internal_set_src(::PROTOBUF_NAMESPACE_ID::
int32 value);
582 bool has_dest() const;
584 bool _internal_has_dest() const;
587 ::PROTOBUF_NAMESPACE_ID::
int32 dest() const;
588 void set_dest(::PROTOBUF_NAMESPACE_ID::
int32 value);
590 ::PROTOBUF_NAMESPACE_ID::
int32 _internal_dest() const;
591 void _internal_set_dest(::PROTOBUF_NAMESPACE_ID::
int32 value);
595 bool has_push_or_pull() const;
597 bool _internal_has_push_or_pull() const;
599 void clear_push_or_pull();
613 size_t RequiredFieldsByteSizeFallback()
const;
615 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
616 typedef void InternalArenaConstructable_;
617 typedef void DestructorSkippable_;
618 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
619 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
620 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_;
624 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto;
629 public ::PROTOBUF_NAMESPACE_ID::Message {
636 : TransferResponse() {
637 *
this = ::std::move(from);
640 inline TransferResponse&
operator=(
const TransferResponse& from) {
644 inline TransferResponse&
operator=(TransferResponse&& from) noexcept {
645 if (GetArena() == from.GetArena()) {
646 if (
this != &from) InternalSwap(&from);
654 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
657 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
660 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
661 return GetDescriptor();
664 return GetMetadataStatic().descriptor;
667 return GetMetadataStatic().reflection;
673 return reinterpret_cast<const TransferResponse*
>(
676 static constexpr
int kIndexInFileMessages =
679 friend void swap(TransferResponse& a, TransferResponse& b) {
682 inline void Swap(TransferResponse* other) {
683 if (other ==
this)
return;
684 if (GetArena() == other->GetArena()) {
687 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
691 if (other ==
this)
return;
692 GOOGLE_DCHECK(GetArena() == other->GetArena());
698 inline TransferResponse*
New() const final {
699 return CreateMaybeMessage<TransferResponse>(
nullptr);
702 TransferResponse*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
703 return CreateMaybeMessage<TransferResponse>(arena);
705 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
706 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
709 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
710 bool IsInitialized() const final;
713 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
714 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
715 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
716 int GetCachedSize() const final {
return _cached_size_.Get(); }
719 inline void SharedCtor();
720 inline void SharedDtor();
721 void SetCachedSize(
int size)
const final;
722 void InternalSwap(TransferResponse* other);
723 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
724 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
725 return "goby.acomms.protobuf.TransferResponse";
730 static void ArenaDtor(
void*
object);
731 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
736 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
765 static constexpr
int ErrorCode_ARRAYSIZE =
767 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
773 static_assert(::std::is_same<T, ErrorCode>::value ||
774 ::std::is_integral<T>::value,
775 "Incorrect type passed to function ErrorCode_Name.");
787 kDestFieldNumber = 2,
788 kTransferSuccessfulFieldNumber = 3,
789 kNumFragmentsFieldNumber = 5,
790 kErrorFieldNumber = 4,
795 bool _internal_has_src()
const;
808 bool _internal_has_dest()
const;
821 bool _internal_has_transfer_successful()
const;
827 bool _internal_transfer_successful()
const;
828 void _internal_set_transfer_successful(
bool value);
834 bool _internal_has_num_fragments()
const;
847 bool _internal_has_error()
const;
863 size_t RequiredFieldsByteSizeFallback()
const;
865 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
866 typedef void InternalArenaConstructable_;
867 typedef void DestructorSkippable_;
868 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
869 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
872 bool transfer_successful_;
875 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto;
883 #pragma GCC diagnostic push
884 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
889 inline bool FileFragment::_internal_has_src()
const {
890 bool value = (_has_bits_[0] & 0x00000002u) != 0;
893 inline bool FileFragment::has_src()
const {
894 return _internal_has_src();
896 inline void FileFragment::clear_src() {
898 _has_bits_[0] &= ~0x00000002u;
905 return _internal_src();
908 _has_bits_[0] |= 0x00000002u;
912 _internal_set_src(value);
917 inline bool FileFragment::_internal_has_dest()
const {
918 bool value = (_has_bits_[0] & 0x00000004u) != 0;
921 inline bool FileFragment::has_dest()
const {
922 return _internal_has_dest();
924 inline void FileFragment::clear_dest() {
926 _has_bits_[0] &= ~0x00000004u;
933 return _internal_dest();
936 _has_bits_[0] |= 0x00000004u;
940 _internal_set_dest(value);
945 inline bool FileFragment::_internal_has_fragment()
const {
946 bool value = (_has_bits_[0] & 0x00000008u) != 0;
949 inline bool FileFragment::has_fragment()
const {
950 return _internal_has_fragment();
952 inline void FileFragment::clear_fragment() {
954 _has_bits_[0] &= ~0x00000008u;
961 return _internal_fragment();
964 _has_bits_[0] |= 0x00000008u;
968 _internal_set_fragment(value);
973 inline bool FileFragment::_internal_has_is_last_fragment()
const {
974 bool value = (_has_bits_[0] & 0x00000010u) != 0;
977 inline bool FileFragment::has_is_last_fragment()
const {
978 return _internal_has_is_last_fragment();
980 inline void FileFragment::clear_is_last_fragment() {
981 is_last_fragment_ =
false;
982 _has_bits_[0] &= ~0x00000010u;
984 inline bool FileFragment::_internal_is_last_fragment()
const {
985 return is_last_fragment_;
987 inline bool FileFragment::is_last_fragment()
const {
989 return _internal_is_last_fragment();
991 inline void FileFragment::_internal_set_is_last_fragment(
bool value) {
992 _has_bits_[0] |= 0x00000010u;
993 is_last_fragment_ =
value;
995 inline void FileFragment::set_is_last_fragment(
bool value) {
996 _internal_set_is_last_fragment(value);
1001 inline bool FileFragment::_internal_has_num_bytes()
const {
1002 bool value = (_has_bits_[0] & 0x00000020u) != 0;
1005 inline bool FileFragment::has_num_bytes()
const {
1006 return _internal_has_num_bytes();
1008 inline void FileFragment::clear_num_bytes() {
1010 _has_bits_[0] &= ~0x00000020u;
1017 return _internal_num_bytes();
1020 _has_bits_[0] |= 0x00000020u;
1024 _internal_set_num_bytes(value);
1029 inline bool FileFragment::_internal_has_data()
const {
1030 bool value = (_has_bits_[0] & 0x00000001u) != 0;
1033 inline bool FileFragment::has_data()
const {
1034 return _internal_has_data();
1036 inline void FileFragment::clear_data() {
1038 _has_bits_[0] &= ~0x00000001u;
1040 inline const std::string& FileFragment::data()
const {
1042 return _internal_data();
1044 inline void FileFragment::set_data(
const std::string& value) {
1045 _internal_set_data(value);
1048 inline std::string* FileFragment::mutable_data() {
1050 return _internal_mutable_data();
1052 inline const std::string& FileFragment::_internal_data()
const {
1055 inline void FileFragment::_internal_set_data(
const std::string& value) {
1056 _has_bits_[0] |= 0x00000001u;
1059 inline void FileFragment::set_data(std::string&& value) {
1060 _has_bits_[0] |= 0x00000001u;
1065 inline void FileFragment::set_data(
const char* value) {
1066 GOOGLE_DCHECK(value !=
nullptr);
1067 _has_bits_[0] |= 0x00000001u;
1072 inline void FileFragment::set_data(
const void* value,
1074 _has_bits_[0] |= 0x00000001u;
1076 reinterpret_cast<const char*
>(value), size), GetArena());
1079 inline std::string* FileFragment::_internal_mutable_data() {
1080 _has_bits_[0] |= 0x00000001u;
1083 inline std::string* FileFragment::release_data() {
1085 if (!_internal_has_data()) {
1088 _has_bits_[0] &= ~0x00000001u;
1091 inline void FileFragment::set_allocated_data(std::string* data) {
1092 if (data !=
nullptr) {
1093 _has_bits_[0] |= 0x00000001u;
1095 _has_bits_[0] &= ~0x00000001u;
1101 inline std::string* FileFragment::unsafe_arena_release_data() {
1103 GOOGLE_DCHECK(GetArena() !=
nullptr);
1104 _has_bits_[0] &= ~0x00000001u;
1108 inline void FileFragment::unsafe_arena_set_allocated_data(
1109 std::string* data) {
1110 GOOGLE_DCHECK(GetArena() !=
nullptr);
1111 if (data !=
nullptr) {
1112 _has_bits_[0] |= 0x00000001u;
1114 _has_bits_[0] &= ~0x00000001u;
1126 inline bool TransferRequest::_internal_has_src()
const {
1127 bool value = (_has_bits_[0] & 0x00000002u) != 0;
1130 inline bool TransferRequest::has_src()
const {
1131 return _internal_has_src();
1133 inline void TransferRequest::clear_src() {
1135 _has_bits_[0] &= ~0x00000002u;
1142 return _internal_src();
1145 _has_bits_[0] |= 0x00000002u;
1149 _internal_set_src(value);
1154 inline bool TransferRequest::_internal_has_dest()
const {
1155 bool value = (_has_bits_[0] & 0x00000004u) != 0;
1158 inline bool TransferRequest::has_dest()
const {
1159 return _internal_has_dest();
1161 inline void TransferRequest::clear_dest() {
1163 _has_bits_[0] &= ~0x00000004u;
1170 return _internal_dest();
1173 _has_bits_[0] |= 0x00000004u;
1177 _internal_set_dest(value);
1182 inline bool TransferRequest::_internal_has_push_or_pull()
const {
1183 bool value = (_has_bits_[0] & 0x00000008u) != 0;
1186 inline bool TransferRequest::has_push_or_pull()
const {
1187 return _internal_has_push_or_pull();
1189 inline void TransferRequest::clear_push_or_pull() {
1191 _has_bits_[0] &= ~0x00000008u;
1198 return _internal_push_or_pull();
1202 _has_bits_[0] |= 0x00000008u;
1203 push_or_pull_ =
value;
1206 _internal_set_push_or_pull(value);
1211 inline bool TransferRequest::_internal_has_file()
const {
1212 bool value = (_has_bits_[0] & 0x00000001u) != 0;
1215 inline bool TransferRequest::has_file()
const {
1216 return _internal_has_file();
1218 inline void TransferRequest::clear_file() {
1220 _has_bits_[0] &= ~0x00000001u;
1222 inline const std::string& TransferRequest::file()
const {
1224 return _internal_file();
1226 inline void TransferRequest::set_file(
const std::string& value) {
1227 _internal_set_file(value);
1230 inline std::string* TransferRequest::mutable_file() {
1232 return _internal_mutable_file();
1234 inline const std::string& TransferRequest::_internal_file()
const {
1237 inline void TransferRequest::_internal_set_file(
const std::string& value) {
1238 _has_bits_[0] |= 0x00000001u;
1241 inline void TransferRequest::set_file(std::string&& value) {
1242 _has_bits_[0] |= 0x00000001u;
1247 inline void TransferRequest::set_file(
const char* value) {
1248 GOOGLE_DCHECK(value !=
nullptr);
1249 _has_bits_[0] |= 0x00000001u;
1254 inline void TransferRequest::set_file(
const char* value,
1256 _has_bits_[0] |= 0x00000001u;
1258 reinterpret_cast<const char*
>(value), size), GetArena());
1261 inline std::string* TransferRequest::_internal_mutable_file() {
1262 _has_bits_[0] |= 0x00000001u;
1265 inline std::string* TransferRequest::release_file() {
1267 if (!_internal_has_file()) {
1270 _has_bits_[0] &= ~0x00000001u;
1273 inline void TransferRequest::set_allocated_file(std::string* file) {
1274 if (file !=
nullptr) {
1275 _has_bits_[0] |= 0x00000001u;
1277 _has_bits_[0] &= ~0x00000001u;
1283 inline std::string* TransferRequest::unsafe_arena_release_file() {
1285 GOOGLE_DCHECK(GetArena() !=
nullptr);
1286 _has_bits_[0] &= ~0x00000001u;
1290 inline void TransferRequest::unsafe_arena_set_allocated_file(
1291 std::string* file) {
1292 GOOGLE_DCHECK(GetArena() !=
nullptr);
1293 if (file !=
nullptr) {
1294 _has_bits_[0] |= 0x00000001u;
1296 _has_bits_[0] &= ~0x00000001u;
1308 inline bool TransferResponse::_internal_has_src()
const {
1309 bool value = (_has_bits_[0] & 0x00000001u) != 0;
1312 inline bool TransferResponse::has_src()
const {
1313 return _internal_has_src();
1315 inline void TransferResponse::clear_src() {
1317 _has_bits_[0] &= ~0x00000001u;
1324 return _internal_src();
1327 _has_bits_[0] |= 0x00000001u;
1331 _internal_set_src(value);
1336 inline bool TransferResponse::_internal_has_dest()
const {
1337 bool value = (_has_bits_[0] & 0x00000002u) != 0;
1340 inline bool TransferResponse::has_dest()
const {
1341 return _internal_has_dest();
1343 inline void TransferResponse::clear_dest() {
1345 _has_bits_[0] &= ~0x00000002u;
1352 return _internal_dest();
1355 _has_bits_[0] |= 0x00000002u;
1359 _internal_set_dest(value);
1364 inline bool TransferResponse::_internal_has_transfer_successful()
const {
1365 bool value = (_has_bits_[0] & 0x00000004u) != 0;
1368 inline bool TransferResponse::has_transfer_successful()
const {
1369 return _internal_has_transfer_successful();
1371 inline void TransferResponse::clear_transfer_successful() {
1372 transfer_successful_ =
false;
1373 _has_bits_[0] &= ~0x00000004u;
1375 inline bool TransferResponse::_internal_transfer_successful()
const {
1376 return transfer_successful_;
1378 inline bool TransferResponse::transfer_successful()
const {
1380 return _internal_transfer_successful();
1382 inline void TransferResponse::_internal_set_transfer_successful(
bool value) {
1383 _has_bits_[0] |= 0x00000004u;
1384 transfer_successful_ =
value;
1386 inline void TransferResponse::set_transfer_successful(
bool value) {
1387 _internal_set_transfer_successful(value);
1392 inline bool TransferResponse::_internal_has_error()
const {
1393 bool value = (_has_bits_[0] & 0x00000010u) != 0;
1396 inline bool TransferResponse::has_error()
const {
1397 return _internal_has_error();
1399 inline void TransferResponse::clear_error() {
1401 _has_bits_[0] &= ~0x00000010u;
1408 return _internal_error();
1412 _has_bits_[0] |= 0x00000010u;
1416 _internal_set_error(value);
1421 inline bool TransferResponse::_internal_has_num_fragments()
const {
1422 bool value = (_has_bits_[0] & 0x00000008u) != 0;
1425 inline bool TransferResponse::has_num_fragments()
const {
1426 return _internal_has_num_fragments();
1428 inline void TransferResponse::clear_num_fragments() {
1430 _has_bits_[0] &= ~0x00000008u;
1433 return num_fragments_;
1437 return _internal_num_fragments();
1440 _has_bits_[0] |= 0x00000008u;
1441 num_fragments_ =
value;
1444 _internal_set_num_fragments(value);
1449 #pragma GCC diagnostic pop
1462 PROTOBUF_NAMESPACE_OPEN
1466 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::TransferRequest_PushPull>() {
1471 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::TransferResponse_ErrorCode>() {
1475 PROTOBUF_NAMESPACE_CLOSE
1479 #include <google/protobuf/port_undef.inc>
std::string * release_file()
void MergeFrom(const FileFragment &from)
::PROTOBUF_NAMESPACE_ID::int32 dest() const
bool transfer_successful() const
TransferRequest & operator=(const TransferRequest &from)
void Swap(TransferResponse *other)
FileFragment & operator=(const FileFragment &from)
void set_error(::goby::acomms::protobuf::TransferResponse_ErrorCode value)
void UnsafeArenaSwap(TransferResponse *other)
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
bool has_num_fragments() const
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
TransferResponse_ErrorCode ErrorCode
static const TransferRequest * internal_default_instance()
void set_num_fragments(::PROTOBUF_NAMESPACE_ID::int32 value)
static const std::string & PushPull_Name(T enum_t_value)
void UnsafeArenaSwap(TransferRequest *other)
TransferResponse & operator=(TransferResponse &&from) noexcept
static bool ErrorCode_IsValid(int value)
friend void swap(TransferRequest &a, TransferRequest &b)
void set_file(const std::string &value)
TransferResponse(const TransferResponse &from)
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * PushPull_descriptor()
FileFragment(const FileFragment &from)
FileFragment & operator=(FileFragment &&from) noexcept
TransferResponse(::PROTOBUF_NAMESPACE_ID::Arena *arena)
FileFragment(FileFragment &&from) noexcept
bool has_transfer_successful() const
void clear_num_fragments()
static const TransferRequest & default_instance()
friend void swap(TransferResponse &a, TransferResponse &b)
FileFragment(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void set_allocated_data(std::string *data)
void set_dest(::PROTOBUF_NAMESPACE_ID::int32 value)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static void InitAsDefaultInstance()
void set_data(const void *value, size_t size)
TransferResponse * New() const final
std::string * mutable_data()
void set_file(std::string &&value)
TransferRequest(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void clear_transfer_successful()
std::string * mutable_file()
TransferRequest * New() const final
static const TransferResponse * internal_default_instance()
void set_allocated_file(std::string *file)
TransferRequest(const TransferRequest &from)
static const TransferResponse & default_instance()
void Swap(FileFragment *other)
TransferRequest(TransferRequest &&from) noexcept
void CopyFrom(const FileFragment &from)
void set_src(::PROTOBUF_NAMESPACE_ID::int32 value)
TransferRequest_PushPull PushPull
const std::string & data() const
void UnsafeArenaSwap(FileFragment *other)
static bool PushPull_Parse(const std::string &name, PushPull *value)
virtual ~TransferResponse()
static bool PushPull_IsValid(int value)
TransferResponse(TransferResponse &&from) noexcept
static const FileFragment & default_instance()
::goby::acomms::protobuf::TransferResponse_ErrorCode error() const
void set_transfer_successful(bool value)
void set_data(const std::string &value)
const std::string & file() const
TransferResponse & operator=(const TransferResponse &from)
void set_data(const char *value)
void CopyFrom(const TransferResponse &from)
void set_data(std::string &&value)
static bool ErrorCode_Parse(const std::string &name, ErrorCode *value)
TransferRequest * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
void set_file(const char *value)
std::string * release_data()
void MergeFrom(const TransferResponse &from)
static const std::string & ErrorCode_Name(T enum_t_value)
FileFragment * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
void CopyFrom(const TransferRequest &from)
::PROTOBUF_NAMESPACE_ID::int32 num_fragments() const
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
TransferRequest & operator=(TransferRequest &&from) noexcept
::PROTOBUF_NAMESPACE_ID::int32 src() const
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void MergeFrom(const TransferRequest &from)
void Swap(TransferRequest *other)
friend void swap(FileFragment &a, FileFragment &b)
FileFragment * New() const final
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * ErrorCode_descriptor()
virtual ~TransferRequest()
TransferResponse * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
void set_file(const char *value, size_t size)
static const FileFragment * internal_default_instance()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto
@ value
the parser finished reading a JSON value
TransferResponse_ErrorCode
@ TransferResponse_ErrorCode_OTHER_ERROR
@ TransferResponse_ErrorCode_ERROR_WHILE_READING
@ TransferResponse_ErrorCode_TIMEOUT
@ TransferResponse_ErrorCode_COULD_NOT_WRITE_FILE
@ TransferResponse_ErrorCode_FILE_TOO_LARGE
@ TransferResponse_ErrorCode_COULD_NOT_READ_FILE
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * TransferResponse_ErrorCode_descriptor()
bool TransferResponse_ErrorCode_IsValid(int value)
bool TransferRequest_PushPull_Parse(const std::string &name, TransferRequest_PushPull *value)
@ TransferRequest_PushPull_PUSH
@ TransferRequest_PushPull_PULL
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * TransferRequest_PushPull_descriptor()
const std::string & TransferResponse_ErrorCode_Name(T enum_t_value)
bool TransferRequest_PushPull_IsValid(int value)
constexpr int TransferRequest_PushPull_PushPull_ARRAYSIZE
TransferRequestDefaultTypeInternal _TransferRequest_default_instance_
constexpr TransferResponse_ErrorCode TransferResponse_ErrorCode_ErrorCode_MAX
bool TransferResponse_ErrorCode_Parse(const std::string &name, TransferResponse_ErrorCode *value)
constexpr int TransferResponse_ErrorCode_ErrorCode_ARRAYSIZE
constexpr TransferRequest_PushPull TransferRequest_PushPull_PushPull_MIN
TransferResponseDefaultTypeInternal _TransferResponse_default_instance_
constexpr TransferResponse_ErrorCode TransferResponse_ErrorCode_ErrorCode_MIN
FileFragmentDefaultTypeInternal _FileFragment_default_instance_
const std::string & TransferRequest_PushPull_Name(T enum_t_value)
constexpr TransferRequest_PushPull TransferRequest_PushPull_PushPull_MAX
The global namespace for the Goby project.
PROTOBUF_EXPORT const std::string & GetEmptyStringAlreadyInited()
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]