Goby3 3.1.5a
2024.05.23
Loading...
Searching...
No Matches
file_transfer.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: goby/acomms/protobuf/file_transfer.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto
6
7#include <limits>
8#include <string>
9
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
14#error your headers.
15#endif
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.
20#endif
21
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> // IWYU pragma: export
31#include <google/protobuf/extension_set.h> // IWYU pragma: export
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>
40// @@protoc_insertion_point(includes)
41#include <google/protobuf/port_def.inc>
42#define PROTOBUF_INTERNAL_EXPORT_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto
43PROTOBUF_NAMESPACE_OPEN
44namespace internal {
45class AnyMetadata;
46} // namespace internal
47PROTOBUF_NAMESPACE_CLOSE
48
49// Internal implementation detail -- do not use these members.
53extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto;
54namespace goby {
55namespace acomms {
56namespace protobuf {
57class FileFragment;
58struct FileFragmentDefaultTypeInternal;
59extern FileFragmentDefaultTypeInternal _FileFragment_default_instance_;
60class TransferRequest;
61struct TransferRequestDefaultTypeInternal;
62extern TransferRequestDefaultTypeInternal _TransferRequest_default_instance_;
63class TransferResponse;
64struct TransferResponseDefaultTypeInternal;
65extern TransferResponseDefaultTypeInternal _TransferResponse_default_instance_;
66} // namespace protobuf
67} // namespace acomms
68} // namespace goby
69PROTOBUF_NAMESPACE_OPEN
70template<> ::goby::acomms::protobuf::FileFragment* Arena::CreateMaybeMessage<::goby::acomms::protobuf::FileFragment>(Arena*);
71template<> ::goby::acomms::protobuf::TransferRequest* Arena::CreateMaybeMessage<::goby::acomms::protobuf::TransferRequest>(Arena*);
72template<> ::goby::acomms::protobuf::TransferResponse* Arena::CreateMaybeMessage<::goby::acomms::protobuf::TransferResponse>(Arena*);
73PROTOBUF_NAMESPACE_CLOSE
74namespace goby {
75namespace acomms {
76namespace protobuf {
77
86
87const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* TransferRequest_PushPull_descriptor();
88template<typename T>
89inline const std::string& TransferRequest_PushPull_Name(T enum_t_value) {
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(
95}
97 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, TransferRequest_PushPull* value) {
98 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<TransferRequest_PushPull>(
100}
113
114const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* TransferResponse_ErrorCode_descriptor();
115template<typename T>
116inline const std::string& TransferResponse_ErrorCode_Name(T enum_t_value) {
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(
122}
124 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, TransferResponse_ErrorCode* value) {
125 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<TransferResponse_ErrorCode>(
127}
128// ===================================================================
129
130class FileFragment final :
131 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.acomms.protobuf.FileFragment) */ {
132 public:
133 inline FileFragment() : FileFragment(nullptr) {}
134 ~FileFragment() override;
135 explicit PROTOBUF_CONSTEXPR FileFragment(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
136
138 FileFragment(FileFragment&& from) noexcept
139 : FileFragment() {
140 *this = ::std::move(from);
141 }
142
143 inline FileFragment& operator=(const FileFragment& from) {
144 CopyFrom(from);
145 return *this;
146 }
147 inline FileFragment& operator=(FileFragment&& from) noexcept {
148 if (this == &from) return *this;
149 if (GetOwningArena() == from.GetOwningArena()
150 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
151 && GetOwningArena() != nullptr
152 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
153 ) {
154 InternalSwap(&from);
155 } else {
156 CopyFrom(from);
157 }
158 return *this;
159 }
160
161 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
162 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
163 }
164 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
165 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
166 }
167
168 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
169 return GetDescriptor();
170 }
171 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
172 return default_instance().GetMetadata().descriptor;
173 }
174 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
175 return default_instance().GetMetadata().reflection;
176 }
179 }
181 return reinterpret_cast<const FileFragment*>(
183 }
184 static constexpr int kIndexInFileMessages =
185 0;
186
187 friend void swap(FileFragment& a, FileFragment& b) {
188 a.Swap(&b);
189 }
190 inline void Swap(FileFragment* other) {
191 if (other == this) return;
192 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
193 if (GetOwningArena() != nullptr &&
194 GetOwningArena() == other->GetOwningArena()) {
195 #else // PROTOBUF_FORCE_COPY_IN_SWAP
196 if (GetOwningArena() == other->GetOwningArena()) {
197 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
198 InternalSwap(other);
199 } else {
200 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
201 }
202 }
204 if (other == this) return;
205 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
206 InternalSwap(other);
207 }
208
209 // implements Message ----------------------------------------------
210
211 FileFragment* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
212 return CreateMaybeMessage<FileFragment>(arena);
213 }
214 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
215 void CopyFrom(const FileFragment& from);
216 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
217 void MergeFrom( const FileFragment& from) {
218 FileFragment::MergeImpl(*this, from);
219 }
220 private:
221 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
222 public:
223 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
224 bool IsInitialized() const final;
225
226 size_t ByteSizeLong() const final;
227 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
229 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
230 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
231
232 private:
233 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
234 void SharedDtor();
235 void SetCachedSize(int size) const final;
236 void InternalSwap(FileFragment* other);
237
238 private:
239 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
240 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
241 return "goby.acomms.protobuf.FileFragment";
242 }
243 protected:
244 explicit FileFragment(::PROTOBUF_NAMESPACE_ID::Arena* arena,
245 bool is_message_owned = false);
246 public:
247
248 static const ClassData _class_data_;
249 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
250
251 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
252
253 // nested types ----------------------------------------------------
254
255 // accessors -------------------------------------------------------
256
257 enum : int {
264 };
265 // required bytes data = 6 [(.dccl.field) = {
266 bool has_data() const;
267 private:
268 bool _internal_has_data() const;
269 public:
270 void clear_data();
271 const std::string& data() const;
272 template <typename ArgT0 = const std::string&, typename... ArgT>
273 void set_data(ArgT0&& arg0, ArgT... args);
274 std::string* mutable_data();
275 PROTOBUF_NODISCARD std::string* release_data();
276 void set_allocated_data(std::string* data);
277 private:
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();
281 public:
282
283 // required int32 src = 1 [(.dccl.field) = {
284 bool has_src() const;
285 private:
286 bool _internal_has_src() const;
287 public:
288 void clear_src();
289 int32_t src() const;
290 void set_src(int32_t value);
291 private:
292 int32_t _internal_src() const;
293 void _internal_set_src(int32_t value);
294 public:
295
296 // required int32 dest = 2 [(.dccl.field) = {
297 bool has_dest() const;
298 private:
299 bool _internal_has_dest() const;
300 public:
301 void clear_dest();
302 int32_t dest() const;
303 void set_dest(int32_t value);
304 private:
305 int32_t _internal_dest() const;
306 void _internal_set_dest(int32_t value);
307 public:
308
309 // required int32 fragment = 3 [(.dccl.field) = {
310 bool has_fragment() const;
311 private:
312 bool _internal_has_fragment() const;
313 public:
314 void clear_fragment();
315 int32_t fragment() const;
316 void set_fragment(int32_t value);
317 private:
318 int32_t _internal_fragment() const;
319 void _internal_set_fragment(int32_t value);
320 public:
321
322 // required bool is_last_fragment = 4;
323 bool has_is_last_fragment() const;
324 private:
325 bool _internal_has_is_last_fragment() const;
326 public:
328 bool is_last_fragment() const;
329 void set_is_last_fragment(bool value);
330 private:
331 bool _internal_is_last_fragment() const;
332 void _internal_set_is_last_fragment(bool value);
333 public:
334
335 // required int32 num_bytes = 5 [(.dccl.field) = {
336 bool has_num_bytes() const;
337 private:
338 bool _internal_has_num_bytes() const;
339 public:
340 void clear_num_bytes();
341 int32_t num_bytes() const;
342 void set_num_bytes(int32_t value);
343 private:
344 int32_t _internal_num_bytes() const;
345 void _internal_set_num_bytes(int32_t value);
346 public:
347
349 // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.FileFragment)
350 private:
351 class _Internal;
352
353 // helper for ByteSizeLong()
354 size_t RequiredFieldsByteSizeFallback() const;
355
356 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
357 typedef void InternalArenaConstructable_;
358 typedef void DestructorSkippable_;
359 struct Impl_ {
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_;
363 int32_t src_;
364 int32_t dest_;
365 int32_t fragment_;
366 bool is_last_fragment_;
367 int32_t num_bytes_;
368 };
369 union { Impl_ _impl_; };
370 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto;
371};
372// -------------------------------------------------------------------
373
374class TransferRequest final :
375 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.acomms.protobuf.TransferRequest) */ {
376 public:
377 inline TransferRequest() : TransferRequest(nullptr) {}
379 explicit PROTOBUF_CONSTEXPR TransferRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
380
383 : TransferRequest() {
384 *this = ::std::move(from);
385 }
386
388 CopyFrom(from);
389 return *this;
390 }
391 inline TransferRequest& operator=(TransferRequest&& from) noexcept {
392 if (this == &from) return *this;
393 if (GetOwningArena() == from.GetOwningArena()
394 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
395 && GetOwningArena() != nullptr
396 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
397 ) {
398 InternalSwap(&from);
399 } else {
400 CopyFrom(from);
401 }
402 return *this;
403 }
404
405 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
406 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
407 }
408 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
409 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
410 }
411
412 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
413 return GetDescriptor();
414 }
415 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
416 return default_instance().GetMetadata().descriptor;
417 }
418 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
419 return default_instance().GetMetadata().reflection;
420 }
422 return *internal_default_instance();
423 }
425 return reinterpret_cast<const TransferRequest*>(
427 }
428 static constexpr int kIndexInFileMessages =
429 1;
430
432 a.Swap(&b);
433 }
434 inline void Swap(TransferRequest* other) {
435 if (other == this) return;
436 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
437 if (GetOwningArena() != nullptr &&
438 GetOwningArena() == other->GetOwningArena()) {
439 #else // PROTOBUF_FORCE_COPY_IN_SWAP
440 if (GetOwningArena() == other->GetOwningArena()) {
441 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
442 InternalSwap(other);
443 } else {
444 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
445 }
446 }
448 if (other == this) return;
449 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
450 InternalSwap(other);
451 }
452
453 // implements Message ----------------------------------------------
454
455 TransferRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
456 return CreateMaybeMessage<TransferRequest>(arena);
457 }
458 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
459 void CopyFrom(const TransferRequest& from);
460 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
461 void MergeFrom( const TransferRequest& from) {
462 TransferRequest::MergeImpl(*this, from);
463 }
464 private:
465 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
466 public:
467 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
468 bool IsInitialized() const final;
469
470 size_t ByteSizeLong() 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(); }
475
476 private:
477 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
478 void SharedDtor();
479 void SetCachedSize(int size) const final;
480 void InternalSwap(TransferRequest* other);
481
482 private:
483 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
484 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
485 return "goby.acomms.protobuf.TransferRequest";
486 }
487 protected:
488 explicit TransferRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
489 bool is_message_owned = false);
490 public:
491
492 static const ClassData _class_data_;
493 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
494
495 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
496
497 // nested types ----------------------------------------------------
498
500 static constexpr PushPull PUSH =
501 TransferRequest_PushPull_PUSH;
502 static constexpr PushPull PULL =
503 TransferRequest_PushPull_PULL;
504 static inline bool PushPull_IsValid(int value) {
506 }
507 static constexpr PushPull PushPull_MIN =
509 static constexpr PushPull PushPull_MAX =
511 static constexpr int PushPull_ARRAYSIZE =
513 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
517 template<typename T>
518 static inline const std::string& PushPull_Name(T enum_t_value) {
519 static_assert(::std::is_same<T, PushPull>::value ||
520 ::std::is_integral<T>::value,
521 "Incorrect type passed to function PushPull_Name.");
522 return TransferRequest_PushPull_Name(enum_t_value);
523 }
524 static inline bool PushPull_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
525 PushPull* value) {
526 return TransferRequest_PushPull_Parse(name, value);
527 }
528
529 // accessors -------------------------------------------------------
530
531 enum : int {
532 kFileFieldNumber = 10,
533 kSrcFieldNumber = 1,
534 kDestFieldNumber = 2,
535 kPushOrPullFieldNumber = 3,
536 };
537 // required string file = 10 [(.dccl.field) = {
538 bool has_file() const;
539 private:
540 bool _internal_has_file() const;
541 public:
542 void clear_file();
543 const std::string& file() const;
544 template <typename ArgT0 = const std::string&, typename... ArgT>
545 void set_file(ArgT0&& arg0, ArgT... args);
546 std::string* mutable_file();
547 PROTOBUF_NODISCARD std::string* release_file();
548 void set_allocated_file(std::string* file);
549 private:
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();
553 public:
554
555 // required int32 src = 1 [(.dccl.field) = {
556 bool has_src() const;
557 private:
558 bool _internal_has_src() const;
559 public:
560 void clear_src();
561 int32_t src() const;
562 void set_src(int32_t value);
563 private:
564 int32_t _internal_src() const;
565 void _internal_set_src(int32_t value);
566 public:
567
568 // required int32 dest = 2 [(.dccl.field) = {
569 bool has_dest() const;
570 private:
571 bool _internal_has_dest() const;
572 public:
573 void clear_dest();
574 int32_t dest() const;
575 void set_dest(int32_t value);
576 private:
577 int32_t _internal_dest() const;
578 void _internal_set_dest(int32_t value);
579 public:
580
581 // required .goby.acomms.protobuf.TransferRequest.PushPull push_or_pull = 3 [(.dccl.field) = {
582 bool has_push_or_pull() const;
583 private:
584 bool _internal_has_push_or_pull() const;
585 public:
586 void clear_push_or_pull();
588 void set_push_or_pull(::goby::acomms::protobuf::TransferRequest_PushPull value);
589 private:
590 ::goby::acomms::protobuf::TransferRequest_PushPull _internal_push_or_pull() const;
591 void _internal_set_push_or_pull(::goby::acomms::protobuf::TransferRequest_PushPull value);
592 public:
593
594 enum DCCLParameters { DCCL_ID = 8, DCCL_MAX_BYTES = 64 };
595 // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.TransferRequest)
596 private:
597 class _Internal;
598
599 // helper for ByteSizeLong()
600 size_t RequiredFieldsByteSizeFallback() const;
601
602 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
603 typedef void InternalArenaConstructable_;
604 typedef void DestructorSkippable_;
605 struct Impl_ {
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_;
609 int32_t src_;
610 int32_t dest_;
611 int push_or_pull_;
612 };
613 union { Impl_ _impl_; };
614 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto;
615};
616// -------------------------------------------------------------------
617
618class TransferResponse final :
619 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.acomms.protobuf.TransferResponse) */ {
620 public:
621 inline TransferResponse() : TransferResponse(nullptr) {}
623 explicit PROTOBUF_CONSTEXPR TransferResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
624
627 : TransferResponse() {
628 *this = ::std::move(from);
629 }
630
632 CopyFrom(from);
633 return *this;
634 }
635 inline TransferResponse& operator=(TransferResponse&& from) noexcept {
636 if (this == &from) return *this;
637 if (GetOwningArena() == from.GetOwningArena()
638 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
639 && GetOwningArena() != nullptr
640 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
641 ) {
642 InternalSwap(&from);
643 } else {
644 CopyFrom(from);
645 }
646 return *this;
647 }
648
649 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
650 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
651 }
652 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
653 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
654 }
655
656 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
657 return GetDescriptor();
658 }
659 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
660 return default_instance().GetMetadata().descriptor;
661 }
662 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
663 return default_instance().GetMetadata().reflection;
664 }
666 return *internal_default_instance();
667 }
669 return reinterpret_cast<const TransferResponse*>(
671 }
672 static constexpr int kIndexInFileMessages =
673 2;
674
676 a.Swap(&b);
677 }
678 inline void Swap(TransferResponse* other) {
679 if (other == this) return;
680 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
681 if (GetOwningArena() != nullptr &&
682 GetOwningArena() == other->GetOwningArena()) {
683 #else // PROTOBUF_FORCE_COPY_IN_SWAP
684 if (GetOwningArena() == other->GetOwningArena()) {
685 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
686 InternalSwap(other);
687 } else {
688 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
689 }
690 }
692 if (other == this) return;
693 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
694 InternalSwap(other);
695 }
696
697 // implements Message ----------------------------------------------
698
699 TransferResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
700 return CreateMaybeMessage<TransferResponse>(arena);
701 }
702 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
703 void CopyFrom(const TransferResponse& from);
704 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
705 void MergeFrom( const TransferResponse& from) {
706 TransferResponse::MergeImpl(*this, from);
707 }
708 private:
709 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
710 public:
711 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
712 bool IsInitialized() const final;
713
714 size_t ByteSizeLong() 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(); }
719
720 private:
721 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
722 void SharedDtor();
723 void SetCachedSize(int size) const final;
724 void InternalSwap(TransferResponse* other);
725
726 private:
727 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
728 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
729 return "goby.acomms.protobuf.TransferResponse";
730 }
731 protected:
732 explicit TransferResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena,
733 bool is_message_owned = false);
734 public:
735
736 static const ClassData _class_data_;
737 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
738
739 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
740
741 // nested types ----------------------------------------------------
742
744 static constexpr ErrorCode COULD_NOT_READ_FILE =
745 TransferResponse_ErrorCode_COULD_NOT_READ_FILE;
746 static constexpr ErrorCode FILE_TOO_LARGE =
747 TransferResponse_ErrorCode_FILE_TOO_LARGE;
748 static constexpr ErrorCode TIMEOUT =
749 TransferResponse_ErrorCode_TIMEOUT;
750 static constexpr ErrorCode COULD_NOT_WRITE_FILE =
751 TransferResponse_ErrorCode_COULD_NOT_WRITE_FILE;
752 static constexpr ErrorCode ERROR_WHILE_READING =
753 TransferResponse_ErrorCode_ERROR_WHILE_READING;
754 static constexpr ErrorCode OTHER_ERROR =
755 TransferResponse_ErrorCode_OTHER_ERROR;
756 static inline bool ErrorCode_IsValid(int value) {
758 }
759 static constexpr ErrorCode ErrorCode_MIN =
761 static constexpr ErrorCode ErrorCode_MAX =
763 static constexpr int ErrorCode_ARRAYSIZE =
765 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
769 template<typename T>
770 static inline const std::string& ErrorCode_Name(T enum_t_value) {
771 static_assert(::std::is_same<T, ErrorCode>::value ||
772 ::std::is_integral<T>::value,
773 "Incorrect type passed to function ErrorCode_Name.");
774 return TransferResponse_ErrorCode_Name(enum_t_value);
775 }
776 static inline bool ErrorCode_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
777 ErrorCode* value) {
778 return TransferResponse_ErrorCode_Parse(name, value);
779 }
780
781 // accessors -------------------------------------------------------
782
783 enum : int {
784 kSrcFieldNumber = 1,
785 kDestFieldNumber = 2,
786 kTransferSuccessfulFieldNumber = 3,
787 kNumFragmentsFieldNumber = 5,
788 kErrorFieldNumber = 4,
789 };
790 // required int32 src = 1 [(.dccl.field) = {
791 bool has_src() const;
792 private:
793 bool _internal_has_src() const;
794 public:
795 void clear_src();
796 int32_t src() const;
797 void set_src(int32_t value);
798 private:
799 int32_t _internal_src() const;
800 void _internal_set_src(int32_t value);
801 public:
802
803 // required int32 dest = 2 [(.dccl.field) = {
804 bool has_dest() const;
805 private:
806 bool _internal_has_dest() const;
807 public:
808 void clear_dest();
809 int32_t dest() const;
810 void set_dest(int32_t value);
811 private:
812 int32_t _internal_dest() const;
813 void _internal_set_dest(int32_t value);
814 public:
815
816 // required bool transfer_successful = 3;
817 bool has_transfer_successful() const;
818 private:
819 bool _internal_has_transfer_successful() const;
820 public:
821 void clear_transfer_successful();
822 bool transfer_successful() const;
823 void set_transfer_successful(bool value);
824 private:
825 bool _internal_transfer_successful() const;
826 void _internal_set_transfer_successful(bool value);
827 public:
828
829 // optional int32 num_fragments = 5 [(.dccl.field) = {
830 bool has_num_fragments() const;
831 private:
832 bool _internal_has_num_fragments() const;
833 public:
834 void clear_num_fragments();
835 int32_t num_fragments() const;
836 void set_num_fragments(int32_t value);
837 private:
838 int32_t _internal_num_fragments() const;
839 void _internal_set_num_fragments(int32_t value);
840 public:
841
842 // optional .goby.acomms.protobuf.TransferResponse.ErrorCode error = 4;
843 bool has_error() const;
844 private:
845 bool _internal_has_error() const;
846 public:
847 void clear_error();
850 private:
852 void _internal_set_error(::goby::acomms::protobuf::TransferResponse_ErrorCode value);
853 public:
854
855 enum DCCLParameters { DCCL_ID = 9, DCCL_MAX_BYTES = 64 };
856 // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.TransferResponse)
857 private:
858 class _Internal;
859
860 // helper for ByteSizeLong()
861 size_t RequiredFieldsByteSizeFallback() const;
862
863 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
864 typedef void InternalArenaConstructable_;
865 typedef void DestructorSkippable_;
866 struct Impl_ {
867 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
868 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
869 int32_t src_;
870 int32_t dest_;
871 bool transfer_successful_;
872 int32_t num_fragments_;
873 int error_;
874 };
875 union { Impl_ _impl_; };
876 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto;
877};
878// ===================================================================
879
880
881// ===================================================================
882
883#ifdef __GNUC__
884 #pragma GCC diagnostic push
885 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
886#endif // __GNUC__
887// FileFragment
888
889// required int32 src = 1 [(.dccl.field) = {
890inline bool FileFragment::_internal_has_src() const {
891 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
892 return value;
893}
894inline bool FileFragment::has_src() const {
895 return _internal_has_src();
896}
897inline void FileFragment::clear_src() {
898 _impl_.src_ = 0;
899 _impl_._has_bits_[0] &= ~0x00000002u;
900}
901inline int32_t FileFragment::_internal_src() const {
902 return _impl_.src_;
903}
904inline int32_t FileFragment::src() const {
905 // @@protoc_insertion_point(field_get:goby.acomms.protobuf.FileFragment.src)
906 return _internal_src();
907}
908inline void FileFragment::_internal_set_src(int32_t value) {
909 _impl_._has_bits_[0] |= 0x00000002u;
910 _impl_.src_ = value;
911}
912inline void FileFragment::set_src(int32_t value) {
913 _internal_set_src(value);
914 // @@protoc_insertion_point(field_set:goby.acomms.protobuf.FileFragment.src)
915}
916
917// required int32 dest = 2 [(.dccl.field) = {
918inline bool FileFragment::_internal_has_dest() const {
919 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
920 return value;
921}
922inline bool FileFragment::has_dest() const {
923 return _internal_has_dest();
924}
925inline void FileFragment::clear_dest() {
926 _impl_.dest_ = 0;
927 _impl_._has_bits_[0] &= ~0x00000004u;
928}
929inline int32_t FileFragment::_internal_dest() const {
930 return _impl_.dest_;
931}
932inline int32_t FileFragment::dest() const {
933 // @@protoc_insertion_point(field_get:goby.acomms.protobuf.FileFragment.dest)
934 return _internal_dest();
935}
936inline void FileFragment::_internal_set_dest(int32_t value) {
937 _impl_._has_bits_[0] |= 0x00000004u;
938 _impl_.dest_ = value;
939}
940inline void FileFragment::set_dest(int32_t value) {
941 _internal_set_dest(value);
942 // @@protoc_insertion_point(field_set:goby.acomms.protobuf.FileFragment.dest)
943}
944
945// required int32 fragment = 3 [(.dccl.field) = {
946inline bool FileFragment::_internal_has_fragment() const {
947 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
948 return value;
949}
950inline bool FileFragment::has_fragment() const {
951 return _internal_has_fragment();
952}
953inline void FileFragment::clear_fragment() {
954 _impl_.fragment_ = 0;
955 _impl_._has_bits_[0] &= ~0x00000008u;
956}
957inline int32_t FileFragment::_internal_fragment() const {
958 return _impl_.fragment_;
959}
960inline int32_t FileFragment::fragment() const {
961 // @@protoc_insertion_point(field_get:goby.acomms.protobuf.FileFragment.fragment)
962 return _internal_fragment();
963}
964inline void FileFragment::_internal_set_fragment(int32_t value) {
965 _impl_._has_bits_[0] |= 0x00000008u;
966 _impl_.fragment_ = value;
967}
968inline void FileFragment::set_fragment(int32_t value) {
969 _internal_set_fragment(value);
970 // @@protoc_insertion_point(field_set:goby.acomms.protobuf.FileFragment.fragment)
971}
972
973// required bool is_last_fragment = 4;
974inline bool FileFragment::_internal_has_is_last_fragment() const {
975 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
976 return value;
977}
978inline bool FileFragment::has_is_last_fragment() const {
979 return _internal_has_is_last_fragment();
980}
981inline void FileFragment::clear_is_last_fragment() {
982 _impl_.is_last_fragment_ = false;
983 _impl_._has_bits_[0] &= ~0x00000010u;
984}
985inline bool FileFragment::_internal_is_last_fragment() const {
986 return _impl_.is_last_fragment_;
987}
988inline bool FileFragment::is_last_fragment() const {
989 // @@protoc_insertion_point(field_get:goby.acomms.protobuf.FileFragment.is_last_fragment)
990 return _internal_is_last_fragment();
991}
992inline void FileFragment::_internal_set_is_last_fragment(bool value) {
993 _impl_._has_bits_[0] |= 0x00000010u;
994 _impl_.is_last_fragment_ = value;
995}
996inline void FileFragment::set_is_last_fragment(bool value) {
997 _internal_set_is_last_fragment(value);
998 // @@protoc_insertion_point(field_set:goby.acomms.protobuf.FileFragment.is_last_fragment)
999}
1000
1001// required int32 num_bytes = 5 [(.dccl.field) = {
1002inline bool FileFragment::_internal_has_num_bytes() const {
1003 bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
1004 return value;
1005}
1006inline bool FileFragment::has_num_bytes() const {
1007 return _internal_has_num_bytes();
1008}
1009inline void FileFragment::clear_num_bytes() {
1010 _impl_.num_bytes_ = 0;
1011 _impl_._has_bits_[0] &= ~0x00000020u;
1012}
1013inline int32_t FileFragment::_internal_num_bytes() const {
1014 return _impl_.num_bytes_;
1015}
1016inline int32_t FileFragment::num_bytes() const {
1017 // @@protoc_insertion_point(field_get:goby.acomms.protobuf.FileFragment.num_bytes)
1018 return _internal_num_bytes();
1019}
1020inline void FileFragment::_internal_set_num_bytes(int32_t value) {
1021 _impl_._has_bits_[0] |= 0x00000020u;
1022 _impl_.num_bytes_ = value;
1023}
1024inline void FileFragment::set_num_bytes(int32_t value) {
1025 _internal_set_num_bytes(value);
1026 // @@protoc_insertion_point(field_set:goby.acomms.protobuf.FileFragment.num_bytes)
1027}
1028
1029// required bytes data = 6 [(.dccl.field) = {
1030inline bool FileFragment::_internal_has_data() const {
1031 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
1032 return value;
1033}
1034inline bool FileFragment::has_data() const {
1035 return _internal_has_data();
1036}
1037inline void FileFragment::clear_data() {
1038 _impl_.data_.ClearToEmpty();
1039 _impl_._has_bits_[0] &= ~0x00000001u;
1040}
1041inline const std::string& FileFragment::data() const {
1042 // @@protoc_insertion_point(field_get:goby.acomms.protobuf.FileFragment.data)
1043 return _internal_data();
1044}
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());
1050 // @@protoc_insertion_point(field_set:goby.acomms.protobuf.FileFragment.data)
1051}
1052inline std::string* FileFragment::mutable_data() {
1053 std::string* _s = _internal_mutable_data();
1054 // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.FileFragment.data)
1055 return _s;
1056}
1057inline const std::string& FileFragment::_internal_data() const {
1058 return _impl_.data_.Get();
1059}
1060inline void FileFragment::_internal_set_data(const std::string& value) {
1061 _impl_._has_bits_[0] |= 0x00000001u;
1062 _impl_.data_.Set(value, GetArenaForAllocation());
1063}
1064inline std::string* FileFragment::_internal_mutable_data() {
1065 _impl_._has_bits_[0] |= 0x00000001u;
1066 return _impl_.data_.Mutable(GetArenaForAllocation());
1067}
1068inline std::string* FileFragment::release_data() {
1069 // @@protoc_insertion_point(field_release:goby.acomms.protobuf.FileFragment.data)
1070 if (!_internal_has_data()) {
1071 return nullptr;
1072 }
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());
1078 }
1079#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1080 return p;
1081}
1082inline void FileFragment::set_allocated_data(std::string* data) {
1083 if (data != nullptr) {
1084 _impl_._has_bits_[0] |= 0x00000001u;
1085 } else {
1086 _impl_._has_bits_[0] &= ~0x00000001u;
1087 }
1088 _impl_.data_.SetAllocated(data, GetArenaForAllocation());
1089#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1090 if (_impl_.data_.IsDefault()) {
1091 _impl_.data_.Set("", GetArenaForAllocation());
1092 }
1093#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1094 // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.FileFragment.data)
1095}
1096
1097// -------------------------------------------------------------------
1098
1099// TransferRequest
1100
1101// required int32 src = 1 [(.dccl.field) = {
1102inline bool TransferRequest::_internal_has_src() const {
1103 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
1104 return value;
1105}
1106inline bool TransferRequest::has_src() const {
1107 return _internal_has_src();
1108}
1109inline void TransferRequest::clear_src() {
1110 _impl_.src_ = 0;
1111 _impl_._has_bits_[0] &= ~0x00000002u;
1112}
1113inline int32_t TransferRequest::_internal_src() const {
1114 return _impl_.src_;
1115}
1116inline int32_t TransferRequest::src() const {
1117 // @@protoc_insertion_point(field_get:goby.acomms.protobuf.TransferRequest.src)
1118 return _internal_src();
1119}
1120inline void TransferRequest::_internal_set_src(int32_t value) {
1121 _impl_._has_bits_[0] |= 0x00000002u;
1122 _impl_.src_ = value;
1123}
1124inline void TransferRequest::set_src(int32_t value) {
1125 _internal_set_src(value);
1126 // @@protoc_insertion_point(field_set:goby.acomms.protobuf.TransferRequest.src)
1127}
1128
1129// required int32 dest = 2 [(.dccl.field) = {
1130inline bool TransferRequest::_internal_has_dest() const {
1131 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
1132 return value;
1133}
1134inline bool TransferRequest::has_dest() const {
1135 return _internal_has_dest();
1136}
1137inline void TransferRequest::clear_dest() {
1138 _impl_.dest_ = 0;
1139 _impl_._has_bits_[0] &= ~0x00000004u;
1140}
1141inline int32_t TransferRequest::_internal_dest() const {
1142 return _impl_.dest_;
1143}
1144inline int32_t TransferRequest::dest() const {
1145 // @@protoc_insertion_point(field_get:goby.acomms.protobuf.TransferRequest.dest)
1146 return _internal_dest();
1147}
1148inline void TransferRequest::_internal_set_dest(int32_t value) {
1149 _impl_._has_bits_[0] |= 0x00000004u;
1150 _impl_.dest_ = value;
1151}
1152inline void TransferRequest::set_dest(int32_t value) {
1153 _internal_set_dest(value);
1154 // @@protoc_insertion_point(field_set:goby.acomms.protobuf.TransferRequest.dest)
1155}
1156
1157// required .goby.acomms.protobuf.TransferRequest.PushPull push_or_pull = 3 [(.dccl.field) = {
1158inline bool TransferRequest::_internal_has_push_or_pull() const {
1159 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
1160 return value;
1161}
1162inline bool TransferRequest::has_push_or_pull() const {
1163 return _internal_has_push_or_pull();
1164}
1165inline void TransferRequest::clear_push_or_pull() {
1166 _impl_.push_or_pull_ = 1;
1167 _impl_._has_bits_[0] &= ~0x00000008u;
1168}
1169inline ::goby::acomms::protobuf::TransferRequest_PushPull TransferRequest::_internal_push_or_pull() const {
1170 return static_cast< ::goby::acomms::protobuf::TransferRequest_PushPull >(_impl_.push_or_pull_);
1171}
1172inline ::goby::acomms::protobuf::TransferRequest_PushPull TransferRequest::push_or_pull() const {
1173 // @@protoc_insertion_point(field_get:goby.acomms.protobuf.TransferRequest.push_or_pull)
1174 return _internal_push_or_pull();
1175}
1176inline void TransferRequest::_internal_set_push_or_pull(::goby::acomms::protobuf::TransferRequest_PushPull value) {
1178 _impl_._has_bits_[0] |= 0x00000008u;
1179 _impl_.push_or_pull_ = value;
1180}
1181inline void TransferRequest::set_push_or_pull(::goby::acomms::protobuf::TransferRequest_PushPull value) {
1182 _internal_set_push_or_pull(value);
1183 // @@protoc_insertion_point(field_set:goby.acomms.protobuf.TransferRequest.push_or_pull)
1184}
1185
1186// required string file = 10 [(.dccl.field) = {
1187inline bool TransferRequest::_internal_has_file() const {
1188 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
1189 return value;
1190}
1191inline bool TransferRequest::has_file() const {
1192 return _internal_has_file();
1193}
1194inline void TransferRequest::clear_file() {
1195 _impl_.file_.ClearToEmpty();
1196 _impl_._has_bits_[0] &= ~0x00000001u;
1197}
1198inline const std::string& TransferRequest::file() const {
1199 // @@protoc_insertion_point(field_get:goby.acomms.protobuf.TransferRequest.file)
1200 return _internal_file();
1201}
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());
1207 // @@protoc_insertion_point(field_set:goby.acomms.protobuf.TransferRequest.file)
1208}
1209inline std::string* TransferRequest::mutable_file() {
1210 std::string* _s = _internal_mutable_file();
1211 // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.TransferRequest.file)
1212 return _s;
1213}
1214inline const std::string& TransferRequest::_internal_file() const {
1215 return _impl_.file_.Get();
1216}
1217inline void TransferRequest::_internal_set_file(const std::string& value) {
1218 _impl_._has_bits_[0] |= 0x00000001u;
1219 _impl_.file_.Set(value, GetArenaForAllocation());
1220}
1221inline std::string* TransferRequest::_internal_mutable_file() {
1222 _impl_._has_bits_[0] |= 0x00000001u;
1223 return _impl_.file_.Mutable(GetArenaForAllocation());
1224}
1225inline std::string* TransferRequest::release_file() {
1226 // @@protoc_insertion_point(field_release:goby.acomms.protobuf.TransferRequest.file)
1227 if (!_internal_has_file()) {
1228 return nullptr;
1229 }
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());
1235 }
1236#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1237 return p;
1238}
1239inline void TransferRequest::set_allocated_file(std::string* file) {
1240 if (file != nullptr) {
1241 _impl_._has_bits_[0] |= 0x00000001u;
1242 } else {
1243 _impl_._has_bits_[0] &= ~0x00000001u;
1244 }
1245 _impl_.file_.SetAllocated(file, GetArenaForAllocation());
1246#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1247 if (_impl_.file_.IsDefault()) {
1248 _impl_.file_.Set("", GetArenaForAllocation());
1249 }
1250#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1251 // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.TransferRequest.file)
1252}
1253
1254// -------------------------------------------------------------------
1255
1256// TransferResponse
1257
1258// required int32 src = 1 [(.dccl.field) = {
1259inline bool TransferResponse::_internal_has_src() const {
1260 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
1261 return value;
1262}
1263inline bool TransferResponse::has_src() const {
1264 return _internal_has_src();
1265}
1266inline void TransferResponse::clear_src() {
1267 _impl_.src_ = 0;
1268 _impl_._has_bits_[0] &= ~0x00000001u;
1269}
1270inline int32_t TransferResponse::_internal_src() const {
1271 return _impl_.src_;
1272}
1273inline int32_t TransferResponse::src() const {
1274 // @@protoc_insertion_point(field_get:goby.acomms.protobuf.TransferResponse.src)
1275 return _internal_src();
1276}
1277inline void TransferResponse::_internal_set_src(int32_t value) {
1278 _impl_._has_bits_[0] |= 0x00000001u;
1279 _impl_.src_ = value;
1280}
1281inline void TransferResponse::set_src(int32_t value) {
1282 _internal_set_src(value);
1283 // @@protoc_insertion_point(field_set:goby.acomms.protobuf.TransferResponse.src)
1284}
1285
1286// required int32 dest = 2 [(.dccl.field) = {
1287inline bool TransferResponse::_internal_has_dest() const {
1288 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
1289 return value;
1290}
1291inline bool TransferResponse::has_dest() const {
1292 return _internal_has_dest();
1293}
1294inline void TransferResponse::clear_dest() {
1295 _impl_.dest_ = 0;
1296 _impl_._has_bits_[0] &= ~0x00000002u;
1297}
1298inline int32_t TransferResponse::_internal_dest() const {
1299 return _impl_.dest_;
1300}
1301inline int32_t TransferResponse::dest() const {
1302 // @@protoc_insertion_point(field_get:goby.acomms.protobuf.TransferResponse.dest)
1303 return _internal_dest();
1304}
1305inline void TransferResponse::_internal_set_dest(int32_t value) {
1306 _impl_._has_bits_[0] |= 0x00000002u;
1307 _impl_.dest_ = value;
1308}
1309inline void TransferResponse::set_dest(int32_t value) {
1310 _internal_set_dest(value);
1311 // @@protoc_insertion_point(field_set:goby.acomms.protobuf.TransferResponse.dest)
1312}
1313
1314// required bool transfer_successful = 3;
1315inline bool TransferResponse::_internal_has_transfer_successful() const {
1316 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
1317 return value;
1318}
1319inline bool TransferResponse::has_transfer_successful() const {
1320 return _internal_has_transfer_successful();
1321}
1322inline void TransferResponse::clear_transfer_successful() {
1323 _impl_.transfer_successful_ = false;
1324 _impl_._has_bits_[0] &= ~0x00000004u;
1325}
1326inline bool TransferResponse::_internal_transfer_successful() const {
1327 return _impl_.transfer_successful_;
1328}
1329inline bool TransferResponse::transfer_successful() const {
1330 // @@protoc_insertion_point(field_get:goby.acomms.protobuf.TransferResponse.transfer_successful)
1331 return _internal_transfer_successful();
1332}
1333inline void TransferResponse::_internal_set_transfer_successful(bool value) {
1334 _impl_._has_bits_[0] |= 0x00000004u;
1335 _impl_.transfer_successful_ = value;
1336}
1337inline void TransferResponse::set_transfer_successful(bool value) {
1338 _internal_set_transfer_successful(value);
1339 // @@protoc_insertion_point(field_set:goby.acomms.protobuf.TransferResponse.transfer_successful)
1340}
1341
1342// optional .goby.acomms.protobuf.TransferResponse.ErrorCode error = 4;
1343inline bool TransferResponse::_internal_has_error() const {
1344 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
1345 return value;
1346}
1347inline bool TransferResponse::has_error() const {
1348 return _internal_has_error();
1349}
1350inline void TransferResponse::clear_error() {
1351 _impl_.error_ = 1;
1352 _impl_._has_bits_[0] &= ~0x00000010u;
1353}
1354inline ::goby::acomms::protobuf::TransferResponse_ErrorCode TransferResponse::_internal_error() const {
1355 return static_cast< ::goby::acomms::protobuf::TransferResponse_ErrorCode >(_impl_.error_);
1356}
1357inline ::goby::acomms::protobuf::TransferResponse_ErrorCode TransferResponse::error() const {
1358 // @@protoc_insertion_point(field_get:goby.acomms.protobuf.TransferResponse.error)
1359 return _internal_error();
1360}
1361inline void TransferResponse::_internal_set_error(::goby::acomms::protobuf::TransferResponse_ErrorCode value) {
1363 _impl_._has_bits_[0] |= 0x00000010u;
1364 _impl_.error_ = value;
1365}
1366inline void TransferResponse::set_error(::goby::acomms::protobuf::TransferResponse_ErrorCode value) {
1367 _internal_set_error(value);
1368 // @@protoc_insertion_point(field_set:goby.acomms.protobuf.TransferResponse.error)
1369}
1370
1371// optional int32 num_fragments = 5 [(.dccl.field) = {
1372inline bool TransferResponse::_internal_has_num_fragments() const {
1373 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
1374 return value;
1375}
1376inline bool TransferResponse::has_num_fragments() const {
1377 return _internal_has_num_fragments();
1378}
1379inline void TransferResponse::clear_num_fragments() {
1380 _impl_.num_fragments_ = 0;
1381 _impl_._has_bits_[0] &= ~0x00000008u;
1382}
1383inline int32_t TransferResponse::_internal_num_fragments() const {
1384 return _impl_.num_fragments_;
1385}
1386inline int32_t TransferResponse::num_fragments() const {
1387 // @@protoc_insertion_point(field_get:goby.acomms.protobuf.TransferResponse.num_fragments)
1388 return _internal_num_fragments();
1389}
1390inline void TransferResponse::_internal_set_num_fragments(int32_t value) {
1391 _impl_._has_bits_[0] |= 0x00000008u;
1392 _impl_.num_fragments_ = value;
1393}
1394inline void TransferResponse::set_num_fragments(int32_t value) {
1395 _internal_set_num_fragments(value);
1396 // @@protoc_insertion_point(field_set:goby.acomms.protobuf.TransferResponse.num_fragments)
1397}
1398
1399#ifdef __GNUC__
1400 #pragma GCC diagnostic pop
1401#endif // __GNUC__
1402// -------------------------------------------------------------------
1403
1404// -------------------------------------------------------------------
1405
1406
1407// @@protoc_insertion_point(namespace_scope)
1408
1409} // namespace protobuf
1410} // namespace acomms
1411} // namespace goby
1412
1413PROTOBUF_NAMESPACE_OPEN
1414
1415template <> struct is_proto_enum< ::goby::acomms::protobuf::TransferRequest_PushPull> : ::std::true_type {};
1416template <>
1418 return ::goby::acomms::protobuf::TransferRequest_PushPull_descriptor();
1419}
1420template <> struct is_proto_enum< ::goby::acomms::protobuf::TransferResponse_ErrorCode> : ::std::true_type {};
1421template <>
1423 return ::goby::acomms::protobuf::TransferResponse_ErrorCode_descriptor();
1424}
1425
1426PROTOBUF_NAMESPACE_CLOSE
1427
1428// @@protoc_insertion_point(global_scope)
1429
1430#include <google/protobuf/port_undef.inc>
1431#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
FileFragment & operator=(const FileFragment &from)
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
static const FileFragment * internal_default_instance()
static const FileFragment & default_instance()
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)
PROTOBUF_NODISCARD std::string * release_data()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void set_data(ArgT0 &&arg0, ArgT... args)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
FileFragment(FileFragment &&from) noexcept
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
void UnsafeArenaSwap(FileFragment *other)
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
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)
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)
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 MergeFrom(const TransferRequest &from)
static const std::string & PushPull_Name(T enum_t_value)
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
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)
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()
bool TransferResponse_ErrorCode_IsValid(int value)
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.
#define ByteSizeLong