Ignition Msgs

API Reference

8.4.0
annotated_axis_aligned_2d_box.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/annotated_axis_aligned_2d_box.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fannotated_5faxis_5faligned_5f2d_5fbox_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fannotated_5faxis_5faligned_5f2d_5fbox_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3000000
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 3000000 < 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/arena.h>
23 #include <google/protobuf/arenastring.h>
24 #include <google/protobuf/generated_message_util.h>
25 #include <google/protobuf/metadata.h>
26 #include <google/protobuf/message.h>
27 #include <google/protobuf/repeated_field.h>
28 #include <google/protobuf/extension_set.h>
29 #include <google/protobuf/unknown_field_set.h>
32 #ifndef _MSC_VER
33 #pragma GCC system_header
34 #else
35 #pragma warning(push)
36 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
37 #endif
38 #ifdef __linux__
39 #include <sys/sysmacros.h>
40 #endif
41 #include <memory>
42 #include <ignition/msgs/Export.hh>
43 // @@protoc_insertion_point(includes)
44 
45 namespace ignition {
46 namespace msgs {
47 
48 // Internal implementation detail -- do not call these.
52 
53 class AnnotatedAxisAligned2DBox;
54 
55 // ===================================================================
56 
57 class IGNITION_MSGS_VISIBLE AnnotatedAxisAligned2DBox : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.AnnotatedAxisAligned2DBox) */ {
58  public:
60  virtual ~AnnotatedAxisAligned2DBox();
61 
63 
65  CopyFrom(from);
66  return *this;
67  }
68 
69  static const ::google::protobuf::Descriptor* descriptor();
70  static const AnnotatedAxisAligned2DBox& default_instance();
71 
72  void Swap(AnnotatedAxisAligned2DBox* other);
73 
74  // implements Message ----------------------------------------------
75 
76  inline AnnotatedAxisAligned2DBox* New() const { return New(NULL); }
77 
78  AnnotatedAxisAligned2DBox* New(::google::protobuf::Arena* arena) const;
79  void CopyFrom(const ::google::protobuf::Message& from);
80  void MergeFrom(const ::google::protobuf::Message& from);
81  void CopyFrom(const AnnotatedAxisAligned2DBox& from);
82  void MergeFrom(const AnnotatedAxisAligned2DBox& from);
83  void Clear();
84  bool IsInitialized() const;
85 
86  int ByteSize() const;
87  bool MergePartialFromCodedStream(
88  ::google::protobuf::io::CodedInputStream* input);
89  void SerializeWithCachedSizes(
90  ::google::protobuf::io::CodedOutputStream* output) const;
91  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
92  bool deterministic, ::google::protobuf::uint8* output) const;
93  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
94  return InternalSerializeWithCachedSizesToArray(false, output);
95  }
96  int GetCachedSize() const { return _cached_size_; }
97  private:
98  void SharedCtor();
99  void SharedDtor();
100  void SetCachedSize(int size) const;
101  void InternalSwap(AnnotatedAxisAligned2DBox* other);
102  private:
103  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
104  return _internal_metadata_.arena();
105  }
106  inline void* MaybeArenaPtr() const {
107  return _internal_metadata_.raw_arena_ptr();
108  }
109  public:
110 
111  ::google::protobuf::Metadata GetMetadata() const;
112 
113  // nested types ----------------------------------------------------
114 
115  // accessors -------------------------------------------------------
116 
117  // optional .ignition.msgs.Header header = 1;
118  bool has_header() const;
119  void clear_header();
120  static const int kHeaderFieldNumber = 1;
121  const ::ignition::msgs::Header& header() const;
122  ::ignition::msgs::Header* mutable_header();
123  ::ignition::msgs::Header* release_header();
124  void set_allocated_header(::ignition::msgs::Header* header);
125 
126  // optional .ignition.msgs.AxisAligned2DBox box = 2;
127  bool has_box() const;
128  void clear_box();
129  static const int kBoxFieldNumber = 2;
130  const ::ignition::msgs::AxisAligned2DBox& box() const;
131  ::ignition::msgs::AxisAligned2DBox* mutable_box();
132  ::ignition::msgs::AxisAligned2DBox* release_box();
133  void set_allocated_box(::ignition::msgs::AxisAligned2DBox* box);
134 
135  // optional uint32 label = 3;
136  void clear_label();
137  static const int kLabelFieldNumber = 3;
138  ::google::protobuf::uint32 label() const;
139  void set_label(::google::protobuf::uint32 value);
140 
141  // @@protoc_insertion_point(class_scope:ignition.msgs.AnnotatedAxisAligned2DBox)
142  private:
143 
144  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
145  bool _is_default_instance_;
146  ::ignition::msgs::Header* header_;
148  ::google::protobuf::uint32 label_;
149  mutable int _cached_size_;
153 
154  void InitAsDefaultInstance();
155  static AnnotatedAxisAligned2DBox* default_instance_;
156 };
157 // ===================================================================
158 
159 
160 // ===================================================================
161 
162 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
163 // AnnotatedAxisAligned2DBox
164 
165 // optional .ignition.msgs.Header header = 1;
167  return !_is_default_instance_ && header_ != NULL;
168 }
170  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
171  header_ = NULL;
172 }
173 inline const ::ignition::msgs::Header& AnnotatedAxisAligned2DBox::header() const {
174  // @@protoc_insertion_point(field_get:ignition.msgs.AnnotatedAxisAligned2DBox.header)
175  return header_ != NULL ? *header_ : *default_instance_->header_;
176 }
177 inline ::ignition::msgs::Header* AnnotatedAxisAligned2DBox::mutable_header() {
178 
179  if (header_ == NULL) {
180  header_ = new ::ignition::msgs::Header;
181  }
182  // @@protoc_insertion_point(field_mutable:ignition.msgs.AnnotatedAxisAligned2DBox.header)
183  return header_;
184 }
185 inline ::ignition::msgs::Header* AnnotatedAxisAligned2DBox::release_header() {
186  // @@protoc_insertion_point(field_release:ignition.msgs.AnnotatedAxisAligned2DBox.header)
187 
188  ::ignition::msgs::Header* temp = header_;
189  header_ = NULL;
190  return temp;
191 }
193  delete header_;
194  header_ = header;
195  if (header) {
196 
197  } else {
198 
199  }
200  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.AnnotatedAxisAligned2DBox.header)
201 }
202 
203 // optional .ignition.msgs.AxisAligned2DBox box = 2;
205  return !_is_default_instance_ && box_ != NULL;
206 }
208  if (GetArenaNoVirtual() == NULL && box_ != NULL) delete box_;
209  box_ = NULL;
210 }
211 inline const ::ignition::msgs::AxisAligned2DBox& AnnotatedAxisAligned2DBox::box() const {
212  // @@protoc_insertion_point(field_get:ignition.msgs.AnnotatedAxisAligned2DBox.box)
213  return box_ != NULL ? *box_ : *default_instance_->box_;
214 }
215 inline ::ignition::msgs::AxisAligned2DBox* AnnotatedAxisAligned2DBox::mutable_box() {
216 
217  if (box_ == NULL) {
218  box_ = new ::ignition::msgs::AxisAligned2DBox;
219  }
220  // @@protoc_insertion_point(field_mutable:ignition.msgs.AnnotatedAxisAligned2DBox.box)
221  return box_;
222 }
223 inline ::ignition::msgs::AxisAligned2DBox* AnnotatedAxisAligned2DBox::release_box() {
224  // @@protoc_insertion_point(field_release:ignition.msgs.AnnotatedAxisAligned2DBox.box)
225 
227  box_ = NULL;
228  return temp;
229 }
231  delete box_;
232  box_ = box;
233  if (box) {
234 
235  } else {
236 
237  }
238  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.AnnotatedAxisAligned2DBox.box)
239 }
240 
241 // optional uint32 label = 3;
243  label_ = 0u;
244 }
245 inline ::google::protobuf::uint32 AnnotatedAxisAligned2DBox::label() const {
246  // @@protoc_insertion_point(field_get:ignition.msgs.AnnotatedAxisAligned2DBox.label)
247  return label_;
248 }
249 inline void AnnotatedAxisAligned2DBox::set_label(::google::protobuf::uint32 value) {
250 
251  label_ = value;
252  // @@protoc_insertion_point(field_set:ignition.msgs.AnnotatedAxisAligned2DBox.label)
253 }
254 
255 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
256 
261 // @@protoc_insertion_point(namespace_scope)
262 
263 } // namespace msgs
264 } // namespace ignition
265 
266 #ifdef _MSC_VER
267 #pragma warning(pop)
268 #endif
269 // @@protoc_insertion_point(global_scope)
270 
271 #endif // PROTOBUF_ignition_2fmsgs_2fannotated_5faxis_5faligned_5f2d_5fbox_2eproto__INCLUDED
Definition: axis_aligned_2d_box.pb.h:57
int GetCachedSize() const
Definition: annotated_axis_aligned_2d_box.pb.h:96
void clear_label()
Definition: annotated_axis_aligned_2d_box.pb.h:242
bool has_box() const
Definition: annotated_axis_aligned_2d_box.pb.h:204
void protobuf_AssignDesc_ignition_2fmsgs_2fannotated_5faxis_5faligned_5f2d_5fbox_2eproto()
void set_label(::google::protobuf::uint32 value)
Definition: annotated_axis_aligned_2d_box.pb.h:249
void protobuf_ShutdownFile_ignition_2fmsgs_2fannotated_5faxis_5faligned_5f2d_5fbox_2eproto()
std::unique_ptr< const AnnotatedAxisAligned2DBox > ConstAnnotatedAxisAligned2DBoxUniquePtr
Definition: annotated_axis_aligned_2d_box.pb.h:258
void clear_header()
Definition: annotated_axis_aligned_2d_box.pb.h:169
std::shared_ptr< AnnotatedAxisAligned2DBox > AnnotatedAxisAligned2DBoxSharedPtr
Definition: annotated_axis_aligned_2d_box.pb.h:259
Definition: header.pb.h:161
::google::protobuf::uint32 label() const
Definition: annotated_axis_aligned_2d_box.pb.h:245
std::unique_ptr< AnnotatedAxisAligned2DBox > AnnotatedAxisAligned2DBoxUniquePtr
Definition: annotated_axis_aligned_2d_box.pb.h:257
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fannotated_5faxis_5faligned_5f2d_5fbox_2eproto()
AnnotatedAxisAligned2DBox & operator=(const AnnotatedAxisAligned2DBox &from)
Definition: annotated_axis_aligned_2d_box.pb.h:64
const ::ignition::msgs::Header & header() const
Definition: annotated_axis_aligned_2d_box.pb.h:173
::ignition::msgs::Header * release_header()
Definition: annotated_axis_aligned_2d_box.pb.h:185
AnnotatedAxisAligned2DBox * New() const
Definition: annotated_axis_aligned_2d_box.pb.h:76
::ignition::msgs::AxisAligned2DBox * release_box()
Definition: annotated_axis_aligned_2d_box.pb.h:223
STL class.
Definition: annotated_axis_aligned_2d_box.pb.h:57
void clear_box()
Definition: annotated_axis_aligned_2d_box.pb.h:207
void set_allocated_header(::ignition::msgs::Header *header)
Definition: annotated_axis_aligned_2d_box.pb.h:192
void set_allocated_box(::ignition::msgs::AxisAligned2DBox *box)
Definition: annotated_axis_aligned_2d_box.pb.h:230
::ignition::msgs::Header * mutable_header()
Definition: annotated_axis_aligned_2d_box.pb.h:177
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: annotated_axis_aligned_2d_box.pb.h:93
bool has_header() const
Definition: annotated_axis_aligned_2d_box.pb.h:166
const ::ignition::msgs::AxisAligned2DBox & box() const
Definition: annotated_axis_aligned_2d_box.pb.h:211
::ignition::msgs::AxisAligned2DBox * mutable_box()
Definition: annotated_axis_aligned_2d_box.pb.h:215
std::shared_ptr< const AnnotatedAxisAligned2DBox > ConstAnnotatedAxisAligned2DBoxSharedPtr
Definition: annotated_axis_aligned_2d_box.pb.h:260