Ignition Msgs

API Reference

8.4.0
selection.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/selection.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fselection_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fselection_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_2fselection_2eproto();
51 
52 class Selection;
53 
54 // ===================================================================
55 
56 class IGNITION_MSGS_VISIBLE Selection : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Selection) */ {
57  public:
58  Selection();
59  virtual ~Selection();
60 
61  Selection(const Selection& from);
62 
63  inline Selection& operator=(const Selection& from) {
64  CopyFrom(from);
65  return *this;
66  }
67 
68  static const ::google::protobuf::Descriptor* descriptor();
69  static const Selection& default_instance();
70 
71  void Swap(Selection* other);
72 
73  // implements Message ----------------------------------------------
74 
75  inline Selection* New() const { return New(NULL); }
76 
77  Selection* 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 Selection& from);
81  void MergeFrom(const Selection& 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(Selection* 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 uint32 id = 2;
126  void clear_id();
127  static const int kIdFieldNumber = 2;
128  ::google::protobuf::uint32 id() const;
129  void set_id(::google::protobuf::uint32 value);
130 
131  // optional string name = 3;
132  void clear_name();
133  static const int kNameFieldNumber = 3;
134  const ::std::string& name() const;
135  void set_name(const ::std::string& value);
136  void set_name(const char* value);
137  void set_name(const char* value, size_t size);
138  ::std::string* mutable_name();
139  ::std::string* release_name();
140  void set_allocated_name(::std::string* name);
141 
142  // optional bool selected = 4;
143  void clear_selected();
144  static const int kSelectedFieldNumber = 4;
145  bool selected() const;
146  void set_selected(bool value);
147 
148  // @@protoc_insertion_point(class_scope:ignition.msgs.Selection)
149  private:
150 
151  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
152  bool _is_default_instance_;
153  ::ignition::msgs::Header* header_;
154  ::google::protobuf::internal::ArenaStringPtr name_;
155  ::google::protobuf::uint32 id_;
156  bool selected_;
157  mutable int _cached_size_;
158  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fselection_2eproto();
161 
162  void InitAsDefaultInstance();
163  static Selection* default_instance_;
164 };
165 // ===================================================================
166 
167 
168 // ===================================================================
169 
170 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
171 // Selection
172 
173 // optional .ignition.msgs.Header header = 1;
174 inline bool Selection::has_header() const {
175  return !_is_default_instance_ && header_ != NULL;
176 }
177 inline void Selection::clear_header() {
178  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
179  header_ = NULL;
180 }
181 inline const ::ignition::msgs::Header& Selection::header() const {
182  // @@protoc_insertion_point(field_get:ignition.msgs.Selection.header)
183  return header_ != NULL ? *header_ : *default_instance_->header_;
184 }
185 inline ::ignition::msgs::Header* Selection::mutable_header() {
186 
187  if (header_ == NULL) {
188  header_ = new ::ignition::msgs::Header;
189  }
190  // @@protoc_insertion_point(field_mutable:ignition.msgs.Selection.header)
191  return header_;
192 }
193 inline ::ignition::msgs::Header* Selection::release_header() {
194  // @@protoc_insertion_point(field_release:ignition.msgs.Selection.header)
195 
196  ::ignition::msgs::Header* temp = header_;
197  header_ = NULL;
198  return temp;
199 }
201  delete header_;
202  header_ = header;
203  if (header) {
204 
205  } else {
206 
207  }
208  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Selection.header)
209 }
210 
211 // optional uint32 id = 2;
212 inline void Selection::clear_id() {
213  id_ = 0u;
214 }
215 inline ::google::protobuf::uint32 Selection::id() const {
216  // @@protoc_insertion_point(field_get:ignition.msgs.Selection.id)
217  return id_;
218 }
219 inline void Selection::set_id(::google::protobuf::uint32 value) {
220 
221  id_ = value;
222  // @@protoc_insertion_point(field_set:ignition.msgs.Selection.id)
223 }
224 
225 // optional string name = 3;
226 inline void Selection::clear_name() {
227  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
228 }
229 inline const ::std::string& Selection::name() const {
230  // @@protoc_insertion_point(field_get:ignition.msgs.Selection.name)
231  return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
232 }
233 inline void Selection::set_name(const ::std::string& value) {
234 
235  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
236  // @@protoc_insertion_point(field_set:ignition.msgs.Selection.name)
237 }
238 inline void Selection::set_name(const char* value) {
239 
240  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
241  // @@protoc_insertion_point(field_set_char:ignition.msgs.Selection.name)
242 }
243 inline void Selection::set_name(const char* value, size_t size) {
244 
245  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
246  ::std::string(reinterpret_cast<const char*>(value), size));
247  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Selection.name)
248 }
249 inline ::std::string* Selection::mutable_name() {
250 
251  // @@protoc_insertion_point(field_mutable:ignition.msgs.Selection.name)
252  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
253 }
254 inline ::std::string* Selection::release_name() {
255  // @@protoc_insertion_point(field_release:ignition.msgs.Selection.name)
256 
257  return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
258 }
260  if (name != NULL) {
261 
262  } else {
263 
264  }
265  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
266  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Selection.name)
267 }
268 
269 // optional bool selected = 4;
271  selected_ = false;
272 }
273 inline bool Selection::selected() const {
274  // @@protoc_insertion_point(field_get:ignition.msgs.Selection.selected)
275  return selected_;
276 }
277 inline void Selection::set_selected(bool value) {
278 
279  selected_ = value;
280  // @@protoc_insertion_point(field_set:ignition.msgs.Selection.selected)
281 }
282 
283 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
284 
289 // @@protoc_insertion_point(namespace_scope)
290 
291 } // namespace msgs
292 } // namespace ignition
293 
294 #ifdef _MSC_VER
295 #pragma warning(pop)
296 #endif
297 // @@protoc_insertion_point(global_scope)
298 
299 #endif // PROTOBUF_ignition_2fmsgs_2fselection_2eproto__INCLUDED
Selection * New() const
Definition: selection.pb.h:75
::ignition::msgs::Header * release_header()
Definition: selection.pb.h:193
void clear_id()
Definition: selection.pb.h:212
bool has_header() const
Definition: selection.pb.h:174
const ::std::string & name() const
Definition: selection.pb.h:229
::ignition::msgs::Header * mutable_header()
Definition: selection.pb.h:185
::google::protobuf::uint32 id() const
Definition: selection.pb.h:215
::std::string * mutable_name()
Definition: selection.pb.h:249
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fselection_2eproto()
void set_allocated_name(::std::string *name)
Definition: selection.pb.h:259
void protobuf_ShutdownFile_ignition_2fmsgs_2fselection_2eproto()
std::unique_ptr< const Selection > ConstSelectionUniquePtr
Definition: selection.pb.h:286
::std::string * release_name()
Definition: selection.pb.h:254
Definition: header.pb.h:161
STL class.
void clear_selected()
Definition: selection.pb.h:270
void clear_header()
Definition: selection.pb.h:177
std::shared_ptr< Selection > SelectionSharedPtr
Definition: selection.pb.h:287
void set_allocated_header(::ignition::msgs::Header *header)
Definition: selection.pb.h:200
const ::ignition::msgs::Header & header() const
Definition: selection.pb.h:181
Selection & operator=(const Selection &from)
Definition: selection.pb.h:63
void set_id(::google::protobuf::uint32 value)
Definition: selection.pb.h:219
void protobuf_AssignDesc_ignition_2fmsgs_2fselection_2eproto()
STL class.
bool selected() const
Definition: selection.pb.h:273
std::unique_ptr< Selection > SelectionUniquePtr
Definition: selection.pb.h:285
std::shared_ptr< const Selection > ConstSelectionSharedPtr
Definition: selection.pb.h:288
int GetCachedSize() const
Definition: selection.pb.h:95
void set_name(const ::std::string &value)
Definition: selection.pb.h:233
Definition: selection.pb.h:56
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: selection.pb.h:92
void set_selected(bool value)
Definition: selection.pb.h:277
void clear_name()
Definition: selection.pb.h:226