4 #ifndef PROTOBUF_goby_2ftest_2facomms_2fdccl7_2ftest_2eproto__INCLUDED 5 #define PROTOBUF_goby_2ftest_2facomms_2fdccl7_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_2fdccl7_2ftest_2eproto();
36 void protobuf_AssignDesc_goby_2ftest_2facomms_2fdccl7_2ftest_2eproto();
37 void protobuf_ShutdownFile_goby_2ftest_2facomms_2fdccl7_2ftest_2eproto();
43 class BytesMsg :
public ::google::protobuf::Message {
55 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
56 return _unknown_fields_;
59 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
60 return &_unknown_fields_;
63 static const ::google::protobuf::Descriptor* descriptor();
64 static const BytesMsg& default_instance();
71 void CopyFrom(const ::google::protobuf::Message& from);
72 void MergeFrom(const ::google::protobuf::Message& from);
74 void MergeFrom(
const BytesMsg& from);
76 bool IsInitialized()
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_; }
88 void SetCachedSize(
int size)
const;
90 ::google::protobuf::Metadata GetMetadata()
const;
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);
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);
120 enum DCCLParameters { DCCL_ID = 10, DCCL_MAX_BYTES = 32 };
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();
128 ::google::protobuf::UnknownFieldSet _unknown_fields_;
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();
138 void InitAsDefaultInstance();
149 inline bool BytesMsg::has_req_bytes()
const {
150 return (_has_bits_[0] & 0x00000001u) != 0;
152 inline void BytesMsg::set_has_req_bytes() {
153 _has_bits_[0] |= 0x00000001u;
155 inline void BytesMsg::clear_has_req_bytes() {
156 _has_bits_[0] &= ~0x00000001u;
158 inline void BytesMsg::clear_req_bytes() {
159 if (req_bytes_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
162 clear_has_req_bytes();
164 inline const ::std::string& BytesMsg::req_bytes()
const {
168 inline void BytesMsg::set_req_bytes(const ::std::string& value) {
170 if (req_bytes_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
171 req_bytes_ = new ::std::string;
173 req_bytes_->assign(value);
176 inline void BytesMsg::set_req_bytes(
const char* value) {
178 if (req_bytes_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
179 req_bytes_ = new ::std::string;
181 req_bytes_->assign(value);
184 inline void BytesMsg::set_req_bytes(
const void* value,
size_t size) {
186 if (req_bytes_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
187 req_bytes_ = new ::std::string;
189 req_bytes_->assign(reinterpret_cast<const char*>(value), size);
192 inline ::std::string* BytesMsg::mutable_req_bytes() {
194 if (req_bytes_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
195 req_bytes_ = new ::std::string;
200 inline ::std::string* BytesMsg::release_req_bytes() {
201 clear_has_req_bytes();
202 if (req_bytes_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
205 ::std::string* temp = req_bytes_;
206 req_bytes_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
210 inline void BytesMsg::set_allocated_req_bytes(::std::string* req_bytes) {
211 if (req_bytes_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
216 req_bytes_ = req_bytes;
218 clear_has_req_bytes();
219 req_bytes_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
225 inline bool BytesMsg::has_opt_bytes()
const {
226 return (_has_bits_[0] & 0x00000002u) != 0;
228 inline void BytesMsg::set_has_opt_bytes() {
229 _has_bits_[0] |= 0x00000002u;
231 inline void BytesMsg::clear_has_opt_bytes() {
232 _has_bits_[0] &= ~0x00000002u;
234 inline void BytesMsg::clear_opt_bytes() {
235 if (opt_bytes_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
238 clear_has_opt_bytes();
240 inline const ::std::string& BytesMsg::opt_bytes()
const {
244 inline void BytesMsg::set_opt_bytes(const ::std::string& value) {
246 if (opt_bytes_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
247 opt_bytes_ = new ::std::string;
249 opt_bytes_->assign(value);
252 inline void BytesMsg::set_opt_bytes(
const char* value) {
254 if (opt_bytes_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
255 opt_bytes_ = new ::std::string;
257 opt_bytes_->assign(value);
260 inline void BytesMsg::set_opt_bytes(
const void* value,
size_t size) {
262 if (opt_bytes_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
263 opt_bytes_ = new ::std::string;
265 opt_bytes_->assign(reinterpret_cast<const char*>(value), size);
268 inline ::std::string* BytesMsg::mutable_opt_bytes() {
270 if (opt_bytes_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
271 opt_bytes_ = new ::std::string;
276 inline ::std::string* BytesMsg::release_opt_bytes() {
277 clear_has_opt_bytes();
278 if (opt_bytes_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
281 ::std::string* temp = opt_bytes_;
282 opt_bytes_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
286 inline void BytesMsg::set_allocated_opt_bytes(::std::string* opt_bytes) {
287 if (opt_bytes_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
292 opt_bytes_ = opt_bytes;
294 clear_has_opt_bytes();
295 opt_bytes_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
314 #endif // PROTOBUF_goby_2ftest_2facomms_2fdccl7_2ftest_2eproto__INCLUDED