4 #ifndef PROTOBUF_goby_2fapps_2facomms_2fgoby_5ffile_5ftransfer_2ffile_5ftransfer_5fconfig_2eproto__INCLUDED 5 #define PROTOBUF_goby_2fapps_2facomms_2fgoby_5ffile_5ftransfer_2ffile_5ftransfer_5fconfig_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 11 #if GOOGLE_PROTOBUF_VERSION < 2006000 12 #error This file was generated by a newer version of protoc which is 13 #error incompatible with your Protocol Buffer headers. Please update 16 #if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION 17 #error This file was generated by an older version of protoc which is 18 #error incompatible with your Protocol Buffer headers. Please 19 #error regenerate this file with a newer version of protoc. 22 #include <google/protobuf/generated_message_util.h> 23 #include <google/protobuf/message.h> 24 #include <google/protobuf/repeated_field.h> 25 #include <google/protobuf/extension_set.h> 26 #include <google/protobuf/generated_enum_reflection.h> 27 #include <google/protobuf/unknown_field_set.h> 28 #include "goby/common/protobuf/option_extensions.pb.h" 29 #include "goby/common/protobuf/app_base_config.pb.h" 30 #include <boost/units/quantity.hpp> 31 #include <boost/units/absolute.hpp> 32 #include <boost/units/dimensionless_type.hpp> 33 #include <boost/units/make_scaled_unit.hpp> 41 void protobuf_AddDesc_goby_2fapps_2facomms_2fgoby_5ffile_5ftransfer_2ffile_5ftransfer_5fconfig_2eproto();
42 void protobuf_AssignDesc_goby_2fapps_2facomms_2fgoby_5ffile_5ftransfer_2ffile_5ftransfer_5fconfig_2eproto();
43 void protobuf_ShutdownFile_goby_2fapps_2facomms_2fgoby_5ffile_5ftransfer_2ffile_5ftransfer_5fconfig_2eproto();
45 class FileTransferConfig;
47 enum FileTransferConfig_Action {
48 FileTransferConfig_Action_WAIT = 0,
49 FileTransferConfig_Action_PUSH = 1,
50 FileTransferConfig_Action_PULL = 2
52 bool FileTransferConfig_Action_IsValid(
int value);
53 const FileTransferConfig_Action FileTransferConfig_Action_Action_MIN = FileTransferConfig_Action_WAIT;
54 const FileTransferConfig_Action FileTransferConfig_Action_Action_MAX = FileTransferConfig_Action_PULL;
55 const int FileTransferConfig_Action_Action_ARRAYSIZE = FileTransferConfig_Action_Action_MAX + 1;
57 const ::google::protobuf::EnumDescriptor* FileTransferConfig_Action_descriptor();
58 inline const ::std::string& FileTransferConfig_Action_Name(FileTransferConfig_Action value) {
59 return ::google::protobuf::internal::NameOfEnum(
60 FileTransferConfig_Action_descriptor(), value);
62 inline bool FileTransferConfig_Action_Parse(
63 const ::std::string& name, FileTransferConfig_Action* value) {
64 return ::google::protobuf::internal::ParseNamedEnum<FileTransferConfig_Action>(
65 FileTransferConfig_Action_descriptor(), name, value);
81 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
82 return _unknown_fields_;
85 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
86 return &_unknown_fields_;
89 static const ::google::protobuf::Descriptor* descriptor();
97 void CopyFrom(const ::google::protobuf::Message& from);
98 void MergeFrom(const ::google::protobuf::Message& from);
102 bool IsInitialized()
const;
104 int ByteSize()
const;
105 bool MergePartialFromCodedStream(
106 ::google::protobuf::io::CodedInputStream* input);
107 void SerializeWithCachedSizes(
108 ::google::protobuf::io::CodedOutputStream* output)
const;
109 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
110 int GetCachedSize()
const {
return _cached_size_; }
114 void SetCachedSize(
int size)
const;
116 ::google::protobuf::Metadata GetMetadata()
const;
120 typedef FileTransferConfig_Action Action;
121 static const Action WAIT = FileTransferConfig_Action_WAIT;
122 static const Action PUSH = FileTransferConfig_Action_PUSH;
123 static const Action PULL = FileTransferConfig_Action_PULL;
124 static inline bool Action_IsValid(
int value) {
125 return FileTransferConfig_Action_IsValid(value);
127 static const Action Action_MIN =
128 FileTransferConfig_Action_Action_MIN;
129 static const Action Action_MAX =
130 FileTransferConfig_Action_Action_MAX;
131 static const int Action_ARRAYSIZE =
132 FileTransferConfig_Action_Action_ARRAYSIZE;
133 static inline const ::google::protobuf::EnumDescriptor*
134 Action_descriptor() {
135 return FileTransferConfig_Action_descriptor();
137 static inline const ::std::string& Action_Name(Action value) {
138 return FileTransferConfig_Action_Name(value);
140 static inline bool Action_Parse(const ::std::string& name,
142 return FileTransferConfig_Action_Parse(name, value);
148 inline bool has_base()
const;
149 inline void clear_base();
150 static const int kBaseFieldNumber = 1;
151 inline const ::AppBaseConfig& base()
const;
152 inline ::AppBaseConfig* mutable_base();
153 inline ::AppBaseConfig* release_base();
157 inline bool has_daemon()
const;
158 inline void clear_daemon();
159 static const int kDaemonFieldNumber = 2;
160 inline bool daemon()
const;
161 inline void set_daemon(
bool value);
164 inline bool has_local_id()
const;
165 inline void clear_local_id();
166 static const int kLocalIdFieldNumber = 3;
167 inline ::google::protobuf::int32 local_id()
const;
168 inline void set_local_id(::google::protobuf::int32 value);
171 inline bool has_remote_id()
const;
172 inline void clear_remote_id();
173 static const int kRemoteIdFieldNumber = 4;
174 inline ::google::protobuf::int32 remote_id()
const;
175 inline void set_remote_id(::google::protobuf::int32 value);
178 inline bool has_local_file()
const;
179 inline void clear_local_file();
180 static const int kLocalFileFieldNumber = 5;
181 inline const ::std::string& local_file()
const;
182 inline void set_local_file(const ::std::string& value);
183 inline void set_local_file(
const char* value);
184 inline void set_local_file(
const char* value,
size_t size);
185 inline ::std::string* mutable_local_file();
186 inline ::std::string* release_local_file();
187 inline void set_allocated_local_file(::std::string* local_file);
190 inline bool has_remote_file()
const;
191 inline void clear_remote_file();
192 static const int kRemoteFileFieldNumber = 6;
193 inline const ::std::string& remote_file()
const;
194 inline void set_remote_file(const ::std::string& value);
195 inline void set_remote_file(
const char* value);
196 inline void set_remote_file(
const char* value,
size_t size);
197 inline ::std::string* mutable_remote_file();
198 inline ::std::string* release_remote_file();
199 inline void set_allocated_remote_file(::std::string* remote_file);
202 inline bool has_action()
const;
203 inline void clear_action();
204 static const int kActionFieldNumber = 10;
205 inline ::goby::acomms::protobuf::FileTransferConfig_Action action()
const;
206 inline void set_action(::goby::acomms::protobuf::FileTransferConfig_Action value);
209 inline bool has_request_timeout()
const;
210 inline void clear_request_timeout();
211 static const int kRequestTimeoutFieldNumber = 11;
212 inline double request_timeout()
const;
213 inline void set_request_timeout(
double value);
217 inline void set_has_base();
218 inline void clear_has_base();
219 inline void set_has_daemon();
220 inline void clear_has_daemon();
221 inline void set_has_local_id();
222 inline void clear_has_local_id();
223 inline void set_has_remote_id();
224 inline void clear_has_remote_id();
225 inline void set_has_local_file();
226 inline void clear_has_local_file();
227 inline void set_has_remote_file();
228 inline void clear_has_remote_file();
229 inline void set_has_action();
230 inline void clear_has_action();
231 inline void set_has_request_timeout();
232 inline void clear_has_request_timeout();
234 ::google::protobuf::UnknownFieldSet _unknown_fields_;
236 ::google::protobuf::uint32 _has_bits_[1];
237 mutable int _cached_size_;
240 ::google::protobuf::int32 local_id_;
241 ::std::string* local_file_;
242 ::google::protobuf::int32 remote_id_;
244 ::std::string* remote_file_;
245 double request_timeout_;
246 friend void protobuf_AddDesc_goby_2fapps_2facomms_2fgoby_5ffile_5ftransfer_2ffile_5ftransfer_5fconfig_2eproto();
247 friend void protobuf_AssignDesc_goby_2fapps_2facomms_2fgoby_5ffile_5ftransfer_2ffile_5ftransfer_5fconfig_2eproto();
248 friend void protobuf_ShutdownFile_goby_2fapps_2facomms_2fgoby_5ffile_5ftransfer_2ffile_5ftransfer_5fconfig_2eproto();
250 void InitAsDefaultInstance();
261 inline bool FileTransferConfig::has_base()
const {
262 return (_has_bits_[0] & 0x00000001u) != 0;
264 inline void FileTransferConfig::set_has_base() {
265 _has_bits_[0] |= 0x00000001u;
267 inline void FileTransferConfig::clear_has_base() {
268 _has_bits_[0] &= ~0x00000001u;
270 inline void FileTransferConfig::clear_base() {
271 if (base_ != NULL) base_->::AppBaseConfig::Clear();
274 inline const ::AppBaseConfig& FileTransferConfig::base()
const {
276 return base_ != NULL ? *base_ : *default_instance_->base_;
278 inline ::AppBaseConfig* FileTransferConfig::mutable_base() {
280 if (base_ == NULL) base_ = new ::AppBaseConfig;
284 inline ::AppBaseConfig* FileTransferConfig::release_base() {
290 inline void FileTransferConfig::set_allocated_base(::
AppBaseConfig* base) {
302 inline bool FileTransferConfig::has_daemon()
const {
303 return (_has_bits_[0] & 0x00000002u) != 0;
305 inline void FileTransferConfig::set_has_daemon() {
306 _has_bits_[0] |= 0x00000002u;
308 inline void FileTransferConfig::clear_has_daemon() {
309 _has_bits_[0] &= ~0x00000002u;
311 inline void FileTransferConfig::clear_daemon() {
315 inline bool FileTransferConfig::daemon()
const {
319 inline void FileTransferConfig::set_daemon(
bool value) {
326 inline bool FileTransferConfig::has_local_id()
const {
327 return (_has_bits_[0] & 0x00000004u) != 0;
329 inline void FileTransferConfig::set_has_local_id() {
330 _has_bits_[0] |= 0x00000004u;
332 inline void FileTransferConfig::clear_has_local_id() {
333 _has_bits_[0] &= ~0x00000004u;
335 inline void FileTransferConfig::clear_local_id() {
337 clear_has_local_id();
339 inline ::google::protobuf::int32 FileTransferConfig::local_id()
const {
343 inline void FileTransferConfig::set_local_id(::google::protobuf::int32 value) {
350 inline bool FileTransferConfig::has_remote_id()
const {
351 return (_has_bits_[0] & 0x00000008u) != 0;
353 inline void FileTransferConfig::set_has_remote_id() {
354 _has_bits_[0] |= 0x00000008u;
356 inline void FileTransferConfig::clear_has_remote_id() {
357 _has_bits_[0] &= ~0x00000008u;
359 inline void FileTransferConfig::clear_remote_id() {
361 clear_has_remote_id();
363 inline ::google::protobuf::int32 FileTransferConfig::remote_id()
const {
367 inline void FileTransferConfig::set_remote_id(::google::protobuf::int32 value) {
374 inline bool FileTransferConfig::has_local_file()
const {
375 return (_has_bits_[0] & 0x00000010u) != 0;
377 inline void FileTransferConfig::set_has_local_file() {
378 _has_bits_[0] |= 0x00000010u;
380 inline void FileTransferConfig::clear_has_local_file() {
381 _has_bits_[0] &= ~0x00000010u;
383 inline void FileTransferConfig::clear_local_file() {
384 if (local_file_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
385 local_file_->clear();
387 clear_has_local_file();
389 inline const ::std::string& FileTransferConfig::local_file()
const {
393 inline void FileTransferConfig::set_local_file(const ::std::string& value) {
394 set_has_local_file();
395 if (local_file_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
396 local_file_ = new ::std::string;
398 local_file_->assign(value);
401 inline void FileTransferConfig::set_local_file(
const char* value) {
402 set_has_local_file();
403 if (local_file_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
404 local_file_ = new ::std::string;
406 local_file_->assign(value);
409 inline void FileTransferConfig::set_local_file(
const char* value,
size_t size) {
410 set_has_local_file();
411 if (local_file_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
412 local_file_ = new ::std::string;
414 local_file_->assign(reinterpret_cast<const char*>(value), size);
417 inline ::std::string* FileTransferConfig::mutable_local_file() {
418 set_has_local_file();
419 if (local_file_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
420 local_file_ = new ::std::string;
425 inline ::std::string* FileTransferConfig::release_local_file() {
426 clear_has_local_file();
427 if (local_file_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
430 ::std::string* temp = local_file_;
431 local_file_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
435 inline void FileTransferConfig::set_allocated_local_file(::std::string* local_file) {
436 if (local_file_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
440 set_has_local_file();
441 local_file_ = local_file;
443 clear_has_local_file();
444 local_file_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
450 inline bool FileTransferConfig::has_remote_file()
const {
451 return (_has_bits_[0] & 0x00000020u) != 0;
453 inline void FileTransferConfig::set_has_remote_file() {
454 _has_bits_[0] |= 0x00000020u;
456 inline void FileTransferConfig::clear_has_remote_file() {
457 _has_bits_[0] &= ~0x00000020u;
459 inline void FileTransferConfig::clear_remote_file() {
460 if (remote_file_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
461 remote_file_->clear();
463 clear_has_remote_file();
465 inline const ::std::string& FileTransferConfig::remote_file()
const {
467 return *remote_file_;
469 inline void FileTransferConfig::set_remote_file(const ::std::string& value) {
470 set_has_remote_file();
471 if (remote_file_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
472 remote_file_ = new ::std::string;
474 remote_file_->assign(value);
477 inline void FileTransferConfig::set_remote_file(
const char* value) {
478 set_has_remote_file();
479 if (remote_file_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
480 remote_file_ = new ::std::string;
482 remote_file_->assign(value);
485 inline void FileTransferConfig::set_remote_file(
const char* value,
size_t size) {
486 set_has_remote_file();
487 if (remote_file_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
488 remote_file_ = new ::std::string;
490 remote_file_->assign(reinterpret_cast<const char*>(value), size);
493 inline ::std::string* FileTransferConfig::mutable_remote_file() {
494 set_has_remote_file();
495 if (remote_file_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
496 remote_file_ = new ::std::string;
501 inline ::std::string* FileTransferConfig::release_remote_file() {
502 clear_has_remote_file();
503 if (remote_file_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
506 ::std::string* temp = remote_file_;
507 remote_file_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
511 inline void FileTransferConfig::set_allocated_remote_file(::std::string* remote_file) {
512 if (remote_file_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
516 set_has_remote_file();
517 remote_file_ = remote_file;
519 clear_has_remote_file();
520 remote_file_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
526 inline bool FileTransferConfig::has_action()
const {
527 return (_has_bits_[0] & 0x00000040u) != 0;
529 inline void FileTransferConfig::set_has_action() {
530 _has_bits_[0] |= 0x00000040u;
532 inline void FileTransferConfig::clear_has_action() {
533 _has_bits_[0] &= ~0x00000040u;
535 inline void FileTransferConfig::clear_action() {
539 inline ::goby::acomms::protobuf::FileTransferConfig_Action FileTransferConfig::action()
const {
541 return static_cast< ::goby::acomms::protobuf::FileTransferConfig_Action
>(action_);
543 inline void FileTransferConfig::set_action(::goby::acomms::protobuf::FileTransferConfig_Action value) {
544 assert(::goby::acomms::protobuf::FileTransferConfig_Action_IsValid(value));
551 inline bool FileTransferConfig::has_request_timeout()
const {
552 return (_has_bits_[0] & 0x00000080u) != 0;
554 inline void FileTransferConfig::set_has_request_timeout() {
555 _has_bits_[0] |= 0x00000080u;
557 inline void FileTransferConfig::clear_has_request_timeout() {
558 _has_bits_[0] &= ~0x00000080u;
560 inline void FileTransferConfig::clear_request_timeout() {
561 request_timeout_ = 600;
562 clear_has_request_timeout();
564 inline double FileTransferConfig::request_timeout()
const {
566 return request_timeout_;
568 inline void FileTransferConfig::set_request_timeout(
double value) {
569 set_has_request_timeout();
570 request_timeout_ = value;
585 template <>
struct is_proto_enum< ::goby::acomms::protobuf::FileTransferConfig_Action> : ::google::protobuf::internal::true_type {};
587 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::FileTransferConfig_Action>() {
588 return ::goby::acomms::protobuf::FileTransferConfig_Action_descriptor();
597 #endif // PROTOBUF_goby_2fapps_2facomms_2fgoby_5ffile_5ftransfer_2ffile_5ftransfer_5fconfig_2eproto__INCLUDED The global namespace for the Goby project.