Goby v2
test.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/test/acomms/dccl7/test.proto
3 
4 #ifndef PROTOBUF_goby_2ftest_2facomms_2fdccl7_2ftest_2eproto__INCLUDED
5 #define PROTOBUF_goby_2ftest_2facomms_2fdccl7_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 "dccl/option_extensions.pb.h"
28 #include <boost/units/quantity.hpp>
29 #include <boost/units/absolute.hpp>
30 #include <boost/units/dimensionless_type.hpp>
31 #include <boost/units/make_scaled_unit.hpp>
32 // @@protoc_insertion_point(includes)
33 
34 // Internal implementation detail -- do not call these.
35 void protobuf_AddDesc_goby_2ftest_2facomms_2fdccl7_2ftest_2eproto();
36 void protobuf_AssignDesc_goby_2ftest_2facomms_2fdccl7_2ftest_2eproto();
37 void protobuf_ShutdownFile_goby_2ftest_2facomms_2fdccl7_2ftest_2eproto();
38 
39 class BytesMsg;
40 
41 // ===================================================================
42 
43 class BytesMsg : public ::google::protobuf::Message {
44  public:
45  BytesMsg();
46  virtual ~BytesMsg();
47 
48  BytesMsg(const BytesMsg& from);
49 
50  inline BytesMsg& operator=(const BytesMsg& from) {
51  CopyFrom(from);
52  return *this;
53  }
54 
55  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
56  return _unknown_fields_;
57  }
58 
59  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
60  return &_unknown_fields_;
61  }
62 
63  static const ::google::protobuf::Descriptor* descriptor();
64  static const BytesMsg& default_instance();
65 
66  void Swap(BytesMsg* other);
67 
68  // implements Message ----------------------------------------------
69 
70  BytesMsg* New() const;
71  void CopyFrom(const ::google::protobuf::Message& from);
72  void MergeFrom(const ::google::protobuf::Message& from);
73  void CopyFrom(const BytesMsg& from);
74  void MergeFrom(const BytesMsg& from);
75  void Clear();
76  bool IsInitialized() const;
77 
78  int ByteSize() const;
79  bool MergePartialFromCodedStream(
80  ::google::protobuf::io::CodedInputStream* input);
81  void SerializeWithCachedSizes(
82  ::google::protobuf::io::CodedOutputStream* output) const;
83  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
84  int GetCachedSize() const { return _cached_size_; }
85  private:
86  void SharedCtor();
87  void SharedDtor();
88  void SetCachedSize(int size) const;
89  public:
90  ::google::protobuf::Metadata GetMetadata() const;
91 
92  // nested types ----------------------------------------------------
93 
94  // accessors -------------------------------------------------------
95 
96  // required bytes req_bytes = 1;
97  inline bool has_req_bytes() const;
98  inline void clear_req_bytes();
99  static const int kReqBytesFieldNumber = 1;
100  inline const ::std::string& req_bytes() const;
101  inline void set_req_bytes(const ::std::string& value);
102  inline void set_req_bytes(const char* value);
103  inline void set_req_bytes(const void* value, size_t size);
104  inline ::std::string* mutable_req_bytes();
105  inline ::std::string* release_req_bytes();
106  inline void set_allocated_req_bytes(::std::string* req_bytes);
107 
108  // optional bytes opt_bytes = 2;
109  inline bool has_opt_bytes() const;
110  inline void clear_opt_bytes();
111  static const int kOptBytesFieldNumber = 2;
112  inline const ::std::string& opt_bytes() const;
113  inline void set_opt_bytes(const ::std::string& value);
114  inline void set_opt_bytes(const char* value);
115  inline void set_opt_bytes(const void* value, size_t size);
116  inline ::std::string* mutable_opt_bytes();
117  inline ::std::string* release_opt_bytes();
118  inline void set_allocated_opt_bytes(::std::string* opt_bytes);
119 
120  enum DCCLParameters { DCCL_ID = 10, DCCL_MAX_BYTES = 32 };
121  // @@protoc_insertion_point(class_scope:BytesMsg)
122  private:
123  inline void set_has_req_bytes();
124  inline void clear_has_req_bytes();
125  inline void set_has_opt_bytes();
126  inline void clear_has_opt_bytes();
127 
128  ::google::protobuf::UnknownFieldSet _unknown_fields_;
129 
130  ::google::protobuf::uint32 _has_bits_[1];
131  mutable int _cached_size_;
132  ::std::string* req_bytes_;
133  ::std::string* opt_bytes_;
134  friend void protobuf_AddDesc_goby_2ftest_2facomms_2fdccl7_2ftest_2eproto();
135  friend void protobuf_AssignDesc_goby_2ftest_2facomms_2fdccl7_2ftest_2eproto();
136  friend void protobuf_ShutdownFile_goby_2ftest_2facomms_2fdccl7_2ftest_2eproto();
137 
138  void InitAsDefaultInstance();
139  static BytesMsg* default_instance_;
140 };
141 // ===================================================================
142 
143 
144 // ===================================================================
145 
146 // BytesMsg
147 
148 // required bytes req_bytes = 1;
149 inline bool BytesMsg::has_req_bytes() const {
150  return (_has_bits_[0] & 0x00000001u) != 0;
151 }
152 inline void BytesMsg::set_has_req_bytes() {
153  _has_bits_[0] |= 0x00000001u;
154 }
155 inline void BytesMsg::clear_has_req_bytes() {
156  _has_bits_[0] &= ~0x00000001u;
157 }
158 inline void BytesMsg::clear_req_bytes() {
159  if (req_bytes_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
160  req_bytes_->clear();
161  }
162  clear_has_req_bytes();
163 }
164 inline const ::std::string& BytesMsg::req_bytes() const {
165  // @@protoc_insertion_point(field_get:BytesMsg.req_bytes)
166  return *req_bytes_;
167 }
168 inline void BytesMsg::set_req_bytes(const ::std::string& value) {
169  set_has_req_bytes();
170  if (req_bytes_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
171  req_bytes_ = new ::std::string;
172  }
173  req_bytes_->assign(value);
174  // @@protoc_insertion_point(field_set:BytesMsg.req_bytes)
175 }
176 inline void BytesMsg::set_req_bytes(const char* value) {
177  set_has_req_bytes();
178  if (req_bytes_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
179  req_bytes_ = new ::std::string;
180  }
181  req_bytes_->assign(value);
182  // @@protoc_insertion_point(field_set_char:BytesMsg.req_bytes)
183 }
184 inline void BytesMsg::set_req_bytes(const void* value, size_t size) {
185  set_has_req_bytes();
186  if (req_bytes_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
187  req_bytes_ = new ::std::string;
188  }
189  req_bytes_->assign(reinterpret_cast<const char*>(value), size);
190  // @@protoc_insertion_point(field_set_pointer:BytesMsg.req_bytes)
191 }
192 inline ::std::string* BytesMsg::mutable_req_bytes() {
193  set_has_req_bytes();
194  if (req_bytes_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
195  req_bytes_ = new ::std::string;
196  }
197  // @@protoc_insertion_point(field_mutable:BytesMsg.req_bytes)
198  return req_bytes_;
199 }
200 inline ::std::string* BytesMsg::release_req_bytes() {
201  clear_has_req_bytes();
202  if (req_bytes_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
203  return NULL;
204  } else {
205  ::std::string* temp = req_bytes_;
206  req_bytes_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
207  return temp;
208  }
209 }
210 inline void BytesMsg::set_allocated_req_bytes(::std::string* req_bytes) {
211  if (req_bytes_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
212  delete req_bytes_;
213  }
214  if (req_bytes) {
215  set_has_req_bytes();
216  req_bytes_ = req_bytes;
217  } else {
218  clear_has_req_bytes();
219  req_bytes_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
220  }
221  // @@protoc_insertion_point(field_set_allocated:BytesMsg.req_bytes)
222 }
223 
224 // optional bytes opt_bytes = 2;
225 inline bool BytesMsg::has_opt_bytes() const {
226  return (_has_bits_[0] & 0x00000002u) != 0;
227 }
228 inline void BytesMsg::set_has_opt_bytes() {
229  _has_bits_[0] |= 0x00000002u;
230 }
231 inline void BytesMsg::clear_has_opt_bytes() {
232  _has_bits_[0] &= ~0x00000002u;
233 }
234 inline void BytesMsg::clear_opt_bytes() {
235  if (opt_bytes_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
236  opt_bytes_->clear();
237  }
238  clear_has_opt_bytes();
239 }
240 inline const ::std::string& BytesMsg::opt_bytes() const {
241  // @@protoc_insertion_point(field_get:BytesMsg.opt_bytes)
242  return *opt_bytes_;
243 }
244 inline void BytesMsg::set_opt_bytes(const ::std::string& value) {
245  set_has_opt_bytes();
246  if (opt_bytes_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
247  opt_bytes_ = new ::std::string;
248  }
249  opt_bytes_->assign(value);
250  // @@protoc_insertion_point(field_set:BytesMsg.opt_bytes)
251 }
252 inline void BytesMsg::set_opt_bytes(const char* value) {
253  set_has_opt_bytes();
254  if (opt_bytes_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
255  opt_bytes_ = new ::std::string;
256  }
257  opt_bytes_->assign(value);
258  // @@protoc_insertion_point(field_set_char:BytesMsg.opt_bytes)
259 }
260 inline void BytesMsg::set_opt_bytes(const void* value, size_t size) {
261  set_has_opt_bytes();
262  if (opt_bytes_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
263  opt_bytes_ = new ::std::string;
264  }
265  opt_bytes_->assign(reinterpret_cast<const char*>(value), size);
266  // @@protoc_insertion_point(field_set_pointer:BytesMsg.opt_bytes)
267 }
268 inline ::std::string* BytesMsg::mutable_opt_bytes() {
269  set_has_opt_bytes();
270  if (opt_bytes_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
271  opt_bytes_ = new ::std::string;
272  }
273  // @@protoc_insertion_point(field_mutable:BytesMsg.opt_bytes)
274  return opt_bytes_;
275 }
276 inline ::std::string* BytesMsg::release_opt_bytes() {
277  clear_has_opt_bytes();
278  if (opt_bytes_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
279  return NULL;
280  } else {
281  ::std::string* temp = opt_bytes_;
282  opt_bytes_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
283  return temp;
284  }
285 }
286 inline void BytesMsg::set_allocated_opt_bytes(::std::string* opt_bytes) {
287  if (opt_bytes_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
288  delete opt_bytes_;
289  }
290  if (opt_bytes) {
291  set_has_opt_bytes();
292  opt_bytes_ = opt_bytes;
293  } else {
294  clear_has_opt_bytes();
295  opt_bytes_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
296  }
297  // @@protoc_insertion_point(field_set_allocated:BytesMsg.opt_bytes)
298 }
299 
300 
301 // @@protoc_insertion_point(namespace_scope)
302 
303 #ifndef SWIG
304 namespace google {
305 namespace protobuf {
306 
307 
308 } // namespace google
309 } // namespace protobuf
310 #endif // SWIG
311 
312 // @@protoc_insertion_point(global_scope)
313 
314 #endif // PROTOBUF_goby_2ftest_2facomms_2fdccl7_2ftest_2eproto__INCLUDED