Goby v2
test.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/test/acomms/queue1/test.proto
3 
4 #ifndef PROTOBUF_goby_2ftest_2facomms_2fqueue1_2ftest_2eproto__INCLUDED
5 #define PROTOBUF_goby_2ftest_2facomms_2fqueue1_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_2fqueue1_2ftest_2eproto();
36 void protobuf_AssignDesc_goby_2ftest_2facomms_2fqueue1_2ftest_2eproto();
37 void protobuf_ShutdownFile_goby_2ftest_2facomms_2fqueue1_2ftest_2eproto();
38 
39 class TestMsg;
40 
41 // ===================================================================
42 
43 class TestMsg : public ::google::protobuf::Message {
44  public:
45  TestMsg();
46  virtual ~TestMsg();
47 
48  TestMsg(const TestMsg& from);
49 
50  inline TestMsg& operator=(const TestMsg& 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 TestMsg& default_instance();
65 
66  void Swap(TestMsg* other);
67 
68  // implements Message ----------------------------------------------
69 
70  TestMsg* New() const;
71  void CopyFrom(const ::google::protobuf::Message& from);
72  void MergeFrom(const ::google::protobuf::Message& from);
73  void CopyFrom(const TestMsg& from);
74  void MergeFrom(const TestMsg& 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  // optional double double_default_optional = 1;
97  inline bool has_double_default_optional() const;
98  inline void clear_double_default_optional();
99  static const int kDoubleDefaultOptionalFieldNumber = 1;
100  inline double double_default_optional() const;
101  inline void set_double_default_optional(double value);
102 
103  // optional float float_default_optional = 2;
104  inline bool has_float_default_optional() const;
105  inline void clear_float_default_optional();
106  static const int kFloatDefaultOptionalFieldNumber = 2;
107  inline float float_default_optional() const;
108  inline void set_float_default_optional(float value);
109 
110  enum DCCLParameters { DCCL_ID = 2, DCCL_MAX_BYTES = 32 };
111  // @@protoc_insertion_point(class_scope:TestMsg)
112  private:
113  inline void set_has_double_default_optional();
114  inline void clear_has_double_default_optional();
115  inline void set_has_float_default_optional();
116  inline void clear_has_float_default_optional();
117 
118  ::google::protobuf::UnknownFieldSet _unknown_fields_;
119 
120  ::google::protobuf::uint32 _has_bits_[1];
121  mutable int _cached_size_;
122  double double_default_optional_;
123  float float_default_optional_;
124  friend void protobuf_AddDesc_goby_2ftest_2facomms_2fqueue1_2ftest_2eproto();
125  friend void protobuf_AssignDesc_goby_2ftest_2facomms_2fqueue1_2ftest_2eproto();
126  friend void protobuf_ShutdownFile_goby_2ftest_2facomms_2fqueue1_2ftest_2eproto();
127 
128  void InitAsDefaultInstance();
129  static TestMsg* default_instance_;
130 };
131 // ===================================================================
132 
133 
134 // ===================================================================
135 
136 // TestMsg
137 
138 // optional double double_default_optional = 1;
139 inline bool TestMsg::has_double_default_optional() const {
140  return (_has_bits_[0] & 0x00000001u) != 0;
141 }
142 inline void TestMsg::set_has_double_default_optional() {
143  _has_bits_[0] |= 0x00000001u;
144 }
145 inline void TestMsg::clear_has_double_default_optional() {
146  _has_bits_[0] &= ~0x00000001u;
147 }
148 inline void TestMsg::clear_double_default_optional() {
149  double_default_optional_ = 0;
150  clear_has_double_default_optional();
151 }
152 inline double TestMsg::double_default_optional() const {
153  // @@protoc_insertion_point(field_get:TestMsg.double_default_optional)
154  return double_default_optional_;
155 }
156 inline void TestMsg::set_double_default_optional(double value) {
157  set_has_double_default_optional();
158  double_default_optional_ = value;
159  // @@protoc_insertion_point(field_set:TestMsg.double_default_optional)
160 }
161 
162 // optional float float_default_optional = 2;
163 inline bool TestMsg::has_float_default_optional() const {
164  return (_has_bits_[0] & 0x00000002u) != 0;
165 }
166 inline void TestMsg::set_has_float_default_optional() {
167  _has_bits_[0] |= 0x00000002u;
168 }
169 inline void TestMsg::clear_has_float_default_optional() {
170  _has_bits_[0] &= ~0x00000002u;
171 }
172 inline void TestMsg::clear_float_default_optional() {
173  float_default_optional_ = 0;
174  clear_has_float_default_optional();
175 }
176 inline float TestMsg::float_default_optional() const {
177  // @@protoc_insertion_point(field_get:TestMsg.float_default_optional)
178  return float_default_optional_;
179 }
180 inline void TestMsg::set_float_default_optional(float value) {
181  set_has_float_default_optional();
182  float_default_optional_ = value;
183  // @@protoc_insertion_point(field_set:TestMsg.float_default_optional)
184 }
185 
186 
187 // @@protoc_insertion_point(namespace_scope)
188 
189 #ifndef SWIG
190 namespace google {
191 namespace protobuf {
192 
193 
194 } // namespace google
195 } // namespace protobuf
196 #endif // SWIG
197 
198 // @@protoc_insertion_point(global_scope)
199 
200 #endif // PROTOBUF_goby_2ftest_2facomms_2fqueue1_2ftest_2eproto__INCLUDED