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 < 3021000
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 3021012 < 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_util.h>
27#include <google/protobuf/metadata_lite.h>
28#include <google/protobuf/generated_message_reflection.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#include <google/protobuf/port_def.inc>
42#define PROTOBUF_INTERNAL_EXPORT_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto
43PROTOBUF_NAMESPACE_OPEN
47PROTOBUF_NAMESPACE_CLOSE
58struct FileFragmentDefaultTypeInternal;
61struct TransferRequestDefaultTypeInternal;
63class TransferResponse;
64struct TransferResponseDefaultTypeInternal;
69PROTOBUF_NAMESPACE_OPEN
73PROTOBUF_NAMESPACE_CLOSE
90 static_assert(::std::is_same<T, TransferRequest_PushPull>::value ||
91 ::std::is_integral<T>::value,
92 "Incorrect type passed to function TransferRequest_PushPull_Name.");
93 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
98 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<TransferRequest_PushPull>(
117 static_assert(::std::is_same<T, TransferResponse_ErrorCode>::value ||
118 ::std::is_integral<T>::value,
119 "Incorrect type passed to function TransferResponse_ErrorCode_Name.");
120 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
125 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<TransferResponse_ErrorCode>(
131 public ::PROTOBUF_NAMESPACE_ID::Message {
135 explicit PROTOBUF_CONSTEXPR
FileFragment(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
140 *
this = ::std::move(from);
148 if (
this == &from)
return *
this;
149 if (GetOwningArena() == from.GetOwningArena()
150 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
151 && GetOwningArena() !=
nullptr
162 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
165 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
168 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
191 if (other ==
this)
return;
192 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
193 if (GetOwningArena() !=
nullptr &&
194 GetOwningArena() == other->GetOwningArena()) {
196 if (GetOwningArena() == other->GetOwningArena()) {
200 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
204 if (other ==
this)
return;
205 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
212 return CreateMaybeMessage<FileFragment>(arena);
214 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
216 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
218 FileFragment::MergeImpl(*
this, from);
221 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
223 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
229 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
233 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
235 void SetCachedSize(
int size)
const final;
239 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
240 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
241 return "goby.acomms.protobuf.FileFragment";
245 bool is_message_owned =
false);
249 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
268 bool _internal_has_data()
const;
271 const std::string&
data()
const;
272 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
278 const std::string& _internal_data()
const;
279 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_data(
const std::string& value);
280 std::string* _internal_mutable_data();
286 bool _internal_has_src()
const;
292 int32_t _internal_src()
const;
293 void _internal_set_src(int32_t value);
299 bool _internal_has_dest()
const;
302 int32_t
dest()
const;
305 int32_t _internal_dest()
const;
306 void _internal_set_dest(int32_t value);
312 bool _internal_has_fragment()
const;
318 int32_t _internal_fragment()
const;
319 void _internal_set_fragment(int32_t value);
325 bool _internal_has_is_last_fragment()
const;
331 bool _internal_is_last_fragment()
const;
332 void _internal_set_is_last_fragment(
bool value);
338 bool _internal_has_num_bytes()
const;
344 int32_t _internal_num_bytes()
const;
345 void _internal_set_num_bytes(int32_t value);
354 size_t RequiredFieldsByteSizeFallback()
const;
356 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
357 typedef void InternalArenaConstructable_;
358 typedef void DestructorSkippable_;
360 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
361 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
362 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_;
366 bool is_last_fragment_;
370 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto;
375 public ::PROTOBUF_NAMESPACE_ID::Message {
379 explicit PROTOBUF_CONSTEXPR
TransferRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
384 *
this = ::std::move(from);
392 if (
this == &from)
return *
this;
393 if (GetOwningArena() == from.GetOwningArena()
394 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
395 && GetOwningArena() !=
nullptr
406 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
409 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
412 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
413 return GetDescriptor();
416 return default_instance().GetMetadata().descriptor;
419 return default_instance().GetMetadata().reflection;
422 return *internal_default_instance();
428 static constexpr int kIndexInFileMessages =
435 if (other ==
this)
return;
436 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
437 if (GetOwningArena() !=
nullptr &&
438 GetOwningArena() == other->GetOwningArena()) {
440 if (GetOwningArena() == other->GetOwningArena()) {
444 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
448 if (other ==
this)
return;
449 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
456 return CreateMaybeMessage<TransferRequest>(arena);
458 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
460 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
462 TransferRequest::MergeImpl(*
this, from);
465 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
467 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
468 bool IsInitialized() const final;
471 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
472 uint8_t* _InternalSerialize(
473 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
474 int GetCachedSize() const final {
return _impl_._cached_size_.Get(); }
477 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
479 void SetCachedSize(
int size)
const final;
483 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
484 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
485 return "goby.acomms.protobuf.TransferRequest";
489 bool is_message_owned =
false);
493 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
495 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
501 TransferRequest_PushPull_PUSH;
503 TransferRequest_PushPull_PULL;
504 static inline
bool PushPull_IsValid(
int value) {
511 static constexpr int PushPull_ARRAYSIZE =
513 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
519 static_assert(::std::is_same<T, PushPull>::value ||
520 ::std::is_integral<T>::value,
521 "Incorrect type passed to function PushPull_Name.");
524 static inline bool PushPull_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
532 kFileFieldNumber = 10,
534 kDestFieldNumber = 2,
535 kPushOrPullFieldNumber = 3,
538 bool has_file()
const;
540 bool _internal_has_file()
const;
543 const std::string& file()
const;
544 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
546 std::string* mutable_file();
547 PROTOBUF_NODISCARD std::string* release_file();
548 void set_allocated_file(std::string* file);
550 const std::string& _internal_file()
const;
551 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_file(
const std::string& value);
552 std::string* _internal_mutable_file();
556 bool has_src()
const;
558 bool _internal_has_src()
const;
562 void set_src(int32_t value);
564 int32_t _internal_src()
const;
565 void _internal_set_src(int32_t value);
569 bool has_dest()
const;
571 bool _internal_has_dest()
const;
574 int32_t dest()
const;
575 void set_dest(int32_t value);
577 int32_t _internal_dest()
const;
578 void _internal_set_dest(int32_t value);
582 bool has_push_or_pull()
const;
584 bool _internal_has_push_or_pull()
const;
586 void clear_push_or_pull();
600 size_t RequiredFieldsByteSizeFallback()
const;
602 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
603 typedef void InternalArenaConstructable_;
604 typedef void DestructorSkippable_;
606 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
607 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
608 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_;
614 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto;
619 public ::PROTOBUF_NAMESPACE_ID::Message {
623 explicit PROTOBUF_CONSTEXPR
TransferResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
628 *
this = ::std::move(from);
636 if (
this == &from)
return *
this;
637 if (GetOwningArena() == from.GetOwningArena()
638 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
639 && GetOwningArena() !=
nullptr
650 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
653 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
656 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
657 return GetDescriptor();
660 return default_instance().GetMetadata().descriptor;
663 return default_instance().GetMetadata().reflection;
666 return *internal_default_instance();
672 static constexpr int kIndexInFileMessages =
679 if (other ==
this)
return;
680 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
681 if (GetOwningArena() !=
nullptr &&
682 GetOwningArena() == other->GetOwningArena()) {
684 if (GetOwningArena() == other->GetOwningArena()) {
688 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
692 if (other ==
this)
return;
693 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
700 return CreateMaybeMessage<TransferResponse>(arena);
702 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
704 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
706 TransferResponse::MergeImpl(*
this, from);
709 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
711 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
712 bool IsInitialized() const final;
715 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
716 uint8_t* _InternalSerialize(
717 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
718 int GetCachedSize() const final {
return _impl_._cached_size_.Get(); }
721 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
723 void SetCachedSize(
int size)
const final;
727 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
728 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
729 return "goby.acomms.protobuf.TransferResponse";
733 bool is_message_owned =
false);
737 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
739 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
745 TransferResponse_ErrorCode_COULD_NOT_READ_FILE;
747 TransferResponse_ErrorCode_FILE_TOO_LARGE;
749 TransferResponse_ErrorCode_TIMEOUT;
751 TransferResponse_ErrorCode_COULD_NOT_WRITE_FILE;
753 TransferResponse_ErrorCode_ERROR_WHILE_READING;
755 TransferResponse_ErrorCode_OTHER_ERROR;
756 static inline
bool ErrorCode_IsValid(
int value) {
763 static constexpr int ErrorCode_ARRAYSIZE =
765 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
771 static_assert(::std::is_same<T, ErrorCode>::value ||
772 ::std::is_integral<T>::value,
773 "Incorrect type passed to function ErrorCode_Name.");
785 kDestFieldNumber = 2,
786 kTransferSuccessfulFieldNumber = 3,
787 kNumFragmentsFieldNumber = 5,
788 kErrorFieldNumber = 4,
791 bool has_src()
const;
793 bool _internal_has_src()
const;
797 void set_src(int32_t value);
799 int32_t _internal_src()
const;
800 void _internal_set_src(int32_t value);
804 bool has_dest()
const;
806 bool _internal_has_dest()
const;
809 int32_t dest()
const;
810 void set_dest(int32_t value);
812 int32_t _internal_dest()
const;
813 void _internal_set_dest(int32_t value);
817 bool has_transfer_successful()
const;
819 bool _internal_has_transfer_successful()
const;
821 void clear_transfer_successful();
822 bool transfer_successful()
const;
823 void set_transfer_successful(
bool value);
825 bool _internal_transfer_successful()
const;
826 void _internal_set_transfer_successful(
bool value);
830 bool has_num_fragments()
const;
832 bool _internal_has_num_fragments()
const;
834 void clear_num_fragments();
835 int32_t num_fragments()
const;
836 void set_num_fragments(int32_t value);
838 int32_t _internal_num_fragments()
const;
839 void _internal_set_num_fragments(int32_t value);
843 bool has_error()
const;
845 bool _internal_has_error()
const;
861 size_t RequiredFieldsByteSizeFallback()
const;
863 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
864 typedef void InternalArenaConstructable_;
865 typedef void DestructorSkippable_;
867 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
868 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
871 bool transfer_successful_;
872 int32_t num_fragments_;
876 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto;
884 #pragma GCC diagnostic push
885 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
890inline bool FileFragment::_internal_has_src()
const {
891 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
894inline bool FileFragment::has_src()
const {
895 return _internal_has_src();
897inline void FileFragment::clear_src() {
899 _impl_._has_bits_[0] &= ~0x00000002u;
901inline int32_t FileFragment::_internal_src()
const {
904inline int32_t FileFragment::src()
const {
906 return _internal_src();
908inline void FileFragment::_internal_set_src(int32_t value) {
909 _impl_._has_bits_[0] |= 0x00000002u;
912inline void FileFragment::set_src(int32_t value) {
913 _internal_set_src(value);
918inline bool FileFragment::_internal_has_dest()
const {
919 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
922inline bool FileFragment::has_dest()
const {
923 return _internal_has_dest();
925inline void FileFragment::clear_dest() {
927 _impl_._has_bits_[0] &= ~0x00000004u;
929inline int32_t FileFragment::_internal_dest()
const {
932inline int32_t FileFragment::dest()
const {
934 return _internal_dest();
936inline void FileFragment::_internal_set_dest(int32_t value) {
937 _impl_._has_bits_[0] |= 0x00000004u;
938 _impl_.dest_ = value;
940inline void FileFragment::set_dest(int32_t value) {
941 _internal_set_dest(value);
946inline bool FileFragment::_internal_has_fragment()
const {
947 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
950inline bool FileFragment::has_fragment()
const {
951 return _internal_has_fragment();
953inline void FileFragment::clear_fragment() {
954 _impl_.fragment_ = 0;
955 _impl_._has_bits_[0] &= ~0x00000008u;
957inline int32_t FileFragment::_internal_fragment()
const {
958 return _impl_.fragment_;
960inline int32_t FileFragment::fragment()
const {
962 return _internal_fragment();
964inline void FileFragment::_internal_set_fragment(int32_t value) {
965 _impl_._has_bits_[0] |= 0x00000008u;
966 _impl_.fragment_ = value;
968inline void FileFragment::set_fragment(int32_t value) {
969 _internal_set_fragment(value);
974inline bool FileFragment::_internal_has_is_last_fragment()
const {
975 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
978inline bool FileFragment::has_is_last_fragment()
const {
979 return _internal_has_is_last_fragment();
981inline void FileFragment::clear_is_last_fragment() {
982 _impl_.is_last_fragment_ =
false;
983 _impl_._has_bits_[0] &= ~0x00000010u;
985inline bool FileFragment::_internal_is_last_fragment()
const {
986 return _impl_.is_last_fragment_;
988inline bool FileFragment::is_last_fragment()
const {
990 return _internal_is_last_fragment();
992inline void FileFragment::_internal_set_is_last_fragment(
bool value) {
993 _impl_._has_bits_[0] |= 0x00000010u;
994 _impl_.is_last_fragment_ = value;
996inline void FileFragment::set_is_last_fragment(
bool value) {
997 _internal_set_is_last_fragment(value);
1002inline bool FileFragment::_internal_has_num_bytes()
const {
1003 bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
1006inline bool FileFragment::has_num_bytes()
const {
1007 return _internal_has_num_bytes();
1009inline void FileFragment::clear_num_bytes() {
1010 _impl_.num_bytes_ = 0;
1011 _impl_._has_bits_[0] &= ~0x00000020u;
1013inline int32_t FileFragment::_internal_num_bytes()
const {
1014 return _impl_.num_bytes_;
1016inline int32_t FileFragment::num_bytes()
const {
1018 return _internal_num_bytes();
1020inline void FileFragment::_internal_set_num_bytes(int32_t value) {
1021 _impl_._has_bits_[0] |= 0x00000020u;
1022 _impl_.num_bytes_ = value;
1024inline void FileFragment::set_num_bytes(int32_t value) {
1025 _internal_set_num_bytes(value);
1030inline bool FileFragment::_internal_has_data()
const {
1031 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
1034inline bool FileFragment::has_data()
const {
1035 return _internal_has_data();
1037inline void FileFragment::clear_data() {
1038 _impl_.data_.ClearToEmpty();
1039 _impl_._has_bits_[0] &= ~0x00000001u;
1041inline const std::string& FileFragment::data()
const {
1043 return _internal_data();
1045template <
typename ArgT0,
typename... ArgT>
1046inline PROTOBUF_ALWAYS_INLINE
1047void FileFragment::set_data(ArgT0&& arg0, ArgT... args) {
1048 _impl_._has_bits_[0] |= 0x00000001u;
1049 _impl_.data_.SetBytes(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
1052inline std::string* FileFragment::mutable_data() {
1053 std::string* _s = _internal_mutable_data();
1057inline const std::string& FileFragment::_internal_data()
const {
1058 return _impl_.data_.Get();
1060inline void FileFragment::_internal_set_data(
const std::string& value) {
1061 _impl_._has_bits_[0] |= 0x00000001u;
1062 _impl_.data_.Set(value, GetArenaForAllocation());
1064inline std::string* FileFragment::_internal_mutable_data() {
1065 _impl_._has_bits_[0] |= 0x00000001u;
1066 return _impl_.data_.Mutable(GetArenaForAllocation());
1068inline std::string* FileFragment::release_data() {
1070 if (!_internal_has_data()) {
1073 _impl_._has_bits_[0] &= ~0x00000001u;
1074 auto* p = _impl_.data_.Release();
1075#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1076 if (_impl_.data_.IsDefault()) {
1077 _impl_.data_.Set(
"", GetArenaForAllocation());
1082inline void FileFragment::set_allocated_data(std::string* data) {
1083 if (data !=
nullptr) {
1084 _impl_._has_bits_[0] |= 0x00000001u;
1086 _impl_._has_bits_[0] &= ~0x00000001u;
1088 _impl_.data_.SetAllocated(data, GetArenaForAllocation());
1089#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1090 if (_impl_.data_.IsDefault()) {
1091 _impl_.data_.Set(
"", GetArenaForAllocation());
1102inline bool TransferRequest::_internal_has_src()
const {
1103 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
1106inline bool TransferRequest::has_src()
const {
1107 return _internal_has_src();
1109inline void TransferRequest::clear_src() {
1111 _impl_._has_bits_[0] &= ~0x00000002u;
1113inline int32_t TransferRequest::_internal_src()
const {
1116inline int32_t TransferRequest::src()
const {
1118 return _internal_src();
1120inline void TransferRequest::_internal_set_src(int32_t value) {
1121 _impl_._has_bits_[0] |= 0x00000002u;
1122 _impl_.src_ = value;
1124inline void TransferRequest::set_src(int32_t value) {
1125 _internal_set_src(value);
1130inline bool TransferRequest::_internal_has_dest()
const {
1131 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
1134inline bool TransferRequest::has_dest()
const {
1135 return _internal_has_dest();
1137inline void TransferRequest::clear_dest() {
1139 _impl_._has_bits_[0] &= ~0x00000004u;
1141inline int32_t TransferRequest::_internal_dest()
const {
1142 return _impl_.dest_;
1144inline int32_t TransferRequest::dest()
const {
1146 return _internal_dest();
1148inline void TransferRequest::_internal_set_dest(int32_t value) {
1149 _impl_._has_bits_[0] |= 0x00000004u;
1150 _impl_.dest_ = value;
1152inline void TransferRequest::set_dest(int32_t value) {
1153 _internal_set_dest(value);
1158inline bool TransferRequest::_internal_has_push_or_pull()
const {
1159 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
1162inline bool TransferRequest::has_push_or_pull()
const {
1163 return _internal_has_push_or_pull();
1165inline void TransferRequest::clear_push_or_pull() {
1166 _impl_.push_or_pull_ = 1;
1167 _impl_._has_bits_[0] &= ~0x00000008u;
1169inline ::goby::acomms::protobuf::TransferRequest_PushPull TransferRequest::_internal_push_or_pull()
const {
1172inline ::goby::acomms::protobuf::TransferRequest_PushPull TransferRequest::push_or_pull()
const {
1174 return _internal_push_or_pull();
1178 _impl_._has_bits_[0] |= 0x00000008u;
1179 _impl_.push_or_pull_ = value;
1182 _internal_set_push_or_pull(value);
1187inline bool TransferRequest::_internal_has_file()
const {
1188 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
1191inline bool TransferRequest::has_file()
const {
1192 return _internal_has_file();
1194inline void TransferRequest::clear_file() {
1195 _impl_.file_.ClearToEmpty();
1196 _impl_._has_bits_[0] &= ~0x00000001u;
1198inline const std::string& TransferRequest::file()
const {
1200 return _internal_file();
1202template <
typename ArgT0,
typename... ArgT>
1203inline PROTOBUF_ALWAYS_INLINE
1204void TransferRequest::set_file(ArgT0&& arg0, ArgT... args) {
1205 _impl_._has_bits_[0] |= 0x00000001u;
1206 _impl_.file_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
1209inline std::string* TransferRequest::mutable_file() {
1210 std::string* _s = _internal_mutable_file();
1214inline const std::string& TransferRequest::_internal_file()
const {
1215 return _impl_.file_.Get();
1217inline void TransferRequest::_internal_set_file(
const std::string& value) {
1218 _impl_._has_bits_[0] |= 0x00000001u;
1219 _impl_.file_.Set(value, GetArenaForAllocation());
1221inline std::string* TransferRequest::_internal_mutable_file() {
1222 _impl_._has_bits_[0] |= 0x00000001u;
1223 return _impl_.file_.Mutable(GetArenaForAllocation());
1225inline std::string* TransferRequest::release_file() {
1227 if (!_internal_has_file()) {
1230 _impl_._has_bits_[0] &= ~0x00000001u;
1231 auto* p = _impl_.file_.Release();
1232#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1233 if (_impl_.file_.IsDefault()) {
1234 _impl_.file_.Set(
"", GetArenaForAllocation());
1239inline void TransferRequest::set_allocated_file(std::string* file) {
1240 if (file !=
nullptr) {
1241 _impl_._has_bits_[0] |= 0x00000001u;
1243 _impl_._has_bits_[0] &= ~0x00000001u;
1245 _impl_.file_.SetAllocated(file, GetArenaForAllocation());
1246#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1247 if (_impl_.file_.IsDefault()) {
1248 _impl_.file_.Set(
"", GetArenaForAllocation());
1259inline bool TransferResponse::_internal_has_src()
const {
1260 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
1263inline bool TransferResponse::has_src()
const {
1264 return _internal_has_src();
1266inline void TransferResponse::clear_src() {
1268 _impl_._has_bits_[0] &= ~0x00000001u;
1270inline int32_t TransferResponse::_internal_src()
const {
1273inline int32_t TransferResponse::src()
const {
1275 return _internal_src();
1277inline void TransferResponse::_internal_set_src(int32_t value) {
1278 _impl_._has_bits_[0] |= 0x00000001u;
1279 _impl_.src_ = value;
1281inline void TransferResponse::set_src(int32_t value) {
1282 _internal_set_src(value);
1287inline bool TransferResponse::_internal_has_dest()
const {
1288 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
1291inline bool TransferResponse::has_dest()
const {
1292 return _internal_has_dest();
1294inline void TransferResponse::clear_dest() {
1296 _impl_._has_bits_[0] &= ~0x00000002u;
1298inline int32_t TransferResponse::_internal_dest()
const {
1299 return _impl_.dest_;
1301inline int32_t TransferResponse::dest()
const {
1303 return _internal_dest();
1305inline void TransferResponse::_internal_set_dest(int32_t value) {
1306 _impl_._has_bits_[0] |= 0x00000002u;
1307 _impl_.dest_ = value;
1309inline void TransferResponse::set_dest(int32_t value) {
1310 _internal_set_dest(value);
1315inline bool TransferResponse::_internal_has_transfer_successful()
const {
1316 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
1319inline bool TransferResponse::has_transfer_successful()
const {
1320 return _internal_has_transfer_successful();
1322inline void TransferResponse::clear_transfer_successful() {
1323 _impl_.transfer_successful_ =
false;
1324 _impl_._has_bits_[0] &= ~0x00000004u;
1326inline bool TransferResponse::_internal_transfer_successful()
const {
1327 return _impl_.transfer_successful_;
1329inline bool TransferResponse::transfer_successful()
const {
1331 return _internal_transfer_successful();
1333inline void TransferResponse::_internal_set_transfer_successful(
bool value) {
1334 _impl_._has_bits_[0] |= 0x00000004u;
1335 _impl_.transfer_successful_ = value;
1337inline void TransferResponse::set_transfer_successful(
bool value) {
1338 _internal_set_transfer_successful(value);
1343inline bool TransferResponse::_internal_has_error()
const {
1344 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
1347inline bool TransferResponse::has_error()
const {
1348 return _internal_has_error();
1350inline void TransferResponse::clear_error() {
1352 _impl_._has_bits_[0] &= ~0x00000010u;
1354inline ::goby::acomms::protobuf::TransferResponse_ErrorCode TransferResponse::_internal_error()
const {
1357inline ::goby::acomms::protobuf::TransferResponse_ErrorCode TransferResponse::error()
const {
1359 return _internal_error();
1363 _impl_._has_bits_[0] |= 0x00000010u;
1364 _impl_.error_ = value;
1367 _internal_set_error(value);
1372inline bool TransferResponse::_internal_has_num_fragments()
const {
1373 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
1376inline bool TransferResponse::has_num_fragments()
const {
1377 return _internal_has_num_fragments();
1379inline void TransferResponse::clear_num_fragments() {
1380 _impl_.num_fragments_ = 0;
1381 _impl_._has_bits_[0] &= ~0x00000008u;
1383inline int32_t TransferResponse::_internal_num_fragments()
const {
1384 return _impl_.num_fragments_;
1386inline int32_t TransferResponse::num_fragments()
const {
1388 return _internal_num_fragments();
1390inline void TransferResponse::_internal_set_num_fragments(int32_t value) {
1391 _impl_._has_bits_[0] |= 0x00000008u;
1392 _impl_.num_fragments_ = value;
1394inline void TransferResponse::set_num_fragments(int32_t value) {
1395 _internal_set_num_fragments(value);
1400 #pragma GCC diagnostic pop
1413PROTOBUF_NAMESPACE_OPEN
1418 return ::goby::acomms::protobuf::TransferRequest_PushPull_descriptor();
1423 return ::goby::acomms::protobuf::TransferResponse_ErrorCode_descriptor();
1426PROTOBUF_NAMESPACE_CLOSE
1430#include <google/protobuf/port_undef.inc>
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
bool has_is_last_fragment() const
FileFragment & operator=(const FileFragment &from)
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
bool IsInitialized() const final
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
void set_num_bytes(int32_t value)
void set_is_last_fragment(bool value)
void set_src(int32_t value)
int32_t num_bytes() const
static const FileFragment * internal_default_instance()
static const FileFragment & default_instance()
size_t ByteSizeLong() const final
FileFragment(const FileFragment &from)
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
PROTOBUF_CONSTEXPR FileFragment(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
FileFragment(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
void Swap(FileFragment *other)
PROTOBUF_NODISCARD std::string * release_data()
bool has_fragment() const
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
bool is_last_fragment() const
bool has_num_bytes() const
static constexpr int kIndexInFileMessages
void clear_is_last_fragment()
void set_data(ArgT0 &&arg0, ArgT... args)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
FileFragment(FileFragment &&from) noexcept
int GetCachedSize() const final
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
void UnsafeArenaSwap(FileFragment *other)
const std::string & data() const
static const ClassData _class_data_
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
void set_fragment(int32_t value)
FileFragment * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
void CopyFrom(const FileFragment &from)
void MergeFrom(const FileFragment &from)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
friend void swap(FileFragment &a, FileFragment &b)
FileFragment & operator=(FileFragment &&from) noexcept
void set_allocated_data(std::string *data)
void set_dest(int32_t value)
@ kIsLastFragmentFieldNumber
std::string * mutable_data()
TransferRequest(const TransferRequest &from)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
TransferRequest & operator=(const TransferRequest &from)
void UnsafeArenaSwap(TransferRequest *other)
~TransferRequest() override
friend void swap(TransferRequest &a, TransferRequest &b)
TransferRequest(TransferRequest &&from) noexcept
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * PushPull_descriptor()
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
void set_file(ArgT0 &&arg0, ArgT... args)
TransferRequest * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
static const TransferRequest * internal_default_instance()
static const TransferRequest & default_instance()
static bool PushPull_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PushPull *value)
void CopyFrom(const TransferRequest &from)
PROTOBUF_CONSTEXPR TransferRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
TransferRequest & operator=(TransferRequest &&from) noexcept
void Swap(TransferRequest *other)
void MergeFrom(const TransferRequest &from)
static const std::string & PushPull_Name(T enum_t_value)
static const ClassData _class_data_
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
TransferRequest(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
static const ClassData _class_data_
TransferResponse & operator=(const TransferResponse &from)
TransferResponse(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
void MergeFrom(const TransferResponse &from)
static const std::string & ErrorCode_Name(T enum_t_value)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
TransferResponse * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
TransferResponse(TransferResponse &&from) noexcept
static bool ErrorCode_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ErrorCode *value)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
TransferResponse & operator=(TransferResponse &&from) noexcept
friend void swap(TransferResponse &a, TransferResponse &b)
TransferResponse(const TransferResponse &from)
~TransferResponse() override
void Swap(TransferResponse *other)
void UnsafeArenaSwap(TransferResponse *other)
void CopyFrom(const TransferResponse &from)
PROTOBUF_CONSTEXPR TransferResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
static const TransferResponse * internal_default_instance()
static const TransferResponse & default_instance()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * ErrorCode_descriptor()
const EnumDescriptor * GetEnumDescriptor< ::goby::acomms::protobuf::TransferRequest_PushPull >()
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto
const EnumDescriptor * GetEnumDescriptor< ::goby::acomms::protobuf::TransferResponse_ErrorCode >()
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * TransferRequest_PushPull_descriptor()
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
bool TransferResponse_ErrorCode_IsValid(int value)
@ TransferRequest_PushPull_PUSH
@ TransferRequest_PushPull_PULL
bool TransferRequest_PushPull_IsValid(int value)
constexpr int TransferRequest_PushPull_PushPull_ARRAYSIZE
const std::string & TransferResponse_ErrorCode_Name(T enum_t_value)
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * TransferResponse_ErrorCode_descriptor()
TransferRequestDefaultTypeInternal _TransferRequest_default_instance_
constexpr TransferResponse_ErrorCode TransferResponse_ErrorCode_ErrorCode_MAX
bool TransferResponse_ErrorCode_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, TransferResponse_ErrorCode *value)
constexpr int TransferResponse_ErrorCode_ErrorCode_ARRAYSIZE
constexpr TransferRequest_PushPull TransferRequest_PushPull_PushPull_MIN
TransferResponseDefaultTypeInternal _TransferResponse_default_instance_
const std::string & TransferRequest_PushPull_Name(T enum_t_value)
constexpr TransferResponse_ErrorCode TransferResponse_ErrorCode_ErrorCode_MIN
FileFragmentDefaultTypeInternal _FileFragment_default_instance_
bool TransferRequest_PushPull_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, TransferRequest_PushPull *value)
constexpr TransferRequest_PushPull TransferRequest_PushPull_PushPull_MAX
The global namespace for the Goby project.
static const uint32_t offsets[]