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>
34#include "dccl/option_extensions.pb.h"
35#include <boost/units/quantity.hpp>
36#include <boost/units/absolute.hpp>
37#include <boost/units/dimensionless_type.hpp>
38#include <boost/units/make_scaled_unit.hpp>
40#include <google/protobuf/port_def.inc>
41#define PROTOBUF_INTERNAL_EXPORT_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto
42PROTOBUF_NAMESPACE_OPEN
46PROTOBUF_NAMESPACE_CLOSE
57struct FileFragmentDefaultTypeInternal;
60struct TransferRequestDefaultTypeInternal;
62class TransferResponse;
63struct TransferResponseDefaultTypeInternal;
68PROTOBUF_NAMESPACE_OPEN
72PROTOBUF_NAMESPACE_CLOSE
89 static_assert(::std::is_same<T, TransferRequest_PushPull>::value ||
90 ::std::is_integral<T>::value,
91 "Incorrect type passed to function TransferRequest_PushPull_Name.");
92 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
97 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<TransferRequest_PushPull>(
116 static_assert(::std::is_same<T, TransferResponse_ErrorCode>::value ||
117 ::std::is_integral<T>::value,
118 "Incorrect type passed to function TransferResponse_ErrorCode_Name.");
119 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
124 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<TransferResponse_ErrorCode>(
130 public ::PROTOBUF_NAMESPACE_ID::Message {
134 explicit PROTOBUF_CONSTEXPR
FileFragment(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
139 *
this = ::std::move(from);
147 if (
this == &from)
return *
this;
148 if (GetOwningArena() == from.GetOwningArena()
149 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
150 && GetOwningArena() !=
nullptr
161 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
164 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
167 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
190 if (other ==
this)
return;
191 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
192 if (GetOwningArena() !=
nullptr &&
193 GetOwningArena() == other->GetOwningArena()) {
195 if (GetOwningArena() == other->GetOwningArena()) {
199 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
203 if (other ==
this)
return;
204 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
211 return CreateMaybeMessage<FileFragment>(arena);
213 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
215 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
217 FileFragment::MergeImpl(*
this, from);
220 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
222 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
228 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
232 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
234 void SetCachedSize(
int size)
const final;
238 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
239 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
240 return "goby.acomms.protobuf.FileFragment";
244 bool is_message_owned =
false);
248 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
267 bool _internal_has_data()
const;
270 const std::string&
data()
const;
271 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
277 const std::string& _internal_data()
const;
278 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_data(
const std::string& value);
279 std::string* _internal_mutable_data();
285 bool _internal_has_src()
const;
291 int32_t _internal_src()
const;
292 void _internal_set_src(int32_t value);
298 bool _internal_has_dest()
const;
301 int32_t
dest()
const;
304 int32_t _internal_dest()
const;
305 void _internal_set_dest(int32_t value);
311 bool _internal_has_fragment()
const;
317 int32_t _internal_fragment()
const;
318 void _internal_set_fragment(int32_t value);
324 bool _internal_has_is_last_fragment()
const;
330 bool _internal_is_last_fragment()
const;
331 void _internal_set_is_last_fragment(
bool value);
337 bool _internal_has_num_bytes()
const;
343 int32_t _internal_num_bytes()
const;
344 void _internal_set_num_bytes(int32_t value);
353 size_t RequiredFieldsByteSizeFallback()
const;
355 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
356 typedef void InternalArenaConstructable_;
357 typedef void DestructorSkippable_;
359 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
360 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
361 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_;
365 bool is_last_fragment_;
369 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto;
374 public ::PROTOBUF_NAMESPACE_ID::Message {
378 explicit PROTOBUF_CONSTEXPR
TransferRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
383 *
this = ::std::move(from);
391 if (
this == &from)
return *
this;
392 if (GetOwningArena() == from.GetOwningArena()
393 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
394 && GetOwningArena() !=
nullptr
405 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
408 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
411 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
412 return GetDescriptor();
415 return default_instance().GetMetadata().descriptor;
418 return default_instance().GetMetadata().reflection;
421 return *internal_default_instance();
427 static constexpr int kIndexInFileMessages =
434 if (other ==
this)
return;
435 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
436 if (GetOwningArena() !=
nullptr &&
437 GetOwningArena() == other->GetOwningArena()) {
439 if (GetOwningArena() == other->GetOwningArena()) {
443 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
447 if (other ==
this)
return;
448 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
455 return CreateMaybeMessage<TransferRequest>(arena);
457 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
459 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
461 TransferRequest::MergeImpl(*
this, from);
464 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
466 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
467 bool IsInitialized() const final;
470 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
471 uint8_t* _InternalSerialize(
472 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
473 int GetCachedSize() const final {
return _impl_._cached_size_.Get(); }
476 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
478 void SetCachedSize(
int size)
const final;
482 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
483 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
484 return "goby.acomms.protobuf.TransferRequest";
488 bool is_message_owned =
false);
492 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
494 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
500 TransferRequest_PushPull_PUSH;
502 TransferRequest_PushPull_PULL;
503 static inline
bool PushPull_IsValid(
int value) {
510 static constexpr int PushPull_ARRAYSIZE =
512 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
518 static_assert(::std::is_same<T, PushPull>::value ||
519 ::std::is_integral<T>::value,
520 "Incorrect type passed to function PushPull_Name.");
523 static inline bool PushPull_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
531 kFileFieldNumber = 10,
533 kDestFieldNumber = 2,
534 kPushOrPullFieldNumber = 3,
537 bool has_file()
const;
539 bool _internal_has_file()
const;
542 const std::string& file()
const;
543 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
545 std::string* mutable_file();
546 PROTOBUF_NODISCARD std::string* release_file();
547 void set_allocated_file(std::string* file);
549 const std::string& _internal_file()
const;
550 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_file(
const std::string& value);
551 std::string* _internal_mutable_file();
555 bool has_src()
const;
557 bool _internal_has_src()
const;
561 void set_src(int32_t value);
563 int32_t _internal_src()
const;
564 void _internal_set_src(int32_t value);
568 bool has_dest()
const;
570 bool _internal_has_dest()
const;
573 int32_t dest()
const;
574 void set_dest(int32_t value);
576 int32_t _internal_dest()
const;
577 void _internal_set_dest(int32_t value);
581 bool has_push_or_pull()
const;
583 bool _internal_has_push_or_pull()
const;
585 void clear_push_or_pull();
599 size_t RequiredFieldsByteSizeFallback()
const;
601 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
602 typedef void InternalArenaConstructable_;
603 typedef void DestructorSkippable_;
605 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
606 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
607 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_;
613 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto;
618 public ::PROTOBUF_NAMESPACE_ID::Message {
622 explicit PROTOBUF_CONSTEXPR
TransferResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
627 *
this = ::std::move(from);
635 if (
this == &from)
return *
this;
636 if (GetOwningArena() == from.GetOwningArena()
637 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
638 && GetOwningArena() !=
nullptr
649 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
652 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
655 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
656 return GetDescriptor();
659 return default_instance().GetMetadata().descriptor;
662 return default_instance().GetMetadata().reflection;
665 return *internal_default_instance();
671 static constexpr int kIndexInFileMessages =
678 if (other ==
this)
return;
679 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
680 if (GetOwningArena() !=
nullptr &&
681 GetOwningArena() == other->GetOwningArena()) {
683 if (GetOwningArena() == other->GetOwningArena()) {
687 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
691 if (other ==
this)
return;
692 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
699 return CreateMaybeMessage<TransferResponse>(arena);
701 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
703 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
705 TransferResponse::MergeImpl(*
this, from);
708 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
710 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
711 bool IsInitialized() const final;
714 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
715 uint8_t* _InternalSerialize(
716 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
717 int GetCachedSize() const final {
return _impl_._cached_size_.Get(); }
720 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
722 void SetCachedSize(
int size)
const final;
726 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
727 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
728 return "goby.acomms.protobuf.TransferResponse";
732 bool is_message_owned =
false);
736 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
738 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
744 TransferResponse_ErrorCode_COULD_NOT_READ_FILE;
746 TransferResponse_ErrorCode_FILE_TOO_LARGE;
748 TransferResponse_ErrorCode_TIMEOUT;
750 TransferResponse_ErrorCode_COULD_NOT_WRITE_FILE;
752 TransferResponse_ErrorCode_ERROR_WHILE_READING;
754 TransferResponse_ErrorCode_OTHER_ERROR;
755 static inline
bool ErrorCode_IsValid(
int value) {
762 static constexpr int ErrorCode_ARRAYSIZE =
764 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
770 static_assert(::std::is_same<T, ErrorCode>::value ||
771 ::std::is_integral<T>::value,
772 "Incorrect type passed to function ErrorCode_Name.");
784 kDestFieldNumber = 2,
785 kTransferSuccessfulFieldNumber = 3,
786 kNumFragmentsFieldNumber = 5,
787 kErrorFieldNumber = 4,
790 bool has_src()
const;
792 bool _internal_has_src()
const;
796 void set_src(int32_t value);
798 int32_t _internal_src()
const;
799 void _internal_set_src(int32_t value);
803 bool has_dest()
const;
805 bool _internal_has_dest()
const;
808 int32_t dest()
const;
809 void set_dest(int32_t value);
811 int32_t _internal_dest()
const;
812 void _internal_set_dest(int32_t value);
816 bool has_transfer_successful()
const;
818 bool _internal_has_transfer_successful()
const;
820 void clear_transfer_successful();
821 bool transfer_successful()
const;
822 void set_transfer_successful(
bool value);
824 bool _internal_transfer_successful()
const;
825 void _internal_set_transfer_successful(
bool value);
829 bool has_num_fragments()
const;
831 bool _internal_has_num_fragments()
const;
833 void clear_num_fragments();
834 int32_t num_fragments()
const;
835 void set_num_fragments(int32_t value);
837 int32_t _internal_num_fragments()
const;
838 void _internal_set_num_fragments(int32_t value);
842 bool has_error()
const;
844 bool _internal_has_error()
const;
860 size_t RequiredFieldsByteSizeFallback()
const;
862 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
863 typedef void InternalArenaConstructable_;
864 typedef void DestructorSkippable_;
866 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
867 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
870 bool transfer_successful_;
871 int32_t num_fragments_;
875 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto;
883 #pragma GCC diagnostic push
884 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
889inline bool FileFragment::_internal_has_src()
const {
890 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
893inline bool FileFragment::has_src()
const {
894 return _internal_has_src();
896inline void FileFragment::clear_src() {
898 _impl_._has_bits_[0] &= ~0x00000002u;
900inline int32_t FileFragment::_internal_src()
const {
903inline int32_t FileFragment::src()
const {
905 return _internal_src();
907inline void FileFragment::_internal_set_src(int32_t value) {
908 _impl_._has_bits_[0] |= 0x00000002u;
911inline void FileFragment::set_src(int32_t value) {
912 _internal_set_src(value);
917inline bool FileFragment::_internal_has_dest()
const {
918 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
921inline bool FileFragment::has_dest()
const {
922 return _internal_has_dest();
924inline void FileFragment::clear_dest() {
926 _impl_._has_bits_[0] &= ~0x00000004u;
928inline int32_t FileFragment::_internal_dest()
const {
931inline int32_t FileFragment::dest()
const {
933 return _internal_dest();
935inline void FileFragment::_internal_set_dest(int32_t value) {
936 _impl_._has_bits_[0] |= 0x00000004u;
937 _impl_.dest_ = value;
939inline void FileFragment::set_dest(int32_t value) {
940 _internal_set_dest(value);
945inline bool FileFragment::_internal_has_fragment()
const {
946 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
949inline bool FileFragment::has_fragment()
const {
950 return _internal_has_fragment();
952inline void FileFragment::clear_fragment() {
953 _impl_.fragment_ = 0;
954 _impl_._has_bits_[0] &= ~0x00000008u;
956inline int32_t FileFragment::_internal_fragment()
const {
957 return _impl_.fragment_;
959inline int32_t FileFragment::fragment()
const {
961 return _internal_fragment();
963inline void FileFragment::_internal_set_fragment(int32_t value) {
964 _impl_._has_bits_[0] |= 0x00000008u;
965 _impl_.fragment_ = value;
967inline void FileFragment::set_fragment(int32_t value) {
968 _internal_set_fragment(value);
973inline bool FileFragment::_internal_has_is_last_fragment()
const {
974 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
977inline bool FileFragment::has_is_last_fragment()
const {
978 return _internal_has_is_last_fragment();
980inline void FileFragment::clear_is_last_fragment() {
981 _impl_.is_last_fragment_ =
false;
982 _impl_._has_bits_[0] &= ~0x00000010u;
984inline bool FileFragment::_internal_is_last_fragment()
const {
985 return _impl_.is_last_fragment_;
987inline bool FileFragment::is_last_fragment()
const {
989 return _internal_is_last_fragment();
991inline void FileFragment::_internal_set_is_last_fragment(
bool value) {
992 _impl_._has_bits_[0] |= 0x00000010u;
993 _impl_.is_last_fragment_ = value;
995inline void FileFragment::set_is_last_fragment(
bool value) {
996 _internal_set_is_last_fragment(value);
1001inline bool FileFragment::_internal_has_num_bytes()
const {
1002 bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
1005inline bool FileFragment::has_num_bytes()
const {
1006 return _internal_has_num_bytes();
1008inline void FileFragment::clear_num_bytes() {
1009 _impl_.num_bytes_ = 0;
1010 _impl_._has_bits_[0] &= ~0x00000020u;
1012inline int32_t FileFragment::_internal_num_bytes()
const {
1013 return _impl_.num_bytes_;
1015inline int32_t FileFragment::num_bytes()
const {
1017 return _internal_num_bytes();
1019inline void FileFragment::_internal_set_num_bytes(int32_t value) {
1020 _impl_._has_bits_[0] |= 0x00000020u;
1021 _impl_.num_bytes_ = value;
1023inline void FileFragment::set_num_bytes(int32_t value) {
1024 _internal_set_num_bytes(value);
1029inline bool FileFragment::_internal_has_data()
const {
1030 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
1033inline bool FileFragment::has_data()
const {
1034 return _internal_has_data();
1036inline void FileFragment::clear_data() {
1037 _impl_.data_.ClearToEmpty();
1038 _impl_._has_bits_[0] &= ~0x00000001u;
1040inline const std::string& FileFragment::data()
const {
1042 return _internal_data();
1044template <
typename ArgT0,
typename... ArgT>
1045inline PROTOBUF_ALWAYS_INLINE
1046void FileFragment::set_data(ArgT0&& arg0, ArgT... args) {
1047 _impl_._has_bits_[0] |= 0x00000001u;
1048 _impl_.data_.SetBytes(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
1051inline std::string* FileFragment::mutable_data() {
1052 std::string* _s = _internal_mutable_data();
1056inline const std::string& FileFragment::_internal_data()
const {
1057 return _impl_.data_.Get();
1059inline void FileFragment::_internal_set_data(
const std::string& value) {
1060 _impl_._has_bits_[0] |= 0x00000001u;
1061 _impl_.data_.Set(value, GetArenaForAllocation());
1063inline std::string* FileFragment::_internal_mutable_data() {
1064 _impl_._has_bits_[0] |= 0x00000001u;
1065 return _impl_.data_.Mutable(GetArenaForAllocation());
1067inline std::string* FileFragment::release_data() {
1069 if (!_internal_has_data()) {
1072 _impl_._has_bits_[0] &= ~0x00000001u;
1073 auto* p = _impl_.data_.Release();
1074#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1075 if (_impl_.data_.IsDefault()) {
1076 _impl_.data_.Set(
"", GetArenaForAllocation());
1081inline void FileFragment::set_allocated_data(std::string* data) {
1082 if (data !=
nullptr) {
1083 _impl_._has_bits_[0] |= 0x00000001u;
1085 _impl_._has_bits_[0] &= ~0x00000001u;
1087 _impl_.data_.SetAllocated(data, GetArenaForAllocation());
1088#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1089 if (_impl_.data_.IsDefault()) {
1090 _impl_.data_.Set(
"", GetArenaForAllocation());
1101inline bool TransferRequest::_internal_has_src()
const {
1102 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
1105inline bool TransferRequest::has_src()
const {
1106 return _internal_has_src();
1108inline void TransferRequest::clear_src() {
1110 _impl_._has_bits_[0] &= ~0x00000002u;
1112inline int32_t TransferRequest::_internal_src()
const {
1115inline int32_t TransferRequest::src()
const {
1117 return _internal_src();
1119inline void TransferRequest::_internal_set_src(int32_t value) {
1120 _impl_._has_bits_[0] |= 0x00000002u;
1121 _impl_.src_ = value;
1123inline void TransferRequest::set_src(int32_t value) {
1124 _internal_set_src(value);
1129inline bool TransferRequest::_internal_has_dest()
const {
1130 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
1133inline bool TransferRequest::has_dest()
const {
1134 return _internal_has_dest();
1136inline void TransferRequest::clear_dest() {
1138 _impl_._has_bits_[0] &= ~0x00000004u;
1140inline int32_t TransferRequest::_internal_dest()
const {
1141 return _impl_.dest_;
1143inline int32_t TransferRequest::dest()
const {
1145 return _internal_dest();
1147inline void TransferRequest::_internal_set_dest(int32_t value) {
1148 _impl_._has_bits_[0] |= 0x00000004u;
1149 _impl_.dest_ = value;
1151inline void TransferRequest::set_dest(int32_t value) {
1152 _internal_set_dest(value);
1157inline bool TransferRequest::_internal_has_push_or_pull()
const {
1158 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
1161inline bool TransferRequest::has_push_or_pull()
const {
1162 return _internal_has_push_or_pull();
1164inline void TransferRequest::clear_push_or_pull() {
1165 _impl_.push_or_pull_ = 1;
1166 _impl_._has_bits_[0] &= ~0x00000008u;
1168inline ::goby::acomms::protobuf::TransferRequest_PushPull TransferRequest::_internal_push_or_pull()
const {
1171inline ::goby::acomms::protobuf::TransferRequest_PushPull TransferRequest::push_or_pull()
const {
1173 return _internal_push_or_pull();
1177 _impl_._has_bits_[0] |= 0x00000008u;
1178 _impl_.push_or_pull_ = value;
1181 _internal_set_push_or_pull(value);
1186inline bool TransferRequest::_internal_has_file()
const {
1187 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
1190inline bool TransferRequest::has_file()
const {
1191 return _internal_has_file();
1193inline void TransferRequest::clear_file() {
1194 _impl_.file_.ClearToEmpty();
1195 _impl_._has_bits_[0] &= ~0x00000001u;
1197inline const std::string& TransferRequest::file()
const {
1199 return _internal_file();
1201template <
typename ArgT0,
typename... ArgT>
1202inline PROTOBUF_ALWAYS_INLINE
1203void TransferRequest::set_file(ArgT0&& arg0, ArgT... args) {
1204 _impl_._has_bits_[0] |= 0x00000001u;
1205 _impl_.file_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
1208inline std::string* TransferRequest::mutable_file() {
1209 std::string* _s = _internal_mutable_file();
1213inline const std::string& TransferRequest::_internal_file()
const {
1214 return _impl_.file_.Get();
1216inline void TransferRequest::_internal_set_file(
const std::string& value) {
1217 _impl_._has_bits_[0] |= 0x00000001u;
1218 _impl_.file_.Set(value, GetArenaForAllocation());
1220inline std::string* TransferRequest::_internal_mutable_file() {
1221 _impl_._has_bits_[0] |= 0x00000001u;
1222 return _impl_.file_.Mutable(GetArenaForAllocation());
1224inline std::string* TransferRequest::release_file() {
1226 if (!_internal_has_file()) {
1229 _impl_._has_bits_[0] &= ~0x00000001u;
1230 auto* p = _impl_.file_.Release();
1231#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1232 if (_impl_.file_.IsDefault()) {
1233 _impl_.file_.Set(
"", GetArenaForAllocation());
1238inline void TransferRequest::set_allocated_file(std::string* file) {
1239 if (file !=
nullptr) {
1240 _impl_._has_bits_[0] |= 0x00000001u;
1242 _impl_._has_bits_[0] &= ~0x00000001u;
1244 _impl_.file_.SetAllocated(file, GetArenaForAllocation());
1245#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1246 if (_impl_.file_.IsDefault()) {
1247 _impl_.file_.Set(
"", GetArenaForAllocation());
1258inline bool TransferResponse::_internal_has_src()
const {
1259 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
1262inline bool TransferResponse::has_src()
const {
1263 return _internal_has_src();
1265inline void TransferResponse::clear_src() {
1267 _impl_._has_bits_[0] &= ~0x00000001u;
1269inline int32_t TransferResponse::_internal_src()
const {
1272inline int32_t TransferResponse::src()
const {
1274 return _internal_src();
1276inline void TransferResponse::_internal_set_src(int32_t value) {
1277 _impl_._has_bits_[0] |= 0x00000001u;
1278 _impl_.src_ = value;
1280inline void TransferResponse::set_src(int32_t value) {
1281 _internal_set_src(value);
1286inline bool TransferResponse::_internal_has_dest()
const {
1287 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
1290inline bool TransferResponse::has_dest()
const {
1291 return _internal_has_dest();
1293inline void TransferResponse::clear_dest() {
1295 _impl_._has_bits_[0] &= ~0x00000002u;
1297inline int32_t TransferResponse::_internal_dest()
const {
1298 return _impl_.dest_;
1300inline int32_t TransferResponse::dest()
const {
1302 return _internal_dest();
1304inline void TransferResponse::_internal_set_dest(int32_t value) {
1305 _impl_._has_bits_[0] |= 0x00000002u;
1306 _impl_.dest_ = value;
1308inline void TransferResponse::set_dest(int32_t value) {
1309 _internal_set_dest(value);
1314inline bool TransferResponse::_internal_has_transfer_successful()
const {
1315 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
1318inline bool TransferResponse::has_transfer_successful()
const {
1319 return _internal_has_transfer_successful();
1321inline void TransferResponse::clear_transfer_successful() {
1322 _impl_.transfer_successful_ =
false;
1323 _impl_._has_bits_[0] &= ~0x00000004u;
1325inline bool TransferResponse::_internal_transfer_successful()
const {
1326 return _impl_.transfer_successful_;
1328inline bool TransferResponse::transfer_successful()
const {
1330 return _internal_transfer_successful();
1332inline void TransferResponse::_internal_set_transfer_successful(
bool value) {
1333 _impl_._has_bits_[0] |= 0x00000004u;
1334 _impl_.transfer_successful_ = value;
1336inline void TransferResponse::set_transfer_successful(
bool value) {
1337 _internal_set_transfer_successful(value);
1342inline bool TransferResponse::_internal_has_error()
const {
1343 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
1346inline bool TransferResponse::has_error()
const {
1347 return _internal_has_error();
1349inline void TransferResponse::clear_error() {
1351 _impl_._has_bits_[0] &= ~0x00000010u;
1353inline ::goby::acomms::protobuf::TransferResponse_ErrorCode TransferResponse::_internal_error()
const {
1356inline ::goby::acomms::protobuf::TransferResponse_ErrorCode TransferResponse::error()
const {
1358 return _internal_error();
1362 _impl_._has_bits_[0] |= 0x00000010u;
1363 _impl_.error_ = value;
1366 _internal_set_error(value);
1371inline bool TransferResponse::_internal_has_num_fragments()
const {
1372 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
1375inline bool TransferResponse::has_num_fragments()
const {
1376 return _internal_has_num_fragments();
1378inline void TransferResponse::clear_num_fragments() {
1379 _impl_.num_fragments_ = 0;
1380 _impl_._has_bits_[0] &= ~0x00000008u;
1382inline int32_t TransferResponse::_internal_num_fragments()
const {
1383 return _impl_.num_fragments_;
1385inline int32_t TransferResponse::num_fragments()
const {
1387 return _internal_num_fragments();
1389inline void TransferResponse::_internal_set_num_fragments(int32_t value) {
1390 _impl_._has_bits_[0] |= 0x00000008u;
1391 _impl_.num_fragments_ = value;
1393inline void TransferResponse::set_num_fragments(int32_t value) {
1394 _internal_set_num_fragments(value);
1399 #pragma GCC diagnostic pop
1412PROTOBUF_NAMESPACE_OPEN
1417 return ::goby::acomms::protobuf::TransferRequest_PushPull_descriptor();
1422 return ::goby::acomms::protobuf::TransferResponse_ErrorCode_descriptor();
1425PROTOBUF_NAMESPACE_CLOSE
1429#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)
std::string * mutable_data()
@ kIsLastFragmentFieldNumber
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[]