Goby v2
test.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/test/acomms/dccl3/test.proto
3 
4 #ifndef PROTOBUF_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto__INCLUDED
5 #define PROTOBUF_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
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
14 #error your headers.
15 #endif
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.
20 #endif
21 
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/unknown_field_set.h>
27 #include "goby/common/protobuf/option_extensions.pb.h"
28 #include "dccl/protobuf/option_extensions.pb.h"
29 #include "goby/test/acomms/dccl3/header.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>
34 // @@protoc_insertion_point(includes)
35 
36 // Internal implementation detail -- do not call these.
37 void protobuf_AddDesc_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto();
38 void protobuf_AssignDesc_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto();
39 void protobuf_ShutdownFile_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto();
40 
41 class GobyMessage;
42 
43 // ===================================================================
44 
45 class GobyMessage : public ::google::protobuf::Message {
46  public:
47  GobyMessage();
48  virtual ~GobyMessage();
49 
50  GobyMessage(const GobyMessage& from);
51 
52  inline GobyMessage& operator=(const GobyMessage& from) {
53  CopyFrom(from);
54  return *this;
55  }
56 
57  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
58  return _unknown_fields_;
59  }
60 
61  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
62  return &_unknown_fields_;
63  }
64 
65  static const ::google::protobuf::Descriptor* descriptor();
66  static const GobyMessage& default_instance();
67 
68  void Swap(GobyMessage* other);
69 
70  // implements Message ----------------------------------------------
71 
72  GobyMessage* New() const;
73  void CopyFrom(const ::google::protobuf::Message& from);
74  void MergeFrom(const ::google::protobuf::Message& from);
75  void CopyFrom(const GobyMessage& from);
76  void MergeFrom(const GobyMessage& from);
77  void Clear();
78  bool IsInitialized() const;
79 
80  int ByteSize() const;
81  bool MergePartialFromCodedStream(
82  ::google::protobuf::io::CodedInputStream* input);
83  void SerializeWithCachedSizes(
84  ::google::protobuf::io::CodedOutputStream* output) const;
85  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
86  int GetCachedSize() const { return _cached_size_; }
87  private:
88  void SharedCtor();
89  void SharedDtor();
90  void SetCachedSize(int size) const;
91  public:
92  ::google::protobuf::Metadata GetMetadata() const;
93 
94  // nested types ----------------------------------------------------
95 
96  // accessors -------------------------------------------------------
97 
98  // required string telegram = 1;
99  inline bool has_telegram() const;
100  inline void clear_telegram();
101  static const int kTelegramFieldNumber = 1;
102  inline const ::std::string& telegram() const;
103  inline void set_telegram(const ::std::string& value);
104  inline void set_telegram(const char* value);
105  inline void set_telegram(const char* value, size_t size);
106  inline ::std::string* mutable_telegram();
107  inline ::std::string* release_telegram();
108  inline void set_allocated_telegram(::std::string* telegram);
109 
110  // required .Header header = 2;
111  inline bool has_header() const;
112  inline void clear_header();
113  static const int kHeaderFieldNumber = 2;
114  inline const ::Header& header() const;
115  inline ::Header* mutable_header();
116  inline ::Header* release_header();
117  inline void set_allocated_header(::Header* header);
118 
119  enum DCCLParameters { DCCL_ID = 4, DCCL_MAX_BYTES = 32 };
120  // @@protoc_insertion_point(class_scope:GobyMessage)
121  private:
122  inline void set_has_telegram();
123  inline void clear_has_telegram();
124  inline void set_has_header();
125  inline void clear_has_header();
126 
127  ::google::protobuf::UnknownFieldSet _unknown_fields_;
128 
129  ::google::protobuf::uint32 _has_bits_[1];
130  mutable int _cached_size_;
131  ::std::string* telegram_;
132  ::Header* header_;
133  friend void protobuf_AddDesc_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto();
134  friend void protobuf_AssignDesc_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto();
135  friend void protobuf_ShutdownFile_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto();
136 
137  void InitAsDefaultInstance();
138  static GobyMessage* default_instance_;
139 };
140 // ===================================================================
141 
142 
143 // ===================================================================
144 
145 // GobyMessage
146 
147 // required string telegram = 1;
148 inline bool GobyMessage::has_telegram() const {
149  return (_has_bits_[0] & 0x00000001u) != 0;
150 }
151 inline void GobyMessage::set_has_telegram() {
152  _has_bits_[0] |= 0x00000001u;
153 }
154 inline void GobyMessage::clear_has_telegram() {
155  _has_bits_[0] &= ~0x00000001u;
156 }
157 inline void GobyMessage::clear_telegram() {
158  if (telegram_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
159  telegram_->clear();
160  }
161  clear_has_telegram();
162 }
163 inline const ::std::string& GobyMessage::telegram() const {
164  // @@protoc_insertion_point(field_get:GobyMessage.telegram)
165  return *telegram_;
166 }
167 inline void GobyMessage::set_telegram(const ::std::string& value) {
168  set_has_telegram();
169  if (telegram_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
170  telegram_ = new ::std::string;
171  }
172  telegram_->assign(value);
173  // @@protoc_insertion_point(field_set:GobyMessage.telegram)
174 }
175 inline void GobyMessage::set_telegram(const char* value) {
176  set_has_telegram();
177  if (telegram_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
178  telegram_ = new ::std::string;
179  }
180  telegram_->assign(value);
181  // @@protoc_insertion_point(field_set_char:GobyMessage.telegram)
182 }
183 inline void GobyMessage::set_telegram(const char* value, size_t size) {
184  set_has_telegram();
185  if (telegram_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
186  telegram_ = new ::std::string;
187  }
188  telegram_->assign(reinterpret_cast<const char*>(value), size);
189  // @@protoc_insertion_point(field_set_pointer:GobyMessage.telegram)
190 }
191 inline ::std::string* GobyMessage::mutable_telegram() {
192  set_has_telegram();
193  if (telegram_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
194  telegram_ = new ::std::string;
195  }
196  // @@protoc_insertion_point(field_mutable:GobyMessage.telegram)
197  return telegram_;
198 }
199 inline ::std::string* GobyMessage::release_telegram() {
200  clear_has_telegram();
201  if (telegram_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
202  return NULL;
203  } else {
204  ::std::string* temp = telegram_;
205  telegram_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
206  return temp;
207  }
208 }
209 inline void GobyMessage::set_allocated_telegram(::std::string* telegram) {
210  if (telegram_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
211  delete telegram_;
212  }
213  if (telegram) {
214  set_has_telegram();
215  telegram_ = telegram;
216  } else {
217  clear_has_telegram();
218  telegram_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
219  }
220  // @@protoc_insertion_point(field_set_allocated:GobyMessage.telegram)
221 }
222 
223 // required .Header header = 2;
224 inline bool GobyMessage::has_header() const {
225  return (_has_bits_[0] & 0x00000002u) != 0;
226 }
227 inline void GobyMessage::set_has_header() {
228  _has_bits_[0] |= 0x00000002u;
229 }
230 inline void GobyMessage::clear_has_header() {
231  _has_bits_[0] &= ~0x00000002u;
232 }
233 inline void GobyMessage::clear_header() {
234  if (header_ != NULL) header_->::Header::Clear();
235  clear_has_header();
236 }
237 inline const ::Header& GobyMessage::header() const {
238  // @@protoc_insertion_point(field_get:GobyMessage.header)
239  return header_ != NULL ? *header_ : *default_instance_->header_;
240 }
241 inline ::Header* GobyMessage::mutable_header() {
242  set_has_header();
243  if (header_ == NULL) header_ = new ::Header;
244  // @@protoc_insertion_point(field_mutable:GobyMessage.header)
245  return header_;
246 }
247 inline ::Header* GobyMessage::release_header() {
248  clear_has_header();
249  ::Header* temp = header_;
250  header_ = NULL;
251  return temp;
252 }
253 inline void GobyMessage::set_allocated_header(::Header* header) {
254  delete header_;
255  header_ = header;
256  if (header) {
257  set_has_header();
258  } else {
259  clear_has_header();
260  }
261  // @@protoc_insertion_point(field_set_allocated:GobyMessage.header)
262 }
263 
264 
265 // @@protoc_insertion_point(namespace_scope)
266 
267 #ifndef SWIG
268 namespace google {
269 namespace protobuf {
270 
271 
272 } // namespace google
273 } // namespace protobuf
274 #endif // SWIG
275 
276 // @@protoc_insertion_point(global_scope)
277 
278 #endif // PROTOBUF_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto__INCLUDED