Ignition Msgs

API Reference

8.4.0
param.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/param.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fparam_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fparam_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/map.h>
30 #include <google/protobuf/map_field_inl.h>
31 #include <google/protobuf/unknown_field_set.h>
32 #include "ignition/msgs/any.pb.h"
34 #ifndef _MSC_VER
35 #pragma GCC system_header
36 #else
37 #pragma warning(push)
38 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
39 #endif
40 #ifdef __linux__
41 #include <sys/sysmacros.h>
42 #endif
43 #include <memory>
44 #include <ignition/msgs/Export.hh>
45 // @@protoc_insertion_point(includes)
46 
47 namespace ignition {
48 namespace msgs {
49 
50 // Internal implementation detail -- do not call these.
51 void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fparam_2eproto();
54 
55 class Param;
56 
57 // ===================================================================
58 
59 class IGNITION_MSGS_VISIBLE Param : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Param) */ {
60  public:
61  Param();
62  virtual ~Param();
63 
64  Param(const Param& from);
65 
66  inline Param& operator=(const Param& from) {
67  CopyFrom(from);
68  return *this;
69  }
70 
71  static const ::google::protobuf::Descriptor* descriptor();
72  static const Param& default_instance();
73 
74  void Swap(Param* other);
75 
76  // implements Message ----------------------------------------------
77 
78  inline Param* New() const { return New(NULL); }
79 
80  Param* New(::google::protobuf::Arena* arena) const;
81  void CopyFrom(const ::google::protobuf::Message& from);
82  void MergeFrom(const ::google::protobuf::Message& from);
83  void CopyFrom(const Param& from);
84  void MergeFrom(const Param& from);
85  void Clear();
86  bool IsInitialized() const;
87 
88  int ByteSize() const;
89  bool MergePartialFromCodedStream(
90  ::google::protobuf::io::CodedInputStream* input);
91  void SerializeWithCachedSizes(
92  ::google::protobuf::io::CodedOutputStream* output) const;
93  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
94  bool deterministic, ::google::protobuf::uint8* output) const;
95  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
96  return InternalSerializeWithCachedSizesToArray(false, output);
97  }
98  int GetCachedSize() const { return _cached_size_; }
99  private:
100  void SharedCtor();
101  void SharedDtor();
102  void SetCachedSize(int size) const;
103  void InternalSwap(Param* other);
104  private:
105  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
106  return _internal_metadata_.arena();
107  }
108  inline void* MaybeArenaPtr() const {
109  return _internal_metadata_.raw_arena_ptr();
110  }
111  public:
112 
113  ::google::protobuf::Metadata GetMetadata() const;
114 
115  // nested types ----------------------------------------------------
116 
117 
118  // accessors -------------------------------------------------------
119 
120  // optional .ignition.msgs.Header header = 1;
121  bool has_header() const;
122  void clear_header();
123  static const int kHeaderFieldNumber = 1;
124  const ::ignition::msgs::Header& header() const;
125  ::ignition::msgs::Header* mutable_header();
126  ::ignition::msgs::Header* release_header();
127  void set_allocated_header(::ignition::msgs::Header* header);
128 
129  // map<string, .ignition.msgs.Any> params = 2;
130  int params_size() const;
131  void clear_params();
132  static const int kParamsFieldNumber = 2;
133  const ::google::protobuf::Map< ::std::string, ::ignition::msgs::Any >&
134  params() const;
135  ::google::protobuf::Map< ::std::string, ::ignition::msgs::Any >*
136  mutable_params();
137 
138  // repeated .ignition.msgs.Param children = 3;
139  int children_size() const;
140  void clear_children();
141  static const int kChildrenFieldNumber = 3;
142  const ::ignition::msgs::Param& children(int index) const;
143  ::ignition::msgs::Param* mutable_children(int index);
144  ::ignition::msgs::Param* add_children();
145  ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Param >*
146  mutable_children();
147  const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Param >&
148  children() const;
149 
150  // @@protoc_insertion_point(class_scope:ignition.msgs.Param)
151  private:
152 
153  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
154  bool _is_default_instance_;
155  ::ignition::msgs::Header* header_;
156  typedef ::google::protobuf::internal::MapEntryLite<
158  ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
159  ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
160  0 >
161  Param_ParamsEntry;
162  ::google::protobuf::internal::MapField<
163  ::std::string, ::ignition::msgs::Any,
164  ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
165  ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
166  0 > params_;
167  ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Param > children_;
168  mutable int _cached_size_;
169  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fparam_2eproto();
172 
173  void InitAsDefaultInstance();
174  static Param* default_instance_;
175 };
176 // ===================================================================
177 
178 
179 // ===================================================================
180 
181 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
182 // Param
183 
184 // optional .ignition.msgs.Header header = 1;
185 inline bool Param::has_header() const {
186  return !_is_default_instance_ && header_ != NULL;
187 }
188 inline void Param::clear_header() {
189  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
190  header_ = NULL;
191 }
192 inline const ::ignition::msgs::Header& Param::header() const {
193  // @@protoc_insertion_point(field_get:ignition.msgs.Param.header)
194  return header_ != NULL ? *header_ : *default_instance_->header_;
195 }
196 inline ::ignition::msgs::Header* Param::mutable_header() {
197 
198  if (header_ == NULL) {
199  header_ = new ::ignition::msgs::Header;
200  }
201  // @@protoc_insertion_point(field_mutable:ignition.msgs.Param.header)
202  return header_;
203 }
204 inline ::ignition::msgs::Header* Param::release_header() {
205  // @@protoc_insertion_point(field_release:ignition.msgs.Param.header)
206 
207  ::ignition::msgs::Header* temp = header_;
208  header_ = NULL;
209  return temp;
210 }
212  delete header_;
213  header_ = header;
214  if (header) {
215 
216  } else {
217 
218  }
219  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Param.header)
220 }
221 
222 // map<string, .ignition.msgs.Any> params = 2;
223 inline int Param::params_size() const {
224  return params_.size();
225 }
226 inline void Param::clear_params() {
227  params_.Clear();
228 }
229 inline const ::google::protobuf::Map< ::std::string, ::ignition::msgs::Any >&
230 Param::params() const {
231  // @@protoc_insertion_point(field_map:ignition.msgs.Param.params)
232  return params_.GetMap();
233 }
234 inline ::google::protobuf::Map< ::std::string, ::ignition::msgs::Any >*
236  // @@protoc_insertion_point(field_mutable_map:ignition.msgs.Param.params)
237  return params_.MutableMap();
238 }
239 
240 // repeated .ignition.msgs.Param children = 3;
241 inline int Param::children_size() const {
242  return children_.size();
243 }
244 inline void Param::clear_children() {
245  children_.Clear();
246 }
247 inline const ::ignition::msgs::Param& Param::children(int index) const {
248  // @@protoc_insertion_point(field_get:ignition.msgs.Param.children)
249  return children_.Get(index);
250 }
251 inline ::ignition::msgs::Param* Param::mutable_children(int index) {
252  // @@protoc_insertion_point(field_mutable:ignition.msgs.Param.children)
253  return children_.Mutable(index);
254 }
255 inline ::ignition::msgs::Param* Param::add_children() {
256  // @@protoc_insertion_point(field_add:ignition.msgs.Param.children)
257  return children_.Add();
258 }
259 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Param >*
261  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.Param.children)
262  return &children_;
263 }
264 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Param >&
266  // @@protoc_insertion_point(field_list:ignition.msgs.Param.children)
267  return children_;
268 }
269 
270 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
271 
276 // @@protoc_insertion_point(namespace_scope)
277 
278 } // namespace msgs
279 } // namespace ignition
280 
281 #ifdef _MSC_VER
282 #pragma warning(pop)
283 #endif
284 // @@protoc_insertion_point(global_scope)
285 
286 #endif // PROTOBUF_ignition_2fmsgs_2fparam_2eproto__INCLUDED
Param * New() const
Definition: param.pb.h:78
void protobuf_ShutdownFile_ignition_2fmsgs_2fparam_2eproto()
void clear_children()
Definition: param.pb.h:244
bool has_header() const
Definition: param.pb.h:185
std::shared_ptr< const Param > ConstParamSharedPtr
Definition: param.pb.h:275
std::unique_ptr< Param > ParamUniquePtr
Definition: param.pb.h:272
std::shared_ptr< Param > ParamSharedPtr
Definition: param.pb.h:274
::ignition::msgs::Param * add_children()
Definition: param.pb.h:255
void clear_params()
Definition: param.pb.h:226
int GetCachedSize() const
Definition: param.pb.h:98
int children_size() const
Definition: param.pb.h:241
Definition: param.pb.h:59
void set_allocated_header(::ignition::msgs::Header *header)
Definition: param.pb.h:211
Definition: header.pb.h:161
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fparam_2eproto()
STL class.
::ignition::msgs::Header * mutable_header()
Definition: param.pb.h:196
Param & operator=(const Param &from)
Definition: param.pb.h:66
std::unique_ptr< const Param > ConstParamUniquePtr
Definition: param.pb.h:273
int params_size() const
Definition: param.pb.h:223
::ignition::msgs::Header * release_header()
Definition: param.pb.h:204
void protobuf_AssignDesc_ignition_2fmsgs_2fparam_2eproto()
STL class.
const ::google::protobuf::Map< ::std::string, ::ignition::msgs::Any > & params() const
Definition: param.pb.h:230
const ::ignition::msgs::Header & header() const
Definition: param.pb.h:192
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: param.pb.h:95
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Param > * mutable_children()
Definition: param.pb.h:260
void clear_header()
Definition: param.pb.h:188
Definition: any.pb.h:91
::google::protobuf::Map< ::std::string, ::ignition::msgs::Any > * mutable_params()
Definition: param.pb.h:235
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Param > & children() const
Definition: param.pb.h:265