Ignition Msgs

API Reference

8.0.0~pre1
performance_sensor_metrics.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/performance_sensor_metrics.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fperformance_5fsensor_5fmetrics_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fperformance_5fsensor_5fmetrics_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.
51 
52 class PerformanceSensorMetrics;
53 
54 // ===================================================================
55 
56 class IGNITION_MSGS_VISIBLE PerformanceSensorMetrics : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.PerformanceSensorMetrics) */ {
57  public:
59  virtual ~PerformanceSensorMetrics();
60 
62 
64  CopyFrom(from);
65  return *this;
66  }
67 
68  static const ::google::protobuf::Descriptor* descriptor();
69  static const PerformanceSensorMetrics& default_instance();
70 
71  void Swap(PerformanceSensorMetrics* other);
72 
73  // implements Message ----------------------------------------------
74 
75  inline PerformanceSensorMetrics* New() const { return New(NULL); }
76 
77  PerformanceSensorMetrics* 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 PerformanceSensorMetrics& from);
81  void MergeFrom(const PerformanceSensorMetrics& 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(PerformanceSensorMetrics* 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 string name = 1;
117  void clear_name();
118  static const int kNameFieldNumber = 1;
119  const ::std::string& name() const;
120  void set_name(const ::std::string& value);
121  void set_name(const char* value);
122  void set_name(const char* value, size_t size);
123  ::std::string* mutable_name();
124  ::std::string* release_name();
125  void set_allocated_name(::std::string* name);
126 
127  // optional double real_update_rate = 2;
128  void clear_real_update_rate();
129  static const int kRealUpdateRateFieldNumber = 2;
130  double real_update_rate() const;
131  void set_real_update_rate(double value);
132 
133  // optional double sim_update_rate = 3;
134  void clear_sim_update_rate();
135  static const int kSimUpdateRateFieldNumber = 3;
136  double sim_update_rate() const;
137  void set_sim_update_rate(double value);
138 
139  // optional double nominal_update_rate = 4;
140  void clear_nominal_update_rate();
141  static const int kNominalUpdateRateFieldNumber = 4;
142  double nominal_update_rate() const;
143  void set_nominal_update_rate(double value);
144 
145  // optional .ignition.msgs.Double fps_optional = 5;
146  bool has_fps_optional() const;
147  void clear_fps_optional();
148  static const int kFpsOptionalFieldNumber = 5;
149  const ::ignition::msgs::Double& fps_optional() const;
150  ::ignition::msgs::Double* mutable_fps_optional();
151  ::ignition::msgs::Double* release_fps_optional();
152  void set_allocated_fps_optional(::ignition::msgs::Double* fps_optional);
153 
154  // @@protoc_insertion_point(class_scope:ignition.msgs.PerformanceSensorMetrics)
155  private:
156 
157  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
158  bool _is_default_instance_;
159  ::google::protobuf::internal::ArenaStringPtr name_;
160  double real_update_rate_;
161  double sim_update_rate_;
162  double nominal_update_rate_;
163  ::ignition::msgs::Double* fps_optional_;
164  mutable int _cached_size_;
168 
169  void InitAsDefaultInstance();
170  static PerformanceSensorMetrics* default_instance_;
171 };
172 // ===================================================================
173 
174 
175 // ===================================================================
176 
177 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
178 // PerformanceSensorMetrics
179 
180 // optional string name = 1;
182  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
183 }
184 inline const ::std::string& PerformanceSensorMetrics::name() const {
185  // @@protoc_insertion_point(field_get:ignition.msgs.PerformanceSensorMetrics.name)
186  return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
187 }
188 inline void PerformanceSensorMetrics::set_name(const ::std::string& value) {
189 
190  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
191  // @@protoc_insertion_point(field_set:ignition.msgs.PerformanceSensorMetrics.name)
192 }
193 inline void PerformanceSensorMetrics::set_name(const char* value) {
194 
195  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
196  // @@protoc_insertion_point(field_set_char:ignition.msgs.PerformanceSensorMetrics.name)
197 }
198 inline void PerformanceSensorMetrics::set_name(const char* value, size_t size) {
199 
200  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
201  ::std::string(reinterpret_cast<const char*>(value), size));
202  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.PerformanceSensorMetrics.name)
203 }
204 inline ::std::string* PerformanceSensorMetrics::mutable_name() {
205 
206  // @@protoc_insertion_point(field_mutable:ignition.msgs.PerformanceSensorMetrics.name)
207  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
208 }
209 inline ::std::string* PerformanceSensorMetrics::release_name() {
210  // @@protoc_insertion_point(field_release:ignition.msgs.PerformanceSensorMetrics.name)
211 
212  return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
213 }
215  if (name != NULL) {
216 
217  } else {
218 
219  }
220  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
221  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.PerformanceSensorMetrics.name)
222 }
223 
224 // optional double real_update_rate = 2;
226  real_update_rate_ = 0;
227 }
229  // @@protoc_insertion_point(field_get:ignition.msgs.PerformanceSensorMetrics.real_update_rate)
230  return real_update_rate_;
231 }
233 
234  real_update_rate_ = value;
235  // @@protoc_insertion_point(field_set:ignition.msgs.PerformanceSensorMetrics.real_update_rate)
236 }
237 
238 // optional double sim_update_rate = 3;
240  sim_update_rate_ = 0;
241 }
243  // @@protoc_insertion_point(field_get:ignition.msgs.PerformanceSensorMetrics.sim_update_rate)
244  return sim_update_rate_;
245 }
247 
248  sim_update_rate_ = value;
249  // @@protoc_insertion_point(field_set:ignition.msgs.PerformanceSensorMetrics.sim_update_rate)
250 }
251 
252 // optional double nominal_update_rate = 4;
254  nominal_update_rate_ = 0;
255 }
257  // @@protoc_insertion_point(field_get:ignition.msgs.PerformanceSensorMetrics.nominal_update_rate)
258  return nominal_update_rate_;
259 }
261 
262  nominal_update_rate_ = value;
263  // @@protoc_insertion_point(field_set:ignition.msgs.PerformanceSensorMetrics.nominal_update_rate)
264 }
265 
266 // optional .ignition.msgs.Double fps_optional = 5;
268  return !_is_default_instance_ && fps_optional_ != NULL;
269 }
271  if (GetArenaNoVirtual() == NULL && fps_optional_ != NULL) delete fps_optional_;
272  fps_optional_ = NULL;
273 }
274 inline const ::ignition::msgs::Double& PerformanceSensorMetrics::fps_optional() const {
275  // @@protoc_insertion_point(field_get:ignition.msgs.PerformanceSensorMetrics.fps_optional)
276  return fps_optional_ != NULL ? *fps_optional_ : *default_instance_->fps_optional_;
277 }
278 inline ::ignition::msgs::Double* PerformanceSensorMetrics::mutable_fps_optional() {
279 
280  if (fps_optional_ == NULL) {
281  fps_optional_ = new ::ignition::msgs::Double;
282  }
283  // @@protoc_insertion_point(field_mutable:ignition.msgs.PerformanceSensorMetrics.fps_optional)
284  return fps_optional_;
285 }
286 inline ::ignition::msgs::Double* PerformanceSensorMetrics::release_fps_optional() {
287  // @@protoc_insertion_point(field_release:ignition.msgs.PerformanceSensorMetrics.fps_optional)
288 
289  ::ignition::msgs::Double* temp = fps_optional_;
290  fps_optional_ = NULL;
291  return temp;
292 }
294  delete fps_optional_;
295  fps_optional_ = fps_optional;
296  if (fps_optional) {
297 
298  } else {
299 
300  }
301  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.PerformanceSensorMetrics.fps_optional)
302 }
303 
304 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
305 
310 // @@protoc_insertion_point(namespace_scope)
311 
312 } // namespace msgs
313 } // namespace ignition
314 
315 #ifdef _MSC_VER
316 #pragma warning(pop)
317 #endif
318 // @@protoc_insertion_point(global_scope)
319 
320 #endif // PROTOBUF_ignition_2fmsgs_2fperformance_5fsensor_5fmetrics_2eproto__INCLUDED
void clear_nominal_update_rate()
Definition: performance_sensor_metrics.pb.h:253
void set_allocated_fps_optional(::ignition::msgs::Double *fps_optional)
Definition: performance_sensor_metrics.pb.h:293
::std::string * release_name()
Definition: performance_sensor_metrics.pb.h:209
std::shared_ptr< const PerformanceSensorMetrics > ConstPerformanceSensorMetricsSharedPtr
Definition: performance_sensor_metrics.pb.h:309
void clear_real_update_rate()
Definition: performance_sensor_metrics.pb.h:225
const ::std::string & name() const
Definition: performance_sensor_metrics.pb.h:184
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: performance_sensor_metrics.pb.h:92
PerformanceSensorMetrics & operator=(const PerformanceSensorMetrics &from)
Definition: performance_sensor_metrics.pb.h:63
std::unique_ptr< const PerformanceSensorMetrics > ConstPerformanceSensorMetricsUniquePtr
Definition: performance_sensor_metrics.pb.h:307
::ignition::msgs::Double * release_fps_optional()
Definition: performance_sensor_metrics.pb.h:286
void set_name(const ::std::string &value)
Definition: performance_sensor_metrics.pb.h:188
void set_sim_update_rate(double value)
Definition: performance_sensor_metrics.pb.h:246
int GetCachedSize() const
Definition: performance_sensor_metrics.pb.h:95
void protobuf_ShutdownFile_ignition_2fmsgs_2fperformance_5fsensor_5fmetrics_2eproto()
void set_real_update_rate(double value)
Definition: performance_sensor_metrics.pb.h:232
double sim_update_rate() const
Definition: performance_sensor_metrics.pb.h:242
void clear_name()
Definition: performance_sensor_metrics.pb.h:181
STL class.
const ::ignition::msgs::Double & fps_optional() const
Definition: performance_sensor_metrics.pb.h:274
::std::string * mutable_name()
Definition: performance_sensor_metrics.pb.h:204
std::shared_ptr< PerformanceSensorMetrics > PerformanceSensorMetricsSharedPtr
Definition: performance_sensor_metrics.pb.h:308
void clear_sim_update_rate()
Definition: performance_sensor_metrics.pb.h:239
double nominal_update_rate() const
Definition: performance_sensor_metrics.pb.h:256
::ignition::msgs::Double * mutable_fps_optional()
Definition: performance_sensor_metrics.pb.h:278
Definition: performance_sensor_metrics.pb.h:56
double real_update_rate() const
Definition: performance_sensor_metrics.pb.h:228
STL class.
void clear_fps_optional()
Definition: performance_sensor_metrics.pb.h:270
PerformanceSensorMetrics * New() const
Definition: performance_sensor_metrics.pb.h:75
void set_allocated_name(::std::string *name)
Definition: performance_sensor_metrics.pb.h:214
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fperformance_5fsensor_5fmetrics_2eproto()
bool has_fps_optional() const
Definition: performance_sensor_metrics.pb.h:267
void protobuf_AssignDesc_ignition_2fmsgs_2fperformance_5fsensor_5fmetrics_2eproto()
Definition: double.pb.h:56
void set_nominal_update_rate(double value)
Definition: performance_sensor_metrics.pb.h:260
std::unique_ptr< PerformanceSensorMetrics > PerformanceSensorMetricsUniquePtr
Definition: performance_sensor_metrics.pb.h:306