Ignition Msgs

API Reference

8.0.0~pre1
imagegeom.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/imagegeom.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fimagegeom_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fimagegeom_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>
31 #ifndef _MSC_VER
32 #pragma GCC system_header
33 #else
34 #pragma warning(push)
35 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
36 #endif
37 #ifdef __linux__
38 #include <sys/sysmacros.h>
39 #endif
40 #include <memory>
41 #include <ignition/msgs/Export.hh>
42 // @@protoc_insertion_point(includes)
43 
44 namespace ignition {
45 namespace msgs {
46 
47 // Internal implementation detail -- do not call these.
48 void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fimagegeom_2eproto();
51 
52 class ImageGeom;
53 
54 // ===================================================================
55 
56 class IGNITION_MSGS_VISIBLE ImageGeom : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.ImageGeom) */ {
57  public:
58  ImageGeom();
59  virtual ~ImageGeom();
60 
61  ImageGeom(const ImageGeom& from);
62 
63  inline ImageGeom& operator=(const ImageGeom& from) {
64  CopyFrom(from);
65  return *this;
66  }
67 
68  static const ::google::protobuf::Descriptor* descriptor();
69  static const ImageGeom& default_instance();
70 
71  void Swap(ImageGeom* other);
72 
73  // implements Message ----------------------------------------------
74 
75  inline ImageGeom* New() const { return New(NULL); }
76 
77  ImageGeom* New(::google::protobuf::Arena* arena) const;
78  void CopyFrom(const ::google::protobuf::Message& from);
79  void MergeFrom(const ::google::protobuf::Message& from);
80  void CopyFrom(const ImageGeom& from);
81  void MergeFrom(const ImageGeom& from);
82  void Clear();
83  bool IsInitialized() const;
84 
85  int ByteSize() const;
86  bool MergePartialFromCodedStream(
87  ::google::protobuf::io::CodedInputStream* input);
88  void SerializeWithCachedSizes(
89  ::google::protobuf::io::CodedOutputStream* output) const;
90  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
91  bool deterministic, ::google::protobuf::uint8* output) const;
92  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
93  return InternalSerializeWithCachedSizesToArray(false, output);
94  }
95  int GetCachedSize() const { return _cached_size_; }
96  private:
97  void SharedCtor();
98  void SharedDtor();
99  void SetCachedSize(int size) const;
100  void InternalSwap(ImageGeom* other);
101  private:
102  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
103  return _internal_metadata_.arena();
104  }
105  inline void* MaybeArenaPtr() const {
106  return _internal_metadata_.raw_arena_ptr();
107  }
108  public:
109 
110  ::google::protobuf::Metadata GetMetadata() const;
111 
112  // nested types ----------------------------------------------------
113 
114  // accessors -------------------------------------------------------
115 
116  // optional .ignition.msgs.Header header = 1;
117  bool has_header() const;
118  void clear_header();
119  static const int kHeaderFieldNumber = 1;
120  const ::ignition::msgs::Header& header() const;
121  ::ignition::msgs::Header* mutable_header();
122  ::ignition::msgs::Header* release_header();
123  void set_allocated_header(::ignition::msgs::Header* header);
124 
125  // optional string uri = 2;
126  void clear_uri();
127  static const int kUriFieldNumber = 2;
128  const ::std::string& uri() const;
129  void set_uri(const ::std::string& value);
130  void set_uri(const char* value);
131  void set_uri(const char* value, size_t size);
132  ::std::string* mutable_uri();
133  ::std::string* release_uri();
134  void set_allocated_uri(::std::string* uri);
135 
136  // optional double scale = 3;
137  void clear_scale();
138  static const int kScaleFieldNumber = 3;
139  double scale() const;
140  void set_scale(double value);
141 
142  // optional int32 threshold = 4;
143  void clear_threshold();
144  static const int kThresholdFieldNumber = 4;
145  ::google::protobuf::int32 threshold() const;
146  void set_threshold(::google::protobuf::int32 value);
147 
148  // optional double height = 5;
149  void clear_height();
150  static const int kHeightFieldNumber = 5;
151  double height() const;
152  void set_height(double value);
153 
154  // optional int32 granularity = 6;
155  void clear_granularity();
156  static const int kGranularityFieldNumber = 6;
157  ::google::protobuf::int32 granularity() const;
158  void set_granularity(::google::protobuf::int32 value);
159 
160  // @@protoc_insertion_point(class_scope:ignition.msgs.ImageGeom)
161  private:
162 
163  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
164  bool _is_default_instance_;
165  ::ignition::msgs::Header* header_;
166  ::google::protobuf::internal::ArenaStringPtr uri_;
167  double scale_;
168  double height_;
169  ::google::protobuf::int32 threshold_;
170  ::google::protobuf::int32 granularity_;
171  mutable int _cached_size_;
172  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fimagegeom_2eproto();
175 
176  void InitAsDefaultInstance();
177  static ImageGeom* default_instance_;
178 };
179 // ===================================================================
180 
181 
182 // ===================================================================
183 
184 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
185 // ImageGeom
186 
187 // optional .ignition.msgs.Header header = 1;
188 inline bool ImageGeom::has_header() const {
189  return !_is_default_instance_ && header_ != NULL;
190 }
191 inline void ImageGeom::clear_header() {
192  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
193  header_ = NULL;
194 }
195 inline const ::ignition::msgs::Header& ImageGeom::header() const {
196  // @@protoc_insertion_point(field_get:ignition.msgs.ImageGeom.header)
197  return header_ != NULL ? *header_ : *default_instance_->header_;
198 }
199 inline ::ignition::msgs::Header* ImageGeom::mutable_header() {
200 
201  if (header_ == NULL) {
202  header_ = new ::ignition::msgs::Header;
203  }
204  // @@protoc_insertion_point(field_mutable:ignition.msgs.ImageGeom.header)
205  return header_;
206 }
207 inline ::ignition::msgs::Header* ImageGeom::release_header() {
208  // @@protoc_insertion_point(field_release:ignition.msgs.ImageGeom.header)
209 
210  ::ignition::msgs::Header* temp = header_;
211  header_ = NULL;
212  return temp;
213 }
215  delete header_;
216  header_ = header;
217  if (header) {
218 
219  } else {
220 
221  }
222  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.ImageGeom.header)
223 }
224 
225 // optional string uri = 2;
226 inline void ImageGeom::clear_uri() {
227  uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
228 }
229 inline const ::std::string& ImageGeom::uri() const {
230  // @@protoc_insertion_point(field_get:ignition.msgs.ImageGeom.uri)
231  return uri_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
232 }
233 inline void ImageGeom::set_uri(const ::std::string& value) {
234 
235  uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
236  // @@protoc_insertion_point(field_set:ignition.msgs.ImageGeom.uri)
237 }
238 inline void ImageGeom::set_uri(const char* value) {
239 
240  uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
241  // @@protoc_insertion_point(field_set_char:ignition.msgs.ImageGeom.uri)
242 }
243 inline void ImageGeom::set_uri(const char* value, size_t size) {
244 
245  uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
246  ::std::string(reinterpret_cast<const char*>(value), size));
247  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.ImageGeom.uri)
248 }
249 inline ::std::string* ImageGeom::mutable_uri() {
250 
251  // @@protoc_insertion_point(field_mutable:ignition.msgs.ImageGeom.uri)
252  return uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
253 }
254 inline ::std::string* ImageGeom::release_uri() {
255  // @@protoc_insertion_point(field_release:ignition.msgs.ImageGeom.uri)
256 
257  return uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
258 }
260  if (uri != NULL) {
261 
262  } else {
263 
264  }
265  uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), uri);
266  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.ImageGeom.uri)
267 }
268 
269 // optional double scale = 3;
270 inline void ImageGeom::clear_scale() {
271  scale_ = 0;
272 }
273 inline double ImageGeom::scale() const {
274  // @@protoc_insertion_point(field_get:ignition.msgs.ImageGeom.scale)
275  return scale_;
276 }
277 inline void ImageGeom::set_scale(double value) {
278 
279  scale_ = value;
280  // @@protoc_insertion_point(field_set:ignition.msgs.ImageGeom.scale)
281 }
282 
283 // optional int32 threshold = 4;
285  threshold_ = 0;
286 }
287 inline ::google::protobuf::int32 ImageGeom::threshold() const {
288  // @@protoc_insertion_point(field_get:ignition.msgs.ImageGeom.threshold)
289  return threshold_;
290 }
291 inline void ImageGeom::set_threshold(::google::protobuf::int32 value) {
292 
293  threshold_ = value;
294  // @@protoc_insertion_point(field_set:ignition.msgs.ImageGeom.threshold)
295 }
296 
297 // optional double height = 5;
298 inline void ImageGeom::clear_height() {
299  height_ = 0;
300 }
301 inline double ImageGeom::height() const {
302  // @@protoc_insertion_point(field_get:ignition.msgs.ImageGeom.height)
303  return height_;
304 }
305 inline void ImageGeom::set_height(double value) {
306 
307  height_ = value;
308  // @@protoc_insertion_point(field_set:ignition.msgs.ImageGeom.height)
309 }
310 
311 // optional int32 granularity = 6;
313  granularity_ = 0;
314 }
315 inline ::google::protobuf::int32 ImageGeom::granularity() const {
316  // @@protoc_insertion_point(field_get:ignition.msgs.ImageGeom.granularity)
317  return granularity_;
318 }
319 inline void ImageGeom::set_granularity(::google::protobuf::int32 value) {
320 
321  granularity_ = value;
322  // @@protoc_insertion_point(field_set:ignition.msgs.ImageGeom.granularity)
323 }
324 
325 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
326 
331 // @@protoc_insertion_point(namespace_scope)
332 
333 } // namespace msgs
334 } // namespace ignition
335 
336 #ifdef _MSC_VER
337 #pragma warning(pop)
338 #endif
339 // @@protoc_insertion_point(global_scope)
340 
341 #endif // PROTOBUF_ignition_2fmsgs_2fimagegeom_2eproto__INCLUDED
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fimagegeom_2eproto()
void set_allocated_header(::ignition::msgs::Header *header)
Definition: imagegeom.pb.h:214
::google::protobuf::int32 granularity() const
Definition: imagegeom.pb.h:315
void protobuf_ShutdownFile_ignition_2fmsgs_2fimagegeom_2eproto()
const ::ignition::msgs::Header & header() const
Definition: imagegeom.pb.h:195
int GetCachedSize() const
Definition: imagegeom.pb.h:95
::ignition::msgs::Header * release_header()
Definition: imagegeom.pb.h:207
const ::std::string & uri() const
Definition: imagegeom.pb.h:229
void clear_header()
Definition: imagegeom.pb.h:191
void set_granularity(::google::protobuf::int32 value)
Definition: imagegeom.pb.h:319
::std::string * release_uri()
Definition: imagegeom.pb.h:254
void clear_height()
Definition: imagegeom.pb.h:298
void clear_scale()
Definition: imagegeom.pb.h:270
double scale() const
Definition: imagegeom.pb.h:273
Definition: header.pb.h:161
STL class.
::std::string * mutable_uri()
Definition: imagegeom.pb.h:249
std::unique_ptr< ImageGeom > ImageGeomUniquePtr
Definition: imagegeom.pb.h:327
double height() const
Definition: imagegeom.pb.h:301
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: imagegeom.pb.h:92
void set_height(double value)
Definition: imagegeom.pb.h:305
bool has_header() const
Definition: imagegeom.pb.h:188
Definition: imagegeom.pb.h:56
void clear_uri()
Definition: imagegeom.pb.h:226
void set_threshold(::google::protobuf::int32 value)
Definition: imagegeom.pb.h:291
::ignition::msgs::Header * mutable_header()
Definition: imagegeom.pb.h:199
std::shared_ptr< ImageGeom > ImageGeomSharedPtr
Definition: imagegeom.pb.h:329
void set_allocated_uri(::std::string *uri)
Definition: imagegeom.pb.h:259
::google::protobuf::int32 threshold() const
Definition: imagegeom.pb.h:287
void set_scale(double value)
Definition: imagegeom.pb.h:277
ImageGeom & operator=(const ImageGeom &from)
Definition: imagegeom.pb.h:63
STL class.
void set_uri(const ::std::string &value)
Definition: imagegeom.pb.h:233
std::unique_ptr< const ImageGeom > ConstImageGeomUniquePtr
Definition: imagegeom.pb.h:328
void clear_threshold()
Definition: imagegeom.pb.h:284
ImageGeom * New() const
Definition: imagegeom.pb.h:75
void clear_granularity()
Definition: imagegeom.pb.h:312
void protobuf_AssignDesc_ignition_2fmsgs_2fimagegeom_2eproto()
std::shared_ptr< const ImageGeom > ConstImageGeomSharedPtr
Definition: imagegeom.pb.h:330