4 #ifndef PROTOBUF_goby_2ftest_2facomms_2fdccl2_2ftest_2eproto__INCLUDED 5 #define PROTOBUF_goby_2ftest_2facomms_2fdccl2_2ftest_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/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> 35 void protobuf_AddDesc_goby_2ftest_2facomms_2fdccl2_2ftest_2eproto();
36 void protobuf_AssignDesc_goby_2ftest_2facomms_2fdccl2_2ftest_2eproto();
37 void protobuf_ShutdownFile_goby_2ftest_2facomms_2fdccl2_2ftest_2eproto();
44 class CustomMsg :
public ::google::protobuf::Message {
56 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
57 return _unknown_fields_;
60 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
61 return &_unknown_fields_;
64 static const ::google::protobuf::Descriptor* descriptor();
65 static const CustomMsg& default_instance();
72 void CopyFrom(const ::google::protobuf::Message& from);
73 void MergeFrom(const ::google::protobuf::Message& from);
77 bool IsInitialized()
const;
80 bool MergePartialFromCodedStream(
81 ::google::protobuf::io::CodedInputStream* input);
82 void SerializeWithCachedSizes(
83 ::google::protobuf::io::CodedOutputStream* output)
const;
84 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
85 int GetCachedSize()
const {
return _cached_size_; }
89 void SetCachedSize(
int size)
const;
91 ::google::protobuf::Metadata GetMetadata()
const;
98 inline bool has_a()
const;
99 inline void clear_a();
100 static const int kAFieldNumber = 1;
101 inline ::google::protobuf::uint32 a()
const;
102 inline void set_a(::google::protobuf::uint32 value);
105 inline bool has_b()
const;
106 inline void clear_b();
107 static const int kBFieldNumber = 2;
108 inline bool b()
const;
109 inline void set_b(
bool value);
111 enum DCCLParameters { DCCL_ID = 3, DCCL_MAX_BYTES = 256 };
114 inline void set_has_a();
115 inline void clear_has_a();
116 inline void set_has_b();
117 inline void clear_has_b();
119 ::google::protobuf::UnknownFieldSet _unknown_fields_;
121 ::google::protobuf::uint32 _has_bits_[1];
122 mutable int _cached_size_;
123 ::google::protobuf::uint32 a_;
125 friend void protobuf_AddDesc_goby_2ftest_2facomms_2fdccl2_2ftest_2eproto();
126 friend void protobuf_AssignDesc_goby_2ftest_2facomms_2fdccl2_2ftest_2eproto();
127 friend void protobuf_ShutdownFile_goby_2ftest_2facomms_2fdccl2_2ftest_2eproto();
129 void InitAsDefaultInstance();
146 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
147 return _unknown_fields_;
150 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
151 return &_unknown_fields_;
154 static const ::google::protobuf::Descriptor* descriptor();
162 void CopyFrom(const ::google::protobuf::Message& from);
163 void MergeFrom(const ::google::protobuf::Message& from);
167 bool IsInitialized()
const;
169 int ByteSize()
const;
170 bool MergePartialFromCodedStream(
171 ::google::protobuf::io::CodedInputStream* input);
172 void SerializeWithCachedSizes(
173 ::google::protobuf::io::CodedOutputStream* output)
const;
174 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
175 int GetCachedSize()
const {
return _cached_size_; }
179 void SetCachedSize(
int size)
const;
181 ::google::protobuf::Metadata GetMetadata()
const;
188 inline bool has_msg()
const;
189 inline void clear_msg();
190 static const int kMsgFieldNumber = 1;
191 inline const ::CustomMsg& msg()
const;
192 inline ::CustomMsg* mutable_msg();
193 inline ::CustomMsg* release_msg();
194 inline void set_allocated_msg(::
CustomMsg* msg);
197 inline int c_size()
const;
198 inline void clear_c();
199 static const int kCFieldNumber = 3;
200 inline ::google::protobuf::int32 c(
int index)
const;
201 inline void set_c(
int index, ::google::protobuf::int32 value);
202 inline void add_c(::google::protobuf::int32 value);
203 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
205 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
208 enum DCCLParameters { DCCL_ID = 4, DCCL_MAX_BYTES = 256 };
211 inline void set_has_msg();
212 inline void clear_has_msg();
214 ::google::protobuf::UnknownFieldSet _unknown_fields_;
216 ::google::protobuf::uint32 _has_bits_[1];
217 mutable int _cached_size_;
219 ::google::protobuf::RepeatedField< ::google::protobuf::int32 > c_;
220 friend void protobuf_AddDesc_goby_2ftest_2facomms_2fdccl2_2ftest_2eproto();
221 friend void protobuf_AssignDesc_goby_2ftest_2facomms_2fdccl2_2ftest_2eproto();
222 friend void protobuf_ShutdownFile_goby_2ftest_2facomms_2fdccl2_2ftest_2eproto();
224 void InitAsDefaultInstance();
235 inline bool CustomMsg::has_a()
const {
236 return (_has_bits_[0] & 0x00000001u) != 0;
238 inline void CustomMsg::set_has_a() {
239 _has_bits_[0] |= 0x00000001u;
241 inline void CustomMsg::clear_has_a() {
242 _has_bits_[0] &= ~0x00000001u;
244 inline void CustomMsg::clear_a() {
248 inline ::google::protobuf::uint32 CustomMsg::a()
const {
252 inline void CustomMsg::set_a(::google::protobuf::uint32 value) {
259 inline bool CustomMsg::has_b()
const {
260 return (_has_bits_[0] & 0x00000002u) != 0;
262 inline void CustomMsg::set_has_b() {
263 _has_bits_[0] |= 0x00000002u;
265 inline void CustomMsg::clear_has_b() {
266 _has_bits_[0] &= ~0x00000002u;
268 inline void CustomMsg::clear_b() {
272 inline bool CustomMsg::b()
const {
276 inline void CustomMsg::set_b(
bool value) {
287 inline bool CustomMsg2::has_msg()
const {
288 return (_has_bits_[0] & 0x00000001u) != 0;
290 inline void CustomMsg2::set_has_msg() {
291 _has_bits_[0] |= 0x00000001u;
293 inline void CustomMsg2::clear_has_msg() {
294 _has_bits_[0] &= ~0x00000001u;
296 inline void CustomMsg2::clear_msg() {
297 if (msg_ != NULL) msg_->::CustomMsg::Clear();
300 inline const ::CustomMsg& CustomMsg2::msg()
const {
302 return msg_ != NULL ? *msg_ : *default_instance_->msg_;
304 inline ::CustomMsg* CustomMsg2::mutable_msg() {
306 if (msg_ == NULL) msg_ = new ::CustomMsg;
310 inline ::CustomMsg* CustomMsg2::release_msg() {
316 inline void CustomMsg2::set_allocated_msg(::
CustomMsg* msg) {
328 inline int CustomMsg2::c_size()
const {
331 inline void CustomMsg2::clear_c() {
334 inline ::google::protobuf::int32 CustomMsg2::c(
int index)
const {
336 return c_.Get(index);
338 inline void CustomMsg2::set_c(
int index, ::google::protobuf::int32 value) {
339 c_.Set(index, value);
342 inline void CustomMsg2::add_c(::google::protobuf::int32 value) {
346 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
347 CustomMsg2::c()
const {
351 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
352 CustomMsg2::mutable_c() {
371 #endif // PROTOBUF_goby_2ftest_2facomms_2fdccl2_2ftest_2eproto__INCLUDED