Goby3  3.1.5
2024.05.14
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 < 3012000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers.
15 #endif
16 #if 3012004 < PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
20 #endif
21 
22 #include <google/protobuf/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/inlined_string_field.h>
29 #include <google/protobuf/metadata_lite.h>
30 #include <google/protobuf/generated_message_reflection.h>
32 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
33 #include <google/protobuf/extension_set.h> // IWYU pragma: export
34 #include <google/protobuf/generated_enum_reflection.h>
35 #include <google/protobuf/unknown_field_set.h>
37 #include "dccl/option_extensions.pb.h"
38 #include <boost/units/quantity.hpp>
39 #include <boost/units/absolute.hpp>
40 #include <boost/units/dimensionless_type.hpp>
41 #include <boost/units/make_scaled_unit.hpp>
42 // @@protoc_insertion_point(includes)
43 #include <google/protobuf/port_def.inc>
44 #define PROTOBUF_INTERNAL_EXPORT_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto
45 PROTOBUF_NAMESPACE_OPEN
46 namespace internal {
47 class AnyMetadata;
48 } // namespace internal
49 PROTOBUF_NAMESPACE_CLOSE
50 
51 // Internal implementation detail -- do not use these members.
53  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
54  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
55  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
56  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
57  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3]
58  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
59  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
60  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
62 };
63 extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto;
64 namespace goby {
65 namespace acomms {
66 namespace protobuf {
67 class FileFragment;
68 class FileFragmentDefaultTypeInternal;
69 extern FileFragmentDefaultTypeInternal _FileFragment_default_instance_;
70 class TransferRequest;
71 class TransferRequestDefaultTypeInternal;
72 extern TransferRequestDefaultTypeInternal _TransferRequest_default_instance_;
73 class TransferResponse;
74 class TransferResponseDefaultTypeInternal;
75 extern TransferResponseDefaultTypeInternal _TransferResponse_default_instance_;
76 } // namespace protobuf
77 } // namespace acomms
78 } // namespace goby
79 PROTOBUF_NAMESPACE_OPEN
80 template<> ::goby::acomms::protobuf::FileFragment* Arena::CreateMaybeMessage<::goby::acomms::protobuf::FileFragment>(Arena*);
81 template<> ::goby::acomms::protobuf::TransferRequest* Arena::CreateMaybeMessage<::goby::acomms::protobuf::TransferRequest>(Arena*);
82 template<> ::goby::acomms::protobuf::TransferResponse* Arena::CreateMaybeMessage<::goby::acomms::protobuf::TransferResponse>(Arena*);
83 PROTOBUF_NAMESPACE_CLOSE
84 namespace goby {
85 namespace acomms {
86 namespace protobuf {
87 
91 };
96 
97 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* TransferRequest_PushPull_descriptor();
98 template<typename T>
99 inline const std::string& TransferRequest_PushPull_Name(T enum_t_value) {
100  static_assert(::std::is_same<T, TransferRequest_PushPull>::value ||
101  ::std::is_integral<T>::value,
102  "Incorrect type passed to function TransferRequest_PushPull_Name.");
103  return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
104  TransferRequest_PushPull_descriptor(), enum_t_value);
105 }
107  const std::string& name, TransferRequest_PushPull* value) {
108  return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<TransferRequest_PushPull>(
109  TransferRequest_PushPull_descriptor(), name, value);
110 }
118 };
123 
124 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* TransferResponse_ErrorCode_descriptor();
125 template<typename T>
126 inline const std::string& TransferResponse_ErrorCode_Name(T enum_t_value) {
127  static_assert(::std::is_same<T, TransferResponse_ErrorCode>::value ||
128  ::std::is_integral<T>::value,
129  "Incorrect type passed to function TransferResponse_ErrorCode_Name.");
130  return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
131  TransferResponse_ErrorCode_descriptor(), enum_t_value);
132 }
134  const std::string& name, TransferResponse_ErrorCode* value) {
135  return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<TransferResponse_ErrorCode>(
137 }
138 // ===================================================================
139 
140 class FileFragment PROTOBUF_FINAL :
141  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.acomms.protobuf.FileFragment) */ {
142  public:
143  inline FileFragment() : FileFragment(nullptr) {};
144  virtual ~FileFragment();
145 
146  FileFragment(const FileFragment& from);
147  FileFragment(FileFragment&& from) noexcept
148  : FileFragment() {
149  *this = ::std::move(from);
150  }
151 
152  inline FileFragment& operator=(const FileFragment& from) {
153  CopyFrom(from);
154  return *this;
155  }
156  inline FileFragment& operator=(FileFragment&& from) noexcept {
157  if (GetArena() == from.GetArena()) {
158  if (this != &from) InternalSwap(&from);
159  } else {
160  CopyFrom(from);
161  }
162  return *this;
163  }
164 
165  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
166  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
167  }
168  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
169  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
170  }
171 
172  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
173  return GetDescriptor();
174  }
175  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
176  return GetMetadataStatic().descriptor;
177  }
178  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
179  return GetMetadataStatic().reflection;
180  }
181  static const FileFragment& default_instance();
182 
183  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
184  static inline const FileFragment* internal_default_instance() {
185  return reinterpret_cast<const FileFragment*>(
187  }
188  static constexpr int kIndexInFileMessages =
189  0;
190 
191  friend void swap(FileFragment& a, FileFragment& b) {
192  a.Swap(&b);
193  }
194  inline void Swap(FileFragment* other) {
195  if (other == this) return;
196  if (GetArena() == other->GetArena()) {
197  InternalSwap(other);
198  } else {
199  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
200  }
201  }
202  void UnsafeArenaSwap(FileFragment* other) {
203  if (other == this) return;
204  GOOGLE_DCHECK(GetArena() == other->GetArena());
205  InternalSwap(other);
206  }
207 
208  // implements Message ----------------------------------------------
209 
210  inline FileFragment* New() const final {
211  return CreateMaybeMessage<FileFragment>(nullptr);
212  }
213 
214  FileFragment* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
215  return CreateMaybeMessage<FileFragment>(arena);
216  }
217  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
218  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
219  void CopyFrom(const FileFragment& from);
220  void MergeFrom(const FileFragment& from);
221  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
222  bool IsInitialized() const final;
223 
224  size_t ByteSizeLong() const final;
225  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
226  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
227  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
228  int GetCachedSize() const final { return _cached_size_.Get(); }
229 
230  private:
231  inline void SharedCtor();
232  inline void SharedDtor();
233  void SetCachedSize(int size) const final;
234  void InternalSwap(FileFragment* other);
235  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
236  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
237  return "goby.acomms.protobuf.FileFragment";
238  }
239  protected:
240  explicit FileFragment(::PROTOBUF_NAMESPACE_ID::Arena* arena);
241  private:
242  static void ArenaDtor(void* object);
243  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
244  public:
245 
246  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
247  private:
248  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
249  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto);
251  }
252 
253  public:
254 
255  // nested types ----------------------------------------------------
256 
257  // accessors -------------------------------------------------------
258 
259  enum : int {
260  kDataFieldNumber = 6,
261  kSrcFieldNumber = 1,
262  kDestFieldNumber = 2,
263  kFragmentFieldNumber = 3,
264  kIsLastFragmentFieldNumber = 4,
265  kNumBytesFieldNumber = 5,
266  };
267  // required bytes data = 6 [(.dccl.field) = {
268  bool has_data() const;
269  private:
270  bool _internal_has_data() const;
271  public:
272  void clear_data();
273  const std::string& data() const;
274  void set_data(const std::string& value);
275  void set_data(std::string&& value);
276  void set_data(const char* value);
277  void set_data(const void* value, size_t size);
278  std::string* mutable_data();
279  std::string* release_data();
280  void set_allocated_data(std::string* data);
281  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
282  " string fields are deprecated and will be removed in a"
283  " future release.")
284  std::string* unsafe_arena_release_data();
285  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
286  " string fields are deprecated and will be removed in a"
287  " future release.")
288  void unsafe_arena_set_allocated_data(
289  std::string* data);
290  private:
291  const std::string& _internal_data() const;
292  void _internal_set_data(const std::string& value);
293  std::string* _internal_mutable_data();
294  public:
295 
296  // required int32 src = 1 [(.dccl.field) = {
297  bool has_src() const;
298  private:
299  bool _internal_has_src() const;
300  public:
301  void clear_src();
302  ::PROTOBUF_NAMESPACE_ID::int32 src() const;
303  void set_src(::PROTOBUF_NAMESPACE_ID::int32 value);
304  private:
305  ::PROTOBUF_NAMESPACE_ID::int32 _internal_src() const;
306  void _internal_set_src(::PROTOBUF_NAMESPACE_ID::int32 value);
307  public:
308 
309  // required int32 dest = 2 [(.dccl.field) = {
310  bool has_dest() const;
311  private:
312  bool _internal_has_dest() const;
313  public:
314  void clear_dest();
315  ::PROTOBUF_NAMESPACE_ID::int32 dest() const;
316  void set_dest(::PROTOBUF_NAMESPACE_ID::int32 value);
317  private:
318  ::PROTOBUF_NAMESPACE_ID::int32 _internal_dest() const;
319  void _internal_set_dest(::PROTOBUF_NAMESPACE_ID::int32 value);
320  public:
321 
322  // required int32 fragment = 3 [(.dccl.field) = {
323  bool has_fragment() const;
324  private:
325  bool _internal_has_fragment() const;
326  public:
327  void clear_fragment();
328  ::PROTOBUF_NAMESPACE_ID::int32 fragment() const;
329  void set_fragment(::PROTOBUF_NAMESPACE_ID::int32 value);
330  private:
331  ::PROTOBUF_NAMESPACE_ID::int32 _internal_fragment() const;
332  void _internal_set_fragment(::PROTOBUF_NAMESPACE_ID::int32 value);
333  public:
334 
335  // required bool is_last_fragment = 4;
336  bool has_is_last_fragment() const;
337  private:
338  bool _internal_has_is_last_fragment() const;
339  public:
340  void clear_is_last_fragment();
341  bool is_last_fragment() const;
342  void set_is_last_fragment(bool value);
343  private:
344  bool _internal_is_last_fragment() const;
345  void _internal_set_is_last_fragment(bool value);
346  public:
347 
348  // required int32 num_bytes = 5 [(.dccl.field) = {
349  bool has_num_bytes() const;
350  private:
351  bool _internal_has_num_bytes() const;
352  public:
353  void clear_num_bytes();
354  ::PROTOBUF_NAMESPACE_ID::int32 num_bytes() const;
355  void set_num_bytes(::PROTOBUF_NAMESPACE_ID::int32 value);
356  private:
357  ::PROTOBUF_NAMESPACE_ID::int32 _internal_num_bytes() const;
358  void _internal_set_num_bytes(::PROTOBUF_NAMESPACE_ID::int32 value);
359  public:
360 
361  enum DCCLParameters { DCCL_ID = 7, DCCL_MAX_BYTES = 64 };
362  // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.FileFragment)
363  private:
364  class _Internal;
365 
366  // helper for ByteSizeLong()
367  size_t RequiredFieldsByteSizeFallback() const;
368 
369  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
370  typedef void InternalArenaConstructable_;
371  typedef void DestructorSkippable_;
372  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
373  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
374  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_;
378  bool is_last_fragment_;
380  friend struct ::TableStruct_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto;
381 };
382 // -------------------------------------------------------------------
383 
384 class TransferRequest PROTOBUF_FINAL :
385  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.acomms.protobuf.TransferRequest) */ {
386  public:
387  inline TransferRequest() : TransferRequest(nullptr) {};
388  virtual ~TransferRequest();
389 
390  TransferRequest(const TransferRequest& from);
391  TransferRequest(TransferRequest&& from) noexcept
392  : TransferRequest() {
393  *this = ::std::move(from);
394  }
395 
396  inline TransferRequest& operator=(const TransferRequest& from) {
397  CopyFrom(from);
398  return *this;
399  }
400  inline TransferRequest& operator=(TransferRequest&& from) noexcept {
401  if (GetArena() == from.GetArena()) {
402  if (this != &from) InternalSwap(&from);
403  } else {
404  CopyFrom(from);
405  }
406  return *this;
407  }
408 
409  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
410  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
411  }
412  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
413  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
414  }
415 
416  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
417  return GetDescriptor();
418  }
419  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
420  return GetMetadataStatic().descriptor;
421  }
422  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
423  return GetMetadataStatic().reflection;
424  }
425  static const TransferRequest& default_instance();
426 
427  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
428  static inline const TransferRequest* internal_default_instance() {
429  return reinterpret_cast<const TransferRequest*>(
431  }
432  static constexpr int kIndexInFileMessages =
433  1;
434 
435  friend void swap(TransferRequest& a, TransferRequest& b) {
436  a.Swap(&b);
437  }
438  inline void Swap(TransferRequest* other) {
439  if (other == this) return;
440  if (GetArena() == other->GetArena()) {
441  InternalSwap(other);
442  } else {
443  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
444  }
445  }
446  void UnsafeArenaSwap(TransferRequest* other) {
447  if (other == this) return;
448  GOOGLE_DCHECK(GetArena() == other->GetArena());
449  InternalSwap(other);
450  }
451 
452  // implements Message ----------------------------------------------
453 
454  inline TransferRequest* New() const final {
455  return CreateMaybeMessage<TransferRequest>(nullptr);
456  }
457 
458  TransferRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
459  return CreateMaybeMessage<TransferRequest>(arena);
460  }
461  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
462  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
463  void CopyFrom(const TransferRequest& from);
464  void MergeFrom(const TransferRequest& from);
465  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
466  bool IsInitialized() const final;
467 
468  size_t ByteSizeLong() const final;
469  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
470  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
471  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
472  int GetCachedSize() const final { return _cached_size_.Get(); }
473 
474  private:
475  inline void SharedCtor();
476  inline void SharedDtor();
477  void SetCachedSize(int size) const final;
478  void InternalSwap(TransferRequest* other);
479  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
480  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
481  return "goby.acomms.protobuf.TransferRequest";
482  }
483  protected:
484  explicit TransferRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena);
485  private:
486  static void ArenaDtor(void* object);
487  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
488  public:
489 
490  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
491  private:
492  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
493  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto);
495  }
496 
497  public:
498 
499  // nested types ----------------------------------------------------
500 
502  static constexpr PushPull PUSH =
504  static constexpr PushPull PULL =
506  static inline bool PushPull_IsValid(int value) {
507  return TransferRequest_PushPull_IsValid(value);
508  }
509  static constexpr PushPull PushPull_MIN =
511  static constexpr PushPull PushPull_MAX =
513  static constexpr int PushPull_ARRAYSIZE =
515  static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
518  }
519  template<typename T>
520  static inline const std::string& PushPull_Name(T enum_t_value) {
521  static_assert(::std::is_same<T, PushPull>::value ||
522  ::std::is_integral<T>::value,
523  "Incorrect type passed to function PushPull_Name.");
524  return TransferRequest_PushPull_Name(enum_t_value);
525  }
526  static inline bool PushPull_Parse(const std::string& name,
527  PushPull* value) {
528  return TransferRequest_PushPull_Parse(name, value);
529  }
530 
531  // accessors -------------------------------------------------------
532 
533  enum : int {
534  kFileFieldNumber = 10,
535  kSrcFieldNumber = 1,
536  kDestFieldNumber = 2,
537  kPushOrPullFieldNumber = 3,
538  };
539  // required string file = 10 [(.dccl.field) = {
540  bool has_file() const;
541  private:
542  bool _internal_has_file() const;
543  public:
544  void clear_file();
545  const std::string& file() const;
546  void set_file(const std::string& value);
547  void set_file(std::string&& value);
548  void set_file(const char* value);
549  void set_file(const char* value, size_t size);
550  std::string* mutable_file();
551  std::string* release_file();
552  void set_allocated_file(std::string* file);
553  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
554  " string fields are deprecated and will be removed in a"
555  " future release.")
556  std::string* unsafe_arena_release_file();
557  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
558  " string fields are deprecated and will be removed in a"
559  " future release.")
560  void unsafe_arena_set_allocated_file(
561  std::string* file);
562  private:
563  const std::string& _internal_file() const;
564  void _internal_set_file(const std::string& value);
565  std::string* _internal_mutable_file();
566  public:
567 
568  // required int32 src = 1 [(.dccl.field) = {
569  bool has_src() const;
570  private:
571  bool _internal_has_src() const;
572  public:
573  void clear_src();
574  ::PROTOBUF_NAMESPACE_ID::int32 src() const;
575  void set_src(::PROTOBUF_NAMESPACE_ID::int32 value);
576  private:
577  ::PROTOBUF_NAMESPACE_ID::int32 _internal_src() const;
578  void _internal_set_src(::PROTOBUF_NAMESPACE_ID::int32 value);
579  public:
580 
581  // required int32 dest = 2 [(.dccl.field) = {
582  bool has_dest() const;
583  private:
584  bool _internal_has_dest() const;
585  public:
586  void clear_dest();
587  ::PROTOBUF_NAMESPACE_ID::int32 dest() const;
588  void set_dest(::PROTOBUF_NAMESPACE_ID::int32 value);
589  private:
590  ::PROTOBUF_NAMESPACE_ID::int32 _internal_dest() const;
591  void _internal_set_dest(::PROTOBUF_NAMESPACE_ID::int32 value);
592  public:
593 
594  // required .goby.acomms.protobuf.TransferRequest.PushPull push_or_pull = 3 [(.dccl.field) = {
595  bool has_push_or_pull() const;
596  private:
597  bool _internal_has_push_or_pull() const;
598  public:
599  void clear_push_or_pull();
600  ::goby::acomms::protobuf::TransferRequest_PushPull push_or_pull() const;
601  void set_push_or_pull(::goby::acomms::protobuf::TransferRequest_PushPull value);
602  private:
603  ::goby::acomms::protobuf::TransferRequest_PushPull _internal_push_or_pull() const;
604  void _internal_set_push_or_pull(::goby::acomms::protobuf::TransferRequest_PushPull value);
605  public:
606 
607  enum DCCLParameters { DCCL_ID = 8, DCCL_MAX_BYTES = 64 };
608  // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.TransferRequest)
609  private:
610  class _Internal;
611 
612  // helper for ByteSizeLong()
613  size_t RequiredFieldsByteSizeFallback() const;
614 
615  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
616  typedef void InternalArenaConstructable_;
617  typedef void DestructorSkippable_;
618  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
619  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
620  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_;
623  int push_or_pull_;
624  friend struct ::TableStruct_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto;
625 };
626 // -------------------------------------------------------------------
627 
628 class TransferResponse PROTOBUF_FINAL :
629  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.acomms.protobuf.TransferResponse) */ {
630  public:
631  inline TransferResponse() : TransferResponse(nullptr) {};
632  virtual ~TransferResponse();
633 
634  TransferResponse(const TransferResponse& from);
635  TransferResponse(TransferResponse&& from) noexcept
636  : TransferResponse() {
637  *this = ::std::move(from);
638  }
639 
640  inline TransferResponse& operator=(const TransferResponse& from) {
641  CopyFrom(from);
642  return *this;
643  }
644  inline TransferResponse& operator=(TransferResponse&& from) noexcept {
645  if (GetArena() == from.GetArena()) {
646  if (this != &from) InternalSwap(&from);
647  } else {
648  CopyFrom(from);
649  }
650  return *this;
651  }
652 
653  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
654  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
655  }
656  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
657  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
658  }
659 
660  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
661  return GetDescriptor();
662  }
663  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
664  return GetMetadataStatic().descriptor;
665  }
666  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
667  return GetMetadataStatic().reflection;
668  }
669  static const TransferResponse& default_instance();
670 
671  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
672  static inline const TransferResponse* internal_default_instance() {
673  return reinterpret_cast<const TransferResponse*>(
675  }
676  static constexpr int kIndexInFileMessages =
677  2;
678 
679  friend void swap(TransferResponse& a, TransferResponse& b) {
680  a.Swap(&b);
681  }
682  inline void Swap(TransferResponse* other) {
683  if (other == this) return;
684  if (GetArena() == other->GetArena()) {
685  InternalSwap(other);
686  } else {
687  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
688  }
689  }
690  void UnsafeArenaSwap(TransferResponse* other) {
691  if (other == this) return;
692  GOOGLE_DCHECK(GetArena() == other->GetArena());
693  InternalSwap(other);
694  }
695 
696  // implements Message ----------------------------------------------
697 
698  inline TransferResponse* New() const final {
699  return CreateMaybeMessage<TransferResponse>(nullptr);
700  }
701 
702  TransferResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
703  return CreateMaybeMessage<TransferResponse>(arena);
704  }
705  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
706  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
707  void CopyFrom(const TransferResponse& from);
708  void MergeFrom(const TransferResponse& from);
709  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
710  bool IsInitialized() const final;
711 
712  size_t ByteSizeLong() const final;
713  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
714  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
715  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
716  int GetCachedSize() const final { return _cached_size_.Get(); }
717 
718  private:
719  inline void SharedCtor();
720  inline void SharedDtor();
721  void SetCachedSize(int size) const final;
722  void InternalSwap(TransferResponse* other);
723  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
724  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
725  return "goby.acomms.protobuf.TransferResponse";
726  }
727  protected:
728  explicit TransferResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
729  private:
730  static void ArenaDtor(void* object);
731  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
732  public:
733 
734  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
735  private:
736  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
737  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto);
739  }
740 
741  public:
742 
743  // nested types ----------------------------------------------------
744 
746  static constexpr ErrorCode COULD_NOT_READ_FILE =
748  static constexpr ErrorCode FILE_TOO_LARGE =
750  static constexpr ErrorCode TIMEOUT =
752  static constexpr ErrorCode COULD_NOT_WRITE_FILE =
754  static constexpr ErrorCode ERROR_WHILE_READING =
756  static constexpr ErrorCode OTHER_ERROR =
758  static inline bool ErrorCode_IsValid(int value) {
760  }
761  static constexpr ErrorCode ErrorCode_MIN =
763  static constexpr ErrorCode ErrorCode_MAX =
765  static constexpr int ErrorCode_ARRAYSIZE =
767  static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
770  }
771  template<typename T>
772  static inline const std::string& ErrorCode_Name(T enum_t_value) {
773  static_assert(::std::is_same<T, ErrorCode>::value ||
774  ::std::is_integral<T>::value,
775  "Incorrect type passed to function ErrorCode_Name.");
776  return TransferResponse_ErrorCode_Name(enum_t_value);
777  }
778  static inline bool ErrorCode_Parse(const std::string& name,
779  ErrorCode* value) {
780  return TransferResponse_ErrorCode_Parse(name, value);
781  }
782 
783  // accessors -------------------------------------------------------
784 
785  enum : int {
786  kSrcFieldNumber = 1,
787  kDestFieldNumber = 2,
788  kTransferSuccessfulFieldNumber = 3,
789  kNumFragmentsFieldNumber = 5,
790  kErrorFieldNumber = 4,
791  };
792  // required int32 src = 1 [(.dccl.field) = {
793  bool has_src() const;
794  private:
795  bool _internal_has_src() const;
796  public:
797  void clear_src();
800  private:
801  ::PROTOBUF_NAMESPACE_ID::int32 _internal_src() const;
802  void _internal_set_src(::PROTOBUF_NAMESPACE_ID::int32 value);
803  public:
804 
805  // required int32 dest = 2 [(.dccl.field) = {
806  bool has_dest() const;
807  private:
808  bool _internal_has_dest() const;
809  public:
810  void clear_dest();
813  private:
814  ::PROTOBUF_NAMESPACE_ID::int32 _internal_dest() const;
815  void _internal_set_dest(::PROTOBUF_NAMESPACE_ID::int32 value);
816  public:
817 
818  // required bool transfer_successful = 3;
820  private:
821  bool _internal_has_transfer_successful() const;
822  public:
824  bool transfer_successful() const;
825  void set_transfer_successful(bool value);
826  private:
827  bool _internal_transfer_successful() const;
828  void _internal_set_transfer_successful(bool value);
829  public:
830 
831  // optional int32 num_fragments = 5 [(.dccl.field) = {
832  bool has_num_fragments() const;
833  private:
834  bool _internal_has_num_fragments() const;
835  public:
839  private:
840  ::PROTOBUF_NAMESPACE_ID::int32 _internal_num_fragments() const;
841  void _internal_set_num_fragments(::PROTOBUF_NAMESPACE_ID::int32 value);
842  public:
843 
844  // optional .goby.acomms.protobuf.TransferResponse.ErrorCode error = 4;
845  bool has_error() const;
846  private:
847  bool _internal_has_error() const;
848  public:
849  void clear_error();
852  private:
854  void _internal_set_error(::goby::acomms::protobuf::TransferResponse_ErrorCode value);
855  public:
856 
857  enum DCCLParameters { DCCL_ID = 9, DCCL_MAX_BYTES = 64 };
858  // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.TransferResponse)
859  private:
860  class _Internal;
861 
862  // helper for ByteSizeLong()
863  size_t RequiredFieldsByteSizeFallback() const;
864 
865  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
866  typedef void InternalArenaConstructable_;
867  typedef void DestructorSkippable_;
868  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
869  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
872  bool transfer_successful_;
873  ::PROTOBUF_NAMESPACE_ID::int32 num_fragments_;
874  int error_;
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) = {
889 inline bool FileFragment::_internal_has_src() const {
890  bool value = (_has_bits_[0] & 0x00000002u) != 0;
891  return value;
892 }
893 inline bool FileFragment::has_src() const {
894  return _internal_has_src();
895 }
896 inline void FileFragment::clear_src() {
897  src_ = 0;
898  _has_bits_[0] &= ~0x00000002u;
899 }
900 inline ::PROTOBUF_NAMESPACE_ID::int32 FileFragment::_internal_src() const {
901  return src_;
902 }
903 inline ::PROTOBUF_NAMESPACE_ID::int32 FileFragment::src() const {
904  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.FileFragment.src)
905  return _internal_src();
906 }
907 inline void FileFragment::_internal_set_src(::PROTOBUF_NAMESPACE_ID::int32 value) {
908  _has_bits_[0] |= 0x00000002u;
909  src_ = value;
910 }
911 inline void FileFragment::set_src(::PROTOBUF_NAMESPACE_ID::int32 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) = {
917 inline bool FileFragment::_internal_has_dest() const {
918  bool value = (_has_bits_[0] & 0x00000004u) != 0;
919  return value;
920 }
921 inline bool FileFragment::has_dest() const {
922  return _internal_has_dest();
923 }
924 inline void FileFragment::clear_dest() {
925  dest_ = 0;
926  _has_bits_[0] &= ~0x00000004u;
927 }
928 inline ::PROTOBUF_NAMESPACE_ID::int32 FileFragment::_internal_dest() const {
929  return dest_;
930 }
931 inline ::PROTOBUF_NAMESPACE_ID::int32 FileFragment::dest() const {
932  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.FileFragment.dest)
933  return _internal_dest();
934 }
935 inline void FileFragment::_internal_set_dest(::PROTOBUF_NAMESPACE_ID::int32 value) {
936  _has_bits_[0] |= 0x00000004u;
937  dest_ = value;
938 }
939 inline void FileFragment::set_dest(::PROTOBUF_NAMESPACE_ID::int32 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) = {
945 inline bool FileFragment::_internal_has_fragment() const {
946  bool value = (_has_bits_[0] & 0x00000008u) != 0;
947  return value;
948 }
949 inline bool FileFragment::has_fragment() const {
950  return _internal_has_fragment();
951 }
952 inline void FileFragment::clear_fragment() {
953  fragment_ = 0;
954  _has_bits_[0] &= ~0x00000008u;
955 }
956 inline ::PROTOBUF_NAMESPACE_ID::int32 FileFragment::_internal_fragment() const {
957  return fragment_;
958 }
959 inline ::PROTOBUF_NAMESPACE_ID::int32 FileFragment::fragment() const {
960  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.FileFragment.fragment)
961  return _internal_fragment();
962 }
963 inline void FileFragment::_internal_set_fragment(::PROTOBUF_NAMESPACE_ID::int32 value) {
964  _has_bits_[0] |= 0x00000008u;
965  fragment_ = value;
966 }
967 inline void FileFragment::set_fragment(::PROTOBUF_NAMESPACE_ID::int32 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;
973 inline bool FileFragment::_internal_has_is_last_fragment() const {
974  bool value = (_has_bits_[0] & 0x00000010u) != 0;
975  return value;
976 }
977 inline bool FileFragment::has_is_last_fragment() const {
978  return _internal_has_is_last_fragment();
979 }
980 inline void FileFragment::clear_is_last_fragment() {
981  is_last_fragment_ = false;
982  _has_bits_[0] &= ~0x00000010u;
983 }
984 inline bool FileFragment::_internal_is_last_fragment() const {
985  return is_last_fragment_;
986 }
987 inline 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 }
991 inline void FileFragment::_internal_set_is_last_fragment(bool value) {
992  _has_bits_[0] |= 0x00000010u;
993  is_last_fragment_ = value;
994 }
995 inline 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) = {
1001 inline bool FileFragment::_internal_has_num_bytes() const {
1002  bool value = (_has_bits_[0] & 0x00000020u) != 0;
1003  return value;
1004 }
1005 inline bool FileFragment::has_num_bytes() const {
1006  return _internal_has_num_bytes();
1007 }
1008 inline void FileFragment::clear_num_bytes() {
1009  num_bytes_ = 0;
1010  _has_bits_[0] &= ~0x00000020u;
1011 }
1012 inline ::PROTOBUF_NAMESPACE_ID::int32 FileFragment::_internal_num_bytes() const {
1013  return num_bytes_;
1014 }
1015 inline ::PROTOBUF_NAMESPACE_ID::int32 FileFragment::num_bytes() const {
1016  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.FileFragment.num_bytes)
1017  return _internal_num_bytes();
1018 }
1019 inline void FileFragment::_internal_set_num_bytes(::PROTOBUF_NAMESPACE_ID::int32 value) {
1020  _has_bits_[0] |= 0x00000020u;
1021  num_bytes_ = value;
1022 }
1023 inline void FileFragment::set_num_bytes(::PROTOBUF_NAMESPACE_ID::int32 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) = {
1029 inline bool FileFragment::_internal_has_data() const {
1030  bool value = (_has_bits_[0] & 0x00000001u) != 0;
1031  return value;
1032 }
1033 inline bool FileFragment::has_data() const {
1034  return _internal_has_data();
1035 }
1036 inline void FileFragment::clear_data() {
1037  data_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1038  _has_bits_[0] &= ~0x00000001u;
1039 }
1040 inline const std::string& FileFragment::data() const {
1041  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.FileFragment.data)
1042  return _internal_data();
1043 }
1044 inline void FileFragment::set_data(const std::string& value) {
1045  _internal_set_data(value);
1046  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.FileFragment.data)
1047 }
1048 inline std::string* FileFragment::mutable_data() {
1049  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.FileFragment.data)
1050  return _internal_mutable_data();
1051 }
1052 inline const std::string& FileFragment::_internal_data() const {
1053  return data_.Get();
1054 }
1055 inline void FileFragment::_internal_set_data(const std::string& value) {
1056  _has_bits_[0] |= 0x00000001u;
1057  data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
1058 }
1059 inline void FileFragment::set_data(std::string&& value) {
1060  _has_bits_[0] |= 0x00000001u;
1061  data_.Set(
1062  &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
1063  // @@protoc_insertion_point(field_set_rvalue:goby.acomms.protobuf.FileFragment.data)
1064 }
1065 inline void FileFragment::set_data(const char* value) {
1066  GOOGLE_DCHECK(value != nullptr);
1067  _has_bits_[0] |= 0x00000001u;
1068  data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
1069  GetArena());
1070  // @@protoc_insertion_point(field_set_char:goby.acomms.protobuf.FileFragment.data)
1071 }
1072 inline void FileFragment::set_data(const void* value,
1073  size_t size) {
1074  _has_bits_[0] |= 0x00000001u;
1076  reinterpret_cast<const char*>(value), size), GetArena());
1077  // @@protoc_insertion_point(field_set_pointer:goby.acomms.protobuf.FileFragment.data)
1078 }
1079 inline std::string* FileFragment::_internal_mutable_data() {
1080  _has_bits_[0] |= 0x00000001u;
1081  return data_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1082 }
1083 inline std::string* FileFragment::release_data() {
1084  // @@protoc_insertion_point(field_release:goby.acomms.protobuf.FileFragment.data)
1085  if (!_internal_has_data()) {
1086  return nullptr;
1087  }
1088  _has_bits_[0] &= ~0x00000001u;
1089  return data_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1090 }
1091 inline void FileFragment::set_allocated_data(std::string* data) {
1092  if (data != nullptr) {
1093  _has_bits_[0] |= 0x00000001u;
1094  } else {
1095  _has_bits_[0] &= ~0x00000001u;
1096  }
1098  GetArena());
1099  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.FileFragment.data)
1100 }
1101 inline std::string* FileFragment::unsafe_arena_release_data() {
1102  // @@protoc_insertion_point(field_unsafe_arena_release:goby.acomms.protobuf.FileFragment.data)
1103  GOOGLE_DCHECK(GetArena() != nullptr);
1104  _has_bits_[0] &= ~0x00000001u;
1105  return data_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1106  GetArena());
1107 }
1108 inline void FileFragment::unsafe_arena_set_allocated_data(
1109  std::string* data) {
1110  GOOGLE_DCHECK(GetArena() != nullptr);
1111  if (data != nullptr) {
1112  _has_bits_[0] |= 0x00000001u;
1113  } else {
1114  _has_bits_[0] &= ~0x00000001u;
1115  }
1116  data_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1117  data, GetArena());
1118  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.acomms.protobuf.FileFragment.data)
1119 }
1120 
1121 // -------------------------------------------------------------------
1122 
1123 // TransferRequest
1124 
1125 // required int32 src = 1 [(.dccl.field) = {
1126 inline bool TransferRequest::_internal_has_src() const {
1127  bool value = (_has_bits_[0] & 0x00000002u) != 0;
1128  return value;
1129 }
1130 inline bool TransferRequest::has_src() const {
1131  return _internal_has_src();
1132 }
1133 inline void TransferRequest::clear_src() {
1134  src_ = 0;
1135  _has_bits_[0] &= ~0x00000002u;
1136 }
1137 inline ::PROTOBUF_NAMESPACE_ID::int32 TransferRequest::_internal_src() const {
1138  return src_;
1139 }
1140 inline ::PROTOBUF_NAMESPACE_ID::int32 TransferRequest::src() const {
1141  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.TransferRequest.src)
1142  return _internal_src();
1143 }
1144 inline void TransferRequest::_internal_set_src(::PROTOBUF_NAMESPACE_ID::int32 value) {
1145  _has_bits_[0] |= 0x00000002u;
1146  src_ = value;
1147 }
1148 inline void TransferRequest::set_src(::PROTOBUF_NAMESPACE_ID::int32 value) {
1149  _internal_set_src(value);
1150  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.TransferRequest.src)
1151 }
1152 
1153 // required int32 dest = 2 [(.dccl.field) = {
1154 inline bool TransferRequest::_internal_has_dest() const {
1155  bool value = (_has_bits_[0] & 0x00000004u) != 0;
1156  return value;
1157 }
1158 inline bool TransferRequest::has_dest() const {
1159  return _internal_has_dest();
1160 }
1161 inline void TransferRequest::clear_dest() {
1162  dest_ = 0;
1163  _has_bits_[0] &= ~0x00000004u;
1164 }
1165 inline ::PROTOBUF_NAMESPACE_ID::int32 TransferRequest::_internal_dest() const {
1166  return dest_;
1167 }
1168 inline ::PROTOBUF_NAMESPACE_ID::int32 TransferRequest::dest() const {
1169  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.TransferRequest.dest)
1170  return _internal_dest();
1171 }
1172 inline void TransferRequest::_internal_set_dest(::PROTOBUF_NAMESPACE_ID::int32 value) {
1173  _has_bits_[0] |= 0x00000004u;
1174  dest_ = value;
1175 }
1176 inline void TransferRequest::set_dest(::PROTOBUF_NAMESPACE_ID::int32 value) {
1177  _internal_set_dest(value);
1178  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.TransferRequest.dest)
1179 }
1180 
1181 // required .goby.acomms.protobuf.TransferRequest.PushPull push_or_pull = 3 [(.dccl.field) = {
1182 inline bool TransferRequest::_internal_has_push_or_pull() const {
1183  bool value = (_has_bits_[0] & 0x00000008u) != 0;
1184  return value;
1185 }
1186 inline bool TransferRequest::has_push_or_pull() const {
1187  return _internal_has_push_or_pull();
1188 }
1189 inline void TransferRequest::clear_push_or_pull() {
1190  push_or_pull_ = 1;
1191  _has_bits_[0] &= ~0x00000008u;
1192 }
1193 inline ::goby::acomms::protobuf::TransferRequest_PushPull TransferRequest::_internal_push_or_pull() const {
1194  return static_cast< ::goby::acomms::protobuf::TransferRequest_PushPull >(push_or_pull_);
1195 }
1196 inline ::goby::acomms::protobuf::TransferRequest_PushPull TransferRequest::push_or_pull() const {
1197  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.TransferRequest.push_or_pull)
1198  return _internal_push_or_pull();
1199 }
1200 inline void TransferRequest::_internal_set_push_or_pull(::goby::acomms::protobuf::TransferRequest_PushPull value) {
1202  _has_bits_[0] |= 0x00000008u;
1203  push_or_pull_ = value;
1204 }
1205 inline void TransferRequest::set_push_or_pull(::goby::acomms::protobuf::TransferRequest_PushPull value) {
1206  _internal_set_push_or_pull(value);
1207  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.TransferRequest.push_or_pull)
1208 }
1209 
1210 // required string file = 10 [(.dccl.field) = {
1211 inline bool TransferRequest::_internal_has_file() const {
1212  bool value = (_has_bits_[0] & 0x00000001u) != 0;
1213  return value;
1214 }
1215 inline bool TransferRequest::has_file() const {
1216  return _internal_has_file();
1217 }
1218 inline void TransferRequest::clear_file() {
1219  file_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1220  _has_bits_[0] &= ~0x00000001u;
1221 }
1222 inline const std::string& TransferRequest::file() const {
1223  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.TransferRequest.file)
1224  return _internal_file();
1225 }
1226 inline void TransferRequest::set_file(const std::string& value) {
1227  _internal_set_file(value);
1228  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.TransferRequest.file)
1229 }
1230 inline std::string* TransferRequest::mutable_file() {
1231  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.TransferRequest.file)
1232  return _internal_mutable_file();
1233 }
1234 inline const std::string& TransferRequest::_internal_file() const {
1235  return file_.Get();
1236 }
1237 inline void TransferRequest::_internal_set_file(const std::string& value) {
1238  _has_bits_[0] |= 0x00000001u;
1239  file_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
1240 }
1241 inline void TransferRequest::set_file(std::string&& value) {
1242  _has_bits_[0] |= 0x00000001u;
1243  file_.Set(
1244  &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
1245  // @@protoc_insertion_point(field_set_rvalue:goby.acomms.protobuf.TransferRequest.file)
1246 }
1247 inline void TransferRequest::set_file(const char* value) {
1248  GOOGLE_DCHECK(value != nullptr);
1249  _has_bits_[0] |= 0x00000001u;
1250  file_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
1251  GetArena());
1252  // @@protoc_insertion_point(field_set_char:goby.acomms.protobuf.TransferRequest.file)
1253 }
1254 inline void TransferRequest::set_file(const char* value,
1255  size_t size) {
1256  _has_bits_[0] |= 0x00000001u;
1258  reinterpret_cast<const char*>(value), size), GetArena());
1259  // @@protoc_insertion_point(field_set_pointer:goby.acomms.protobuf.TransferRequest.file)
1260 }
1261 inline std::string* TransferRequest::_internal_mutable_file() {
1262  _has_bits_[0] |= 0x00000001u;
1263  return file_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1264 }
1265 inline std::string* TransferRequest::release_file() {
1266  // @@protoc_insertion_point(field_release:goby.acomms.protobuf.TransferRequest.file)
1267  if (!_internal_has_file()) {
1268  return nullptr;
1269  }
1270  _has_bits_[0] &= ~0x00000001u;
1271  return file_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1272 }
1273 inline void TransferRequest::set_allocated_file(std::string* file) {
1274  if (file != nullptr) {
1275  _has_bits_[0] |= 0x00000001u;
1276  } else {
1277  _has_bits_[0] &= ~0x00000001u;
1278  }
1280  GetArena());
1281  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.TransferRequest.file)
1282 }
1283 inline std::string* TransferRequest::unsafe_arena_release_file() {
1284  // @@protoc_insertion_point(field_unsafe_arena_release:goby.acomms.protobuf.TransferRequest.file)
1285  GOOGLE_DCHECK(GetArena() != nullptr);
1286  _has_bits_[0] &= ~0x00000001u;
1287  return file_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1288  GetArena());
1289 }
1290 inline void TransferRequest::unsafe_arena_set_allocated_file(
1291  std::string* file) {
1292  GOOGLE_DCHECK(GetArena() != nullptr);
1293  if (file != nullptr) {
1294  _has_bits_[0] |= 0x00000001u;
1295  } else {
1296  _has_bits_[0] &= ~0x00000001u;
1297  }
1298  file_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1299  file, GetArena());
1300  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.acomms.protobuf.TransferRequest.file)
1301 }
1302 
1303 // -------------------------------------------------------------------
1304 
1305 // TransferResponse
1306 
1307 // required int32 src = 1 [(.dccl.field) = {
1308 inline bool TransferResponse::_internal_has_src() const {
1309  bool value = (_has_bits_[0] & 0x00000001u) != 0;
1310  return value;
1311 }
1312 inline bool TransferResponse::has_src() const {
1313  return _internal_has_src();
1314 }
1315 inline void TransferResponse::clear_src() {
1316  src_ = 0;
1317  _has_bits_[0] &= ~0x00000001u;
1318 }
1319 inline ::PROTOBUF_NAMESPACE_ID::int32 TransferResponse::_internal_src() const {
1320  return src_;
1321 }
1322 inline ::PROTOBUF_NAMESPACE_ID::int32 TransferResponse::src() const {
1323  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.TransferResponse.src)
1324  return _internal_src();
1325 }
1326 inline void TransferResponse::_internal_set_src(::PROTOBUF_NAMESPACE_ID::int32 value) {
1327  _has_bits_[0] |= 0x00000001u;
1328  src_ = value;
1329 }
1330 inline void TransferResponse::set_src(::PROTOBUF_NAMESPACE_ID::int32 value) {
1331  _internal_set_src(value);
1332  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.TransferResponse.src)
1333 }
1334 
1335 // required int32 dest = 2 [(.dccl.field) = {
1336 inline bool TransferResponse::_internal_has_dest() const {
1337  bool value = (_has_bits_[0] & 0x00000002u) != 0;
1338  return value;
1339 }
1340 inline bool TransferResponse::has_dest() const {
1341  return _internal_has_dest();
1342 }
1343 inline void TransferResponse::clear_dest() {
1344  dest_ = 0;
1345  _has_bits_[0] &= ~0x00000002u;
1346 }
1347 inline ::PROTOBUF_NAMESPACE_ID::int32 TransferResponse::_internal_dest() const {
1348  return dest_;
1349 }
1350 inline ::PROTOBUF_NAMESPACE_ID::int32 TransferResponse::dest() const {
1351  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.TransferResponse.dest)
1352  return _internal_dest();
1353 }
1354 inline void TransferResponse::_internal_set_dest(::PROTOBUF_NAMESPACE_ID::int32 value) {
1355  _has_bits_[0] |= 0x00000002u;
1356  dest_ = value;
1357 }
1358 inline void TransferResponse::set_dest(::PROTOBUF_NAMESPACE_ID::int32 value) {
1359  _internal_set_dest(value);
1360  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.TransferResponse.dest)
1361 }
1362 
1363 // required bool transfer_successful = 3;
1364 inline bool TransferResponse::_internal_has_transfer_successful() const {
1365  bool value = (_has_bits_[0] & 0x00000004u) != 0;
1366  return value;
1367 }
1368 inline bool TransferResponse::has_transfer_successful() const {
1369  return _internal_has_transfer_successful();
1370 }
1371 inline void TransferResponse::clear_transfer_successful() {
1372  transfer_successful_ = false;
1373  _has_bits_[0] &= ~0x00000004u;
1374 }
1375 inline bool TransferResponse::_internal_transfer_successful() const {
1376  return transfer_successful_;
1377 }
1378 inline bool TransferResponse::transfer_successful() const {
1379  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.TransferResponse.transfer_successful)
1380  return _internal_transfer_successful();
1381 }
1382 inline void TransferResponse::_internal_set_transfer_successful(bool value) {
1383  _has_bits_[0] |= 0x00000004u;
1384  transfer_successful_ = value;
1385 }
1386 inline void TransferResponse::set_transfer_successful(bool value) {
1387  _internal_set_transfer_successful(value);
1388  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.TransferResponse.transfer_successful)
1389 }
1390 
1391 // optional .goby.acomms.protobuf.TransferResponse.ErrorCode error = 4;
1392 inline bool TransferResponse::_internal_has_error() const {
1393  bool value = (_has_bits_[0] & 0x00000010u) != 0;
1394  return value;
1395 }
1396 inline bool TransferResponse::has_error() const {
1397  return _internal_has_error();
1398 }
1399 inline void TransferResponse::clear_error() {
1400  error_ = 1;
1401  _has_bits_[0] &= ~0x00000010u;
1402 }
1403 inline ::goby::acomms::protobuf::TransferResponse_ErrorCode TransferResponse::_internal_error() const {
1404  return static_cast< ::goby::acomms::protobuf::TransferResponse_ErrorCode >(error_);
1405 }
1406 inline ::goby::acomms::protobuf::TransferResponse_ErrorCode TransferResponse::error() const {
1407  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.TransferResponse.error)
1408  return _internal_error();
1409 }
1410 inline void TransferResponse::_internal_set_error(::goby::acomms::protobuf::TransferResponse_ErrorCode value) {
1412  _has_bits_[0] |= 0x00000010u;
1413  error_ = value;
1414 }
1415 inline void TransferResponse::set_error(::goby::acomms::protobuf::TransferResponse_ErrorCode value) {
1416  _internal_set_error(value);
1417  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.TransferResponse.error)
1418 }
1419 
1420 // optional int32 num_fragments = 5 [(.dccl.field) = {
1421 inline bool TransferResponse::_internal_has_num_fragments() const {
1422  bool value = (_has_bits_[0] & 0x00000008u) != 0;
1423  return value;
1424 }
1425 inline bool TransferResponse::has_num_fragments() const {
1426  return _internal_has_num_fragments();
1427 }
1428 inline void TransferResponse::clear_num_fragments() {
1429  num_fragments_ = 0;
1430  _has_bits_[0] &= ~0x00000008u;
1431 }
1432 inline ::PROTOBUF_NAMESPACE_ID::int32 TransferResponse::_internal_num_fragments() const {
1433  return num_fragments_;
1434 }
1435 inline ::PROTOBUF_NAMESPACE_ID::int32 TransferResponse::num_fragments() const {
1436  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.TransferResponse.num_fragments)
1437  return _internal_num_fragments();
1438 }
1439 inline void TransferResponse::_internal_set_num_fragments(::PROTOBUF_NAMESPACE_ID::int32 value) {
1440  _has_bits_[0] |= 0x00000008u;
1441  num_fragments_ = value;
1442 }
1443 inline void TransferResponse::set_num_fragments(::PROTOBUF_NAMESPACE_ID::int32 value) {
1444  _internal_set_num_fragments(value);
1445  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.TransferResponse.num_fragments)
1446 }
1447 
1448 #ifdef __GNUC__
1449  #pragma GCC diagnostic pop
1450 #endif // __GNUC__
1451 // -------------------------------------------------------------------
1452 
1453 // -------------------------------------------------------------------
1454 
1455 
1456 // @@protoc_insertion_point(namespace_scope)
1457 
1458 } // namespace protobuf
1459 } // namespace acomms
1460 } // namespace goby
1461 
1462 PROTOBUF_NAMESPACE_OPEN
1463 
1464 template <> struct is_proto_enum< ::goby::acomms::protobuf::TransferRequest_PushPull> : ::std::true_type {};
1465 template <>
1466 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::TransferRequest_PushPull>() {
1468 }
1469 template <> struct is_proto_enum< ::goby::acomms::protobuf::TransferResponse_ErrorCode> : ::std::true_type {};
1470 template <>
1471 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::TransferResponse_ErrorCode>() {
1473 }
1474 
1475 PROTOBUF_NAMESPACE_CLOSE
1476 
1477 // @@protoc_insertion_point(global_scope)
1478 
1479 #include <google/protobuf/port_undef.inc>
1480 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto
void MergeFrom(const FileFragment &from)
::PROTOBUF_NAMESPACE_ID::int32 dest() const
TransferRequest & operator=(const TransferRequest &from)
void Swap(TransferResponse *other)
FileFragment & operator=(const FileFragment &from)
void set_error(::goby::acomms::protobuf::TransferResponse_ErrorCode value)
void UnsafeArenaSwap(TransferResponse *other)
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
TransferResponse_ErrorCode ErrorCode
static const TransferRequest * internal_default_instance()
void set_num_fragments(::PROTOBUF_NAMESPACE_ID::int32 value)
static const std::string & PushPull_Name(T enum_t_value)
void UnsafeArenaSwap(TransferRequest *other)
TransferResponse & operator=(TransferResponse &&from) noexcept
friend void swap(TransferRequest &a, TransferRequest &b)
void set_file(const std::string &value)
TransferResponse(const TransferResponse &from)
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * PushPull_descriptor()
FileFragment(const FileFragment &from)
FileFragment & operator=(FileFragment &&from) noexcept
TransferResponse(::PROTOBUF_NAMESPACE_ID::Arena *arena)
FileFragment(FileFragment &&from) noexcept
static const TransferRequest & default_instance()
friend void swap(TransferResponse &a, TransferResponse &b)
FileFragment(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void set_allocated_data(std::string *data)
void set_dest(::PROTOBUF_NAMESPACE_ID::int32 value)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void set_data(const void *value, size_t size)
TransferResponse * New() const final
void set_file(std::string &&value)
TransferRequest(::PROTOBUF_NAMESPACE_ID::Arena *arena)
TransferRequest * New() const final
static const TransferResponse * internal_default_instance()
void set_allocated_file(std::string *file)
TransferRequest(const TransferRequest &from)
static const TransferResponse & default_instance()
TransferRequest(TransferRequest &&from) noexcept
void CopyFrom(const FileFragment &from)
void set_src(::PROTOBUF_NAMESPACE_ID::int32 value)
const std::string & data() const
void UnsafeArenaSwap(FileFragment *other)
static bool PushPull_Parse(const std::string &name, PushPull *value)
TransferResponse(TransferResponse &&from) noexcept
static const FileFragment & default_instance()
::goby::acomms::protobuf::TransferResponse_ErrorCode error() const
void set_data(const std::string &value)
const std::string & file() const
TransferResponse & operator=(const TransferResponse &from)
void set_data(const char *value)
void CopyFrom(const TransferResponse &from)
void set_data(std::string &&value)
static bool ErrorCode_Parse(const std::string &name, ErrorCode *value)
TransferRequest * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
void set_file(const char *value)
void MergeFrom(const TransferResponse &from)
static const std::string & ErrorCode_Name(T enum_t_value)
FileFragment * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
void CopyFrom(const TransferRequest &from)
::PROTOBUF_NAMESPACE_ID::int32 num_fragments() const
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
TransferRequest & operator=(TransferRequest &&from) noexcept
::PROTOBUF_NAMESPACE_ID::int32 src() const
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void MergeFrom(const TransferRequest &from)
void Swap(TransferRequest *other)
friend void swap(FileFragment &a, FileFragment &b)
FileFragment * New() const final
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * ErrorCode_descriptor()
TransferResponse * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
void set_file(const char *value, size_t size)
static const FileFragment * internal_default_instance()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2facomms_2fprotobuf_2ffile_5ftransfer_2eproto
@ value
the parser finished reading a JSON value
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * TransferResponse_ErrorCode_descriptor()
bool TransferResponse_ErrorCode_IsValid(int value)
bool TransferRequest_PushPull_Parse(const std::string &name, TransferRequest_PushPull *value)
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * TransferRequest_PushPull_descriptor()
const std::string & TransferResponse_ErrorCode_Name(T enum_t_value)
bool TransferRequest_PushPull_IsValid(int value)
constexpr int TransferRequest_PushPull_PushPull_ARRAYSIZE
TransferRequestDefaultTypeInternal _TransferRequest_default_instance_
constexpr TransferResponse_ErrorCode TransferResponse_ErrorCode_ErrorCode_MAX
bool TransferResponse_ErrorCode_Parse(const std::string &name, TransferResponse_ErrorCode *value)
constexpr int TransferResponse_ErrorCode_ErrorCode_ARRAYSIZE
constexpr TransferRequest_PushPull TransferRequest_PushPull_PushPull_MIN
TransferResponseDefaultTypeInternal _TransferResponse_default_instance_
constexpr TransferResponse_ErrorCode TransferResponse_ErrorCode_ErrorCode_MIN
FileFragmentDefaultTypeInternal _FileFragment_default_instance_
const std::string & TransferRequest_PushPull_Name(T enum_t_value)
constexpr TransferRequest_PushPull TransferRequest_PushPull_PushPull_MAX
The global namespace for the Goby project.
std::int32_t int32
std::uint32_t uint32
PROTOBUF_EXPORT const std::string & GetEmptyStringAlreadyInited()
Definition: message_lite.h:154
#define ByteSizeLong
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]