Goby3 3.2.3
2025.05.13
Loading...
Searching...
No Matches
file_transfer_config.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: goby/zeromq/protobuf/file_transfer_config.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2ffile_5ftransfer_5fconfig_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2ffile_5ftransfer_5fconfig_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>
37#include <boost/units/quantity.hpp>
38#include <boost/units/absolute.hpp>
39#include <boost/units/dimensionless_type.hpp>
40#include <boost/units/make_scaled_unit.hpp>
41// @@protoc_insertion_point(includes)
42#include <google/protobuf/port_def.inc>
43#define PROTOBUF_INTERNAL_EXPORT_goby_2fzeromq_2fprotobuf_2ffile_5ftransfer_5fconfig_2eproto
44PROTOBUF_NAMESPACE_OPEN
45namespace internal {
46class AnyMetadata;
47} // namespace internal
48PROTOBUF_NAMESPACE_CLOSE
49
50// Internal implementation detail -- do not use these members.
54extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fzeromq_2fprotobuf_2ffile_5ftransfer_5fconfig_2eproto;
55namespace goby {
56namespace apps {
57namespace zeromq {
58namespace acomms {
59namespace protobuf {
60class FileTransferConfig;
61struct FileTransferConfigDefaultTypeInternal;
62extern FileTransferConfigDefaultTypeInternal _FileTransferConfig_default_instance_;
63} // namespace protobuf
64} // namespace acomms
65} // namespace zeromq
66} // namespace apps
67} // namespace goby
68PROTOBUF_NAMESPACE_OPEN
69template<> ::goby::apps::zeromq::acomms::protobuf::FileTransferConfig* Arena::CreateMaybeMessage<::goby::apps::zeromq::acomms::protobuf::FileTransferConfig>(Arena*);
70PROTOBUF_NAMESPACE_CLOSE
71namespace goby {
72namespace apps {
73namespace zeromq {
74namespace acomms {
75namespace protobuf {
76
86
87const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FileTransferConfig_Action_descriptor();
88template<typename T>
89inline const std::string& FileTransferConfig_Action_Name(T enum_t_value) {
90 static_assert(::std::is_same<T, FileTransferConfig_Action>::value ||
91 ::std::is_integral<T>::value,
92 "Incorrect type passed to function FileTransferConfig_Action_Name.");
93 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
95}
97 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FileTransferConfig_Action* value) {
98 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<FileTransferConfig_Action>(
100}
101// ===================================================================
102
104 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.apps.zeromq.acomms.protobuf.FileTransferConfig) */ {
105 public:
108 explicit PROTOBUF_CONSTEXPR FileTransferConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
109
113 *this = ::std::move(from);
114 }
115
117 CopyFrom(from);
118 return *this;
119 }
121 if (this == &from) return *this;
122 if (GetOwningArena() == from.GetOwningArena()
123 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
124 && GetOwningArena() != nullptr
125 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
126 ) {
127 InternalSwap(&from);
128 } else {
129 CopyFrom(from);
130 }
131 return *this;
132 }
133
134 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
135 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
136 }
137 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
138 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
139 }
140
141 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
142 return GetDescriptor();
143 }
144 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
145 return default_instance().GetMetadata().descriptor;
146 }
147 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
148 return default_instance().GetMetadata().reflection;
149 }
152 }
154 return reinterpret_cast<const FileTransferConfig*>(
156 }
157 static constexpr int kIndexInFileMessages =
158 0;
159
161 a.Swap(&b);
162 }
163 inline void Swap(FileTransferConfig* other) {
164 if (other == this) return;
165 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
166 if (GetOwningArena() != nullptr &&
167 GetOwningArena() == other->GetOwningArena()) {
168 #else // PROTOBUF_FORCE_COPY_IN_SWAP
169 if (GetOwningArena() == other->GetOwningArena()) {
170 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
171 InternalSwap(other);
172 } else {
173 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
174 }
175 }
177 if (other == this) return;
178 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
179 InternalSwap(other);
180 }
181
182 // implements Message ----------------------------------------------
183
184 FileTransferConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
185 return CreateMaybeMessage<FileTransferConfig>(arena);
186 }
187 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
188 void CopyFrom(const FileTransferConfig& from);
189 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
190 void MergeFrom( const FileTransferConfig& from) {
191 FileTransferConfig::MergeImpl(*this, from);
192 }
193 private:
194 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
195 public:
196 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
197 bool IsInitialized() const final;
198
199 size_t ByteSizeLong() const final;
200 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
202 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
203 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
204
205 private:
206 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
207 void SharedDtor();
208 void SetCachedSize(int size) const final;
209 void InternalSwap(FileTransferConfig* other);
210
211 private:
212 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
213 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
214 return "goby.apps.zeromq.acomms.protobuf.FileTransferConfig";
215 }
216 protected:
217 explicit FileTransferConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena,
218 bool is_message_owned = false);
219 public:
220
221 static const ClassData _class_data_;
222 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
223
224 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
225
226 // nested types ----------------------------------------------------
227
229 static constexpr Action WAIT =
231 static constexpr Action PUSH =
233 static constexpr Action PULL =
235 static inline bool Action_IsValid(int value) {
237 }
238 static constexpr Action Action_MIN =
240 static constexpr Action Action_MAX =
242 static constexpr int Action_ARRAYSIZE =
244 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
248 template<typename T>
249 static inline const std::string& Action_Name(T enum_t_value) {
250 static_assert(::std::is_same<T, Action>::value ||
251 ::std::is_integral<T>::value,
252 "Incorrect type passed to function Action_Name.");
253 return FileTransferConfig_Action_Name(enum_t_value);
254 }
255 static inline bool Action_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
256 Action* value) {
257 return FileTransferConfig_Action_Parse(name, value);
258 }
259
260 // accessors -------------------------------------------------------
261
262 enum : int {
272 };
273 // optional string local_file = 6;
274 bool has_local_file() const;
275 private:
276 bool _internal_has_local_file() const;
277 public:
278 void clear_local_file();
279 const std::string& local_file() const;
280 template <typename ArgT0 = const std::string&, typename... ArgT>
281 void set_local_file(ArgT0&& arg0, ArgT... args);
282 std::string* mutable_local_file();
283 PROTOBUF_NODISCARD std::string* release_local_file();
284 void set_allocated_local_file(std::string* local_file);
285 private:
286 const std::string& _internal_local_file() const;
287 inline PROTOBUF_ALWAYS_INLINE void _internal_set_local_file(const std::string& value);
288 std::string* _internal_mutable_local_file();
289 public:
290
291 // optional string remote_file = 7;
292 bool has_remote_file() const;
293 private:
294 bool _internal_has_remote_file() const;
295 public:
296 void clear_remote_file();
297 const std::string& remote_file() const;
298 template <typename ArgT0 = const std::string&, typename... ArgT>
299 void set_remote_file(ArgT0&& arg0, ArgT... args);
300 std::string* mutable_remote_file();
301 PROTOBUF_NODISCARD std::string* release_remote_file();
302 void set_allocated_remote_file(std::string* remote_file);
303 private:
304 const std::string& _internal_remote_file() const;
305 inline PROTOBUF_ALWAYS_INLINE void _internal_set_remote_file(const std::string& value);
306 std::string* _internal_mutable_remote_file();
307 public:
308
309 // optional .goby.middleware.protobuf.AppConfig app = 1;
310 bool has_app() const;
311 private:
312 bool _internal_has_app() const;
313 public:
314 void clear_app();
315 const ::goby::middleware::protobuf::AppConfig& app() const;
316 PROTOBUF_NODISCARD ::goby::middleware::protobuf::AppConfig* release_app();
319 private:
320 const ::goby::middleware::protobuf::AppConfig& _internal_app() const;
321 ::goby::middleware::protobuf::AppConfig* _internal_mutable_app();
322 public:
326
327 // optional .goby.zeromq.protobuf.InterProcessPortalConfig interprocess = 2 [(.goby.field) = {
328 bool has_interprocess() const;
329 private:
330 bool _internal_has_interprocess() const;
331 public:
333 const ::goby::zeromq::protobuf::InterProcessPortalConfig& interprocess() const;
334 PROTOBUF_NODISCARD ::goby::zeromq::protobuf::InterProcessPortalConfig* release_interprocess();
337 private:
338 const ::goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess() const;
339 ::goby::zeromq::protobuf::InterProcessPortalConfig* _internal_mutable_interprocess();
340 public:
344
345 // optional bool daemon = 3 [default = false];
346 bool has_daemon() const;
347 private:
348 bool _internal_has_daemon() const;
349 public:
350 void clear_daemon();
351 bool daemon() const;
352 void set_daemon(bool value);
353 private:
354 bool _internal_daemon() const;
355 void _internal_set_daemon(bool value);
356 public:
357
358 // required int32 local_id = 4;
359 bool has_local_id() const;
360 private:
361 bool _internal_has_local_id() const;
362 public:
363 void clear_local_id();
364 int32_t local_id() const;
365 void set_local_id(int32_t value);
366 private:
367 int32_t _internal_local_id() const;
368 void _internal_set_local_id(int32_t value);
369 public:
370
371 // optional int32 remote_id = 5;
372 bool has_remote_id() const;
373 private:
374 bool _internal_has_remote_id() const;
375 public:
376 void clear_remote_id();
377 int32_t remote_id() const;
378 void set_remote_id(int32_t value);
379 private:
380 int32_t _internal_remote_id() const;
381 void _internal_set_remote_id(int32_t value);
382 public:
383
384 // optional .goby.apps.zeromq.acomms.protobuf.FileTransferConfig.Action action = 10 [default = WAIT];
385 bool has_action() const;
386 private:
387 bool _internal_has_action() const;
388 public:
389 void clear_action();
392 private:
395 public:
396
397 // optional double request_timeout = 11 [default = 600];
398 bool has_request_timeout() const;
399 private:
400 bool _internal_has_request_timeout() const;
401 public:
403 double request_timeout() const;
404 void set_request_timeout(double value);
405 private:
406 double _internal_request_timeout() const;
407 void _internal_set_request_timeout(double value);
408 public:
409
410 // @@protoc_insertion_point(class_scope:goby.apps.zeromq.acomms.protobuf.FileTransferConfig)
411 private:
412 class _Internal;
413
414 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
415 typedef void InternalArenaConstructable_;
416 typedef void DestructorSkippable_;
417 struct Impl_ {
418 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
419 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
420 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr local_file_;
421 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr remote_file_;
424 bool daemon_;
425 int32_t local_id_;
426 int32_t remote_id_;
427 int action_;
428 double request_timeout_;
429 };
430 union { Impl_ _impl_; };
431 friend struct ::TableStruct_goby_2fzeromq_2fprotobuf_2ffile_5ftransfer_5fconfig_2eproto;
432};
433// ===================================================================
434
435
436// ===================================================================
437
438#ifdef __GNUC__
439 #pragma GCC diagnostic push
440 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
441#endif // __GNUC__
442// FileTransferConfig
443
444// optional .goby.middleware.protobuf.AppConfig app = 1;
445inline bool FileTransferConfig::_internal_has_app() const {
446 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
447 PROTOBUF_ASSUME(!value || _impl_.app_ != nullptr);
448 return value;
449}
450inline bool FileTransferConfig::has_app() const {
451 return _internal_has_app();
452}
453inline const ::goby::middleware::protobuf::AppConfig& FileTransferConfig::_internal_app() const {
454 const ::goby::middleware::protobuf::AppConfig* p = _impl_.app_;
455 return p != nullptr ? *p : reinterpret_cast<const ::goby::middleware::protobuf::AppConfig&>(
457}
458inline const ::goby::middleware::protobuf::AppConfig& FileTransferConfig::app() const {
459 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.FileTransferConfig.app)
460 return _internal_app();
461}
464 if (GetArenaForAllocation() == nullptr) {
465 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.app_);
466 }
467 _impl_.app_ = app;
468 if (app) {
469 _impl_._has_bits_[0] |= 0x00000004u;
470 } else {
471 _impl_._has_bits_[0] &= ~0x00000004u;
472 }
473 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.zeromq.acomms.protobuf.FileTransferConfig.app)
474}
475inline ::goby::middleware::protobuf::AppConfig* FileTransferConfig::release_app() {
476 _impl_._has_bits_[0] &= ~0x00000004u;
478 _impl_.app_ = nullptr;
479#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
480 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
481 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
482 if (GetArenaForAllocation() == nullptr) { delete old; }
483#else // PROTOBUF_FORCE_COPY_IN_RELEASE
484 if (GetArenaForAllocation() != nullptr) {
485 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
486 }
487#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
488 return temp;
489}
490inline ::goby::middleware::protobuf::AppConfig* FileTransferConfig::unsafe_arena_release_app() {
491 // @@protoc_insertion_point(field_release:goby.apps.zeromq.acomms.protobuf.FileTransferConfig.app)
492 _impl_._has_bits_[0] &= ~0x00000004u;
494 _impl_.app_ = nullptr;
495 return temp;
496}
497inline ::goby::middleware::protobuf::AppConfig* FileTransferConfig::_internal_mutable_app() {
498 _impl_._has_bits_[0] |= 0x00000004u;
499 if (_impl_.app_ == nullptr) {
500 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaForAllocation());
501 _impl_.app_ = p;
502 }
503 return _impl_.app_;
504}
505inline ::goby::middleware::protobuf::AppConfig* FileTransferConfig::mutable_app() {
506 ::goby::middleware::protobuf::AppConfig* _msg = _internal_mutable_app();
507 // @@protoc_insertion_point(field_mutable:goby.apps.zeromq.acomms.protobuf.FileTransferConfig.app)
508 return _msg;
509}
511 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
512 if (message_arena == nullptr) {
513 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.app_);
514 }
515 if (app) {
516 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
517 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
518 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(app));
519 if (message_arena != submessage_arena) {
520 app = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
521 message_arena, app, submessage_arena);
522 }
523 _impl_._has_bits_[0] |= 0x00000004u;
524 } else {
525 _impl_._has_bits_[0] &= ~0x00000004u;
526 }
527 _impl_.app_ = app;
528 // @@protoc_insertion_point(field_set_allocated:goby.apps.zeromq.acomms.protobuf.FileTransferConfig.app)
529}
530
531// optional .goby.zeromq.protobuf.InterProcessPortalConfig interprocess = 2 [(.goby.field) = {
532inline bool FileTransferConfig::_internal_has_interprocess() const {
533 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
534 PROTOBUF_ASSUME(!value || _impl_.interprocess_ != nullptr);
535 return value;
536}
538 return _internal_has_interprocess();
539}
540inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& FileTransferConfig::_internal_interprocess() const {
541 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = _impl_.interprocess_;
542 return p != nullptr ? *p : reinterpret_cast<const ::goby::zeromq::protobuf::InterProcessPortalConfig&>(
544}
545inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& FileTransferConfig::interprocess() const {
546 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.FileTransferConfig.interprocess)
547 return _internal_interprocess();
548}
551 if (GetArenaForAllocation() == nullptr) {
552 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.interprocess_);
553 }
554 _impl_.interprocess_ = interprocess;
555 if (interprocess) {
556 _impl_._has_bits_[0] |= 0x00000008u;
557 } else {
558 _impl_._has_bits_[0] &= ~0x00000008u;
559 }
560 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.zeromq.acomms.protobuf.FileTransferConfig.interprocess)
561}
562inline ::goby::zeromq::protobuf::InterProcessPortalConfig* FileTransferConfig::release_interprocess() {
563 _impl_._has_bits_[0] &= ~0x00000008u;
565 _impl_.interprocess_ = nullptr;
566#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
567 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
568 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
569 if (GetArenaForAllocation() == nullptr) { delete old; }
570#else // PROTOBUF_FORCE_COPY_IN_RELEASE
571 if (GetArenaForAllocation() != nullptr) {
572 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
573 }
574#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
575 return temp;
576}
577inline ::goby::zeromq::protobuf::InterProcessPortalConfig* FileTransferConfig::unsafe_arena_release_interprocess() {
578 // @@protoc_insertion_point(field_release:goby.apps.zeromq.acomms.protobuf.FileTransferConfig.interprocess)
579 _impl_._has_bits_[0] &= ~0x00000008u;
581 _impl_.interprocess_ = nullptr;
582 return temp;
583}
584inline ::goby::zeromq::protobuf::InterProcessPortalConfig* FileTransferConfig::_internal_mutable_interprocess() {
585 _impl_._has_bits_[0] |= 0x00000008u;
586 if (_impl_.interprocess_ == nullptr) {
588 _impl_.interprocess_ = p;
589 }
590 return _impl_.interprocess_;
591}
592inline ::goby::zeromq::protobuf::InterProcessPortalConfig* FileTransferConfig::mutable_interprocess() {
593 ::goby::zeromq::protobuf::InterProcessPortalConfig* _msg = _internal_mutable_interprocess();
594 // @@protoc_insertion_point(field_mutable:goby.apps.zeromq.acomms.protobuf.FileTransferConfig.interprocess)
595 return _msg;
596}
598 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
599 if (message_arena == nullptr) {
600 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.interprocess_);
601 }
602 if (interprocess) {
603 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
604 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
605 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(interprocess));
606 if (message_arena != submessage_arena) {
607 interprocess = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
608 message_arena, interprocess, submessage_arena);
609 }
610 _impl_._has_bits_[0] |= 0x00000008u;
611 } else {
612 _impl_._has_bits_[0] &= ~0x00000008u;
613 }
614 _impl_.interprocess_ = interprocess;
615 // @@protoc_insertion_point(field_set_allocated:goby.apps.zeromq.acomms.protobuf.FileTransferConfig.interprocess)
616}
617
618// optional bool daemon = 3 [default = false];
619inline bool FileTransferConfig::_internal_has_daemon() const {
620 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
621 return value;
622}
624 return _internal_has_daemon();
625}
627 _impl_.daemon_ = false;
628 _impl_._has_bits_[0] &= ~0x00000010u;
629}
630inline bool FileTransferConfig::_internal_daemon() const {
631 return _impl_.daemon_;
632}
633inline bool FileTransferConfig::daemon() const {
634 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.FileTransferConfig.daemon)
635 return _internal_daemon();
636}
637inline void FileTransferConfig::_internal_set_daemon(bool value) {
638 _impl_._has_bits_[0] |= 0x00000010u;
639 _impl_.daemon_ = value;
640}
641inline void FileTransferConfig::set_daemon(bool value) {
642 _internal_set_daemon(value);
643 // @@protoc_insertion_point(field_set:goby.apps.zeromq.acomms.protobuf.FileTransferConfig.daemon)
644}
645
646// required int32 local_id = 4;
647inline bool FileTransferConfig::_internal_has_local_id() const {
648 bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
649 return value;
650}
652 return _internal_has_local_id();
653}
655 _impl_.local_id_ = 0;
656 _impl_._has_bits_[0] &= ~0x00000020u;
657}
658inline int32_t FileTransferConfig::_internal_local_id() const {
659 return _impl_.local_id_;
660}
661inline int32_t FileTransferConfig::local_id() const {
662 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.FileTransferConfig.local_id)
663 return _internal_local_id();
664}
665inline void FileTransferConfig::_internal_set_local_id(int32_t value) {
666 _impl_._has_bits_[0] |= 0x00000020u;
667 _impl_.local_id_ = value;
668}
669inline void FileTransferConfig::set_local_id(int32_t value) {
670 _internal_set_local_id(value);
671 // @@protoc_insertion_point(field_set:goby.apps.zeromq.acomms.protobuf.FileTransferConfig.local_id)
672}
673
674// optional int32 remote_id = 5;
675inline bool FileTransferConfig::_internal_has_remote_id() const {
676 bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0;
677 return value;
678}
680 return _internal_has_remote_id();
681}
683 _impl_.remote_id_ = 0;
684 _impl_._has_bits_[0] &= ~0x00000040u;
685}
686inline int32_t FileTransferConfig::_internal_remote_id() const {
687 return _impl_.remote_id_;
688}
689inline int32_t FileTransferConfig::remote_id() const {
690 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.FileTransferConfig.remote_id)
691 return _internal_remote_id();
692}
693inline void FileTransferConfig::_internal_set_remote_id(int32_t value) {
694 _impl_._has_bits_[0] |= 0x00000040u;
695 _impl_.remote_id_ = value;
696}
697inline void FileTransferConfig::set_remote_id(int32_t value) {
698 _internal_set_remote_id(value);
699 // @@protoc_insertion_point(field_set:goby.apps.zeromq.acomms.protobuf.FileTransferConfig.remote_id)
700}
701
702// optional string local_file = 6;
703inline bool FileTransferConfig::_internal_has_local_file() const {
704 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
705 return value;
706}
708 return _internal_has_local_file();
709}
711 _impl_.local_file_.ClearToEmpty();
712 _impl_._has_bits_[0] &= ~0x00000001u;
713}
714inline const std::string& FileTransferConfig::local_file() const {
715 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.FileTransferConfig.local_file)
716 return _internal_local_file();
717}
718template <typename ArgT0, typename... ArgT>
719inline PROTOBUF_ALWAYS_INLINE
720void FileTransferConfig::set_local_file(ArgT0&& arg0, ArgT... args) {
721 _impl_._has_bits_[0] |= 0x00000001u;
722 _impl_.local_file_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
723 // @@protoc_insertion_point(field_set:goby.apps.zeromq.acomms.protobuf.FileTransferConfig.local_file)
724}
726 std::string* _s = _internal_mutable_local_file();
727 // @@protoc_insertion_point(field_mutable:goby.apps.zeromq.acomms.protobuf.FileTransferConfig.local_file)
728 return _s;
729}
730inline const std::string& FileTransferConfig::_internal_local_file() const {
731 return _impl_.local_file_.Get();
732}
733inline void FileTransferConfig::_internal_set_local_file(const std::string& value) {
734 _impl_._has_bits_[0] |= 0x00000001u;
735 _impl_.local_file_.Set(value, GetArenaForAllocation());
736}
737inline std::string* FileTransferConfig::_internal_mutable_local_file() {
738 _impl_._has_bits_[0] |= 0x00000001u;
739 return _impl_.local_file_.Mutable(GetArenaForAllocation());
740}
742 // @@protoc_insertion_point(field_release:goby.apps.zeromq.acomms.protobuf.FileTransferConfig.local_file)
743 if (!_internal_has_local_file()) {
744 return nullptr;
745 }
746 _impl_._has_bits_[0] &= ~0x00000001u;
747 auto* p = _impl_.local_file_.Release();
748#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
749 if (_impl_.local_file_.IsDefault()) {
750 _impl_.local_file_.Set("", GetArenaForAllocation());
751 }
752#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
753 return p;
754}
756 if (local_file != nullptr) {
757 _impl_._has_bits_[0] |= 0x00000001u;
758 } else {
759 _impl_._has_bits_[0] &= ~0x00000001u;
760 }
761 _impl_.local_file_.SetAllocated(local_file, GetArenaForAllocation());
762#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
763 if (_impl_.local_file_.IsDefault()) {
764 _impl_.local_file_.Set("", GetArenaForAllocation());
765 }
766#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
767 // @@protoc_insertion_point(field_set_allocated:goby.apps.zeromq.acomms.protobuf.FileTransferConfig.local_file)
768}
769
770// optional string remote_file = 7;
771inline bool FileTransferConfig::_internal_has_remote_file() const {
772 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
773 return value;
774}
776 return _internal_has_remote_file();
777}
779 _impl_.remote_file_.ClearToEmpty();
780 _impl_._has_bits_[0] &= ~0x00000002u;
781}
782inline const std::string& FileTransferConfig::remote_file() const {
783 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.FileTransferConfig.remote_file)
784 return _internal_remote_file();
785}
786template <typename ArgT0, typename... ArgT>
787inline PROTOBUF_ALWAYS_INLINE
788void FileTransferConfig::set_remote_file(ArgT0&& arg0, ArgT... args) {
789 _impl_._has_bits_[0] |= 0x00000002u;
790 _impl_.remote_file_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
791 // @@protoc_insertion_point(field_set:goby.apps.zeromq.acomms.protobuf.FileTransferConfig.remote_file)
792}
794 std::string* _s = _internal_mutable_remote_file();
795 // @@protoc_insertion_point(field_mutable:goby.apps.zeromq.acomms.protobuf.FileTransferConfig.remote_file)
796 return _s;
797}
798inline const std::string& FileTransferConfig::_internal_remote_file() const {
799 return _impl_.remote_file_.Get();
800}
801inline void FileTransferConfig::_internal_set_remote_file(const std::string& value) {
802 _impl_._has_bits_[0] |= 0x00000002u;
803 _impl_.remote_file_.Set(value, GetArenaForAllocation());
804}
805inline std::string* FileTransferConfig::_internal_mutable_remote_file() {
806 _impl_._has_bits_[0] |= 0x00000002u;
807 return _impl_.remote_file_.Mutable(GetArenaForAllocation());
808}
810 // @@protoc_insertion_point(field_release:goby.apps.zeromq.acomms.protobuf.FileTransferConfig.remote_file)
811 if (!_internal_has_remote_file()) {
812 return nullptr;
813 }
814 _impl_._has_bits_[0] &= ~0x00000002u;
815 auto* p = _impl_.remote_file_.Release();
816#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
817 if (_impl_.remote_file_.IsDefault()) {
818 _impl_.remote_file_.Set("", GetArenaForAllocation());
819 }
820#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
821 return p;
822}
824 if (remote_file != nullptr) {
825 _impl_._has_bits_[0] |= 0x00000002u;
826 } else {
827 _impl_._has_bits_[0] &= ~0x00000002u;
828 }
829 _impl_.remote_file_.SetAllocated(remote_file, GetArenaForAllocation());
830#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
831 if (_impl_.remote_file_.IsDefault()) {
832 _impl_.remote_file_.Set("", GetArenaForAllocation());
833 }
834#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
835 // @@protoc_insertion_point(field_set_allocated:goby.apps.zeromq.acomms.protobuf.FileTransferConfig.remote_file)
836}
837
838// optional .goby.apps.zeromq.acomms.protobuf.FileTransferConfig.Action action = 10 [default = WAIT];
839inline bool FileTransferConfig::_internal_has_action() const {
840 bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0;
841 return value;
842}
844 return _internal_has_action();
845}
847 _impl_.action_ = 0;
848 _impl_._has_bits_[0] &= ~0x00000080u;
849}
850inline ::goby::apps::zeromq::acomms::protobuf::FileTransferConfig_Action FileTransferConfig::_internal_action() const {
852}
853inline ::goby::apps::zeromq::acomms::protobuf::FileTransferConfig_Action FileTransferConfig::action() const {
854 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.FileTransferConfig.action)
855 return _internal_action();
856}
857inline void FileTransferConfig::_internal_set_action(::goby::apps::zeromq::acomms::protobuf::FileTransferConfig_Action value) {
859 _impl_._has_bits_[0] |= 0x00000080u;
860 _impl_.action_ = value;
861}
863 _internal_set_action(value);
864 // @@protoc_insertion_point(field_set:goby.apps.zeromq.acomms.protobuf.FileTransferConfig.action)
865}
866
867// optional double request_timeout = 11 [default = 600];
868inline bool FileTransferConfig::_internal_has_request_timeout() const {
869 bool value = (_impl_._has_bits_[0] & 0x00000100u) != 0;
870 return value;
871}
873 return _internal_has_request_timeout();
874}
876 _impl_.request_timeout_ = 600;
877 _impl_._has_bits_[0] &= ~0x00000100u;
878}
879inline double FileTransferConfig::_internal_request_timeout() const {
880 return _impl_.request_timeout_;
881}
883 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.FileTransferConfig.request_timeout)
884 return _internal_request_timeout();
885}
886inline void FileTransferConfig::_internal_set_request_timeout(double value) {
887 _impl_._has_bits_[0] |= 0x00000100u;
888 _impl_.request_timeout_ = value;
889}
891 _internal_set_request_timeout(value);
892 // @@protoc_insertion_point(field_set:goby.apps.zeromq.acomms.protobuf.FileTransferConfig.request_timeout)
893}
894
895#ifdef __GNUC__
896 #pragma GCC diagnostic pop
897#endif // __GNUC__
898
899// @@protoc_insertion_point(namespace_scope)
900
901} // namespace protobuf
902} // namespace acomms
903} // namespace zeromq
904} // namespace apps
905} // namespace goby
906
907PROTOBUF_NAMESPACE_OPEN
908
909template <> struct is_proto_enum< ::goby::apps::zeromq::acomms::protobuf::FileTransferConfig_Action> : ::std::true_type {};
910template <>
912 return ::goby::apps::zeromq::acomms::protobuf::FileTransferConfig_Action_descriptor();
913}
914
915PROTOBUF_NAMESPACE_CLOSE
916
917// @@protoc_insertion_point(global_scope)
918
919#include <google/protobuf/port_undef.inc>
920#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2ffile_5ftransfer_5fconfig_2eproto
PROTOBUF_NAMESPACE_OPEN ::goby::middleware::protobuf::AppConfig * Arena::CreateMaybeMessage<::goby::middleware::protobuf::AppConfig >(Arena *)
::goby::apps::zeromq::acomms::protobuf::FileTransferConfig_Action action() const
static bool Action_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Action *value)
void set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
::goby::middleware::protobuf::AppConfig * unsafe_arena_release_app()
FileTransferConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
void unsafe_arena_set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
void CopyFrom(const FileTransferConfig &from)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
::goby::middleware::protobuf::AppConfig * mutable_app()
PROTOBUF_CONSTEXPR FileTransferConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
void unsafe_arena_set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
FileTransferConfig & operator=(FileTransferConfig &&from) noexcept
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
::goby::zeromq::protobuf::InterProcessPortalConfig * unsafe_arena_release_interprocess()
const ::goby::middleware::protobuf::AppConfig & app() const
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
PROTOBUF_NODISCARD::goby::zeromq::protobuf::InterProcessPortalConfig * release_interprocess()
const ::goby::zeromq::protobuf::InterProcessPortalConfig & interprocess() const
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
void set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Action_descriptor()
void set_action(::goby::apps::zeromq::acomms::protobuf::FileTransferConfig_Action value)
FileTransferConfig & operator=(const FileTransferConfig &from)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
PROTOBUF_NODISCARD::goby::middleware::protobuf::AppConfig * release_app()
friend void swap(FileTransferConfig &a, FileTransferConfig &b)
FileTransferConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
::goby::zeromq::protobuf::InterProcessPortalConfig * mutable_interprocess()
const EnumDescriptor * GetEnumDescriptor< ::goby::apps::zeromq::acomms::protobuf::FileTransferConfig_Action >()
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fzeromq_2fprotobuf_2ffile_5ftransfer_5fconfig_2eproto
::goby::zeromq::protobuf::InterProcessPortalConfig * Arena::CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig >(Arena *)
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * FileTransferConfig_Action_descriptor()
FileTransferConfigDefaultTypeInternal _FileTransferConfig_default_instance_
const std::string & FileTransferConfig_Action_Name(T enum_t_value)
constexpr FileTransferConfig_Action FileTransferConfig_Action_Action_MAX
bool FileTransferConfig_Action_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FileTransferConfig_Action *value)
bool FileTransferConfig_Action_IsValid(int value)
constexpr FileTransferConfig_Action FileTransferConfig_Action_Action_MIN
AppConfigDefaultTypeInternal _AppConfig_default_instance_
InterProcessPortalConfigDefaultTypeInternal _InterProcessPortalConfig_default_instance_
The global namespace for the Goby project.