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