Ignition Msgs

API Reference

7.1.0
param_v.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/param_v.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fparam_5fv_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fparam_5fv_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>
30 #include "ignition/msgs/param.pb.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.
49 void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fparam_5fv_2eproto();
52 
53 class Param_V;
54 
55 // ===================================================================
56 
57 class IGNITION_MSGS_VISIBLE Param_V : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Param_V) */ {
58  public:
59  Param_V();
60  virtual ~Param_V();
61 
62  Param_V(const Param_V& from);
63 
64  inline Param_V& operator=(const Param_V& from) {
65  CopyFrom(from);
66  return *this;
67  }
68 
69  static const ::google::protobuf::Descriptor* descriptor();
70  static const Param_V& default_instance();
71 
72  void Swap(Param_V* other);
73 
74  // implements Message ----------------------------------------------
75 
76  inline Param_V* New() const { return New(NULL); }
77 
78  Param_V* 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 Param_V& from);
82  void MergeFrom(const Param_V& 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(Param_V* 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  // repeated .ignition.msgs.Param param = 2;
127  int param_size() const;
128  void clear_param();
129  static const int kParamFieldNumber = 2;
130  const ::ignition::msgs::Param& param(int index) const;
131  ::ignition::msgs::Param* mutable_param(int index);
132  ::ignition::msgs::Param* add_param();
133  ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Param >*
134  mutable_param();
135  const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Param >&
136  param() const;
137 
138  // @@protoc_insertion_point(class_scope:ignition.msgs.Param_V)
139  private:
140 
141  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
142  bool _is_default_instance_;
143  ::ignition::msgs::Header* header_;
144  ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Param > param_;
145  mutable int _cached_size_;
146  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fparam_5fv_2eproto();
149 
150  void InitAsDefaultInstance();
151  static Param_V* default_instance_;
152 };
153 // ===================================================================
154 
155 
156 // ===================================================================
157 
158 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
159 // Param_V
160 
161 // optional .ignition.msgs.Header header = 1;
162 inline bool Param_V::has_header() const {
163  return !_is_default_instance_ && header_ != NULL;
164 }
165 inline void Param_V::clear_header() {
166  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
167  header_ = NULL;
168 }
169 inline const ::ignition::msgs::Header& Param_V::header() const {
170  // @@protoc_insertion_point(field_get:ignition.msgs.Param_V.header)
171  return header_ != NULL ? *header_ : *default_instance_->header_;
172 }
173 inline ::ignition::msgs::Header* Param_V::mutable_header() {
174 
175  if (header_ == NULL) {
176  header_ = new ::ignition::msgs::Header;
177  }
178  // @@protoc_insertion_point(field_mutable:ignition.msgs.Param_V.header)
179  return header_;
180 }
181 inline ::ignition::msgs::Header* Param_V::release_header() {
182  // @@protoc_insertion_point(field_release:ignition.msgs.Param_V.header)
183 
184  ::ignition::msgs::Header* temp = header_;
185  header_ = NULL;
186  return temp;
187 }
189  delete header_;
190  header_ = header;
191  if (header) {
192 
193  } else {
194 
195  }
196  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Param_V.header)
197 }
198 
199 // repeated .ignition.msgs.Param param = 2;
200 inline int Param_V::param_size() const {
201  return param_.size();
202 }
203 inline void Param_V::clear_param() {
204  param_.Clear();
205 }
206 inline const ::ignition::msgs::Param& Param_V::param(int index) const {
207  // @@protoc_insertion_point(field_get:ignition.msgs.Param_V.param)
208  return param_.Get(index);
209 }
210 inline ::ignition::msgs::Param* Param_V::mutable_param(int index) {
211  // @@protoc_insertion_point(field_mutable:ignition.msgs.Param_V.param)
212  return param_.Mutable(index);
213 }
214 inline ::ignition::msgs::Param* Param_V::add_param() {
215  // @@protoc_insertion_point(field_add:ignition.msgs.Param_V.param)
216  return param_.Add();
217 }
218 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Param >*
220  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.Param_V.param)
221  return &param_;
222 }
223 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Param >&
224 Param_V::param() const {
225  // @@protoc_insertion_point(field_list:ignition.msgs.Param_V.param)
226  return param_;
227 }
228 
229 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
230 
235 // @@protoc_insertion_point(namespace_scope)
236 
237 } // namespace msgs
238 } // namespace ignition
239 
240 #ifdef _MSC_VER
241 #pragma warning(pop)
242 #endif
243 // @@protoc_insertion_point(global_scope)
244 
245 #endif // PROTOBUF_ignition_2fmsgs_2fparam_5fv_2eproto__INCLUDED
Param_V & operator=(const Param_V &from)
Definition: param_v.pb.h:64
std::shared_ptr< Param_V > Param_VSharedPtr
Definition: param_v.pb.h:233
::ignition::msgs::Header * mutable_header()
Definition: param_v.pb.h:173
Definition: param_v.pb.h:57
bool has_header() const
Definition: param_v.pb.h:162
Param_V * New() const
Definition: param_v.pb.h:76
const ::ignition::msgs::Header & header() const
Definition: param_v.pb.h:169
std::unique_ptr< const Param_V > ConstParam_VUniquePtr
Definition: param_v.pb.h:232
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Param > * mutable_param()
Definition: param_v.pb.h:219
Definition: param.pb.h:59
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fparam_5fv_2eproto()
void protobuf_AssignDesc_ignition_2fmsgs_2fparam_5fv_2eproto()
Definition: header.pb.h:161
void protobuf_ShutdownFile_ignition_2fmsgs_2fparam_5fv_2eproto()
std::shared_ptr< const Param_V > ConstParam_VSharedPtr
Definition: param_v.pb.h:234
std::unique_ptr< Param_V > Param_VUniquePtr
Definition: param_v.pb.h:231
int param_size() const
Definition: param_v.pb.h:200
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: param_v.pb.h:93
void set_allocated_header(::ignition::msgs::Header *header)
Definition: param_v.pb.h:188
::ignition::msgs::Header * release_header()
Definition: param_v.pb.h:181
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Param > & param() const
Definition: param_v.pb.h:224
STL class.
void clear_param()
Definition: param_v.pb.h:203
int GetCachedSize() const
Definition: param_v.pb.h:96
void clear_header()
Definition: param_v.pb.h:165
::ignition::msgs::Param * add_param()
Definition: param_v.pb.h:214