Ignition Msgs

API Reference

8.2.0
log_playback_stats.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/log_playback_stats.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2flog_5fplayback_5fstats_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2flog_5fplayback_5fstats_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/time.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.
52 
53 class LogPlaybackStatistics;
54 
55 // ===================================================================
56 
57 class IGNITION_MSGS_VISIBLE LogPlaybackStatistics : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.LogPlaybackStatistics) */ {
58  public:
60  virtual ~LogPlaybackStatistics();
61 
63 
65  CopyFrom(from);
66  return *this;
67  }
68 
69  static const ::google::protobuf::Descriptor* descriptor();
70  static const LogPlaybackStatistics& default_instance();
71 
72  void Swap(LogPlaybackStatistics* other);
73 
74  // implements Message ----------------------------------------------
75 
76  inline LogPlaybackStatistics* New() const { return New(NULL); }
77 
78  LogPlaybackStatistics* 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 LogPlaybackStatistics& from);
82  void MergeFrom(const LogPlaybackStatistics& 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(LogPlaybackStatistics* 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  // optional .ignition.msgs.Time start_time = 2;
127  bool has_start_time() const;
128  void clear_start_time();
129  static const int kStartTimeFieldNumber = 2;
130  const ::ignition::msgs::Time& start_time() const;
131  ::ignition::msgs::Time* mutable_start_time();
132  ::ignition::msgs::Time* release_start_time();
133  void set_allocated_start_time(::ignition::msgs::Time* start_time);
134 
135  // optional .ignition.msgs.Time end_time = 3;
136  bool has_end_time() const;
137  void clear_end_time();
138  static const int kEndTimeFieldNumber = 3;
139  const ::ignition::msgs::Time& end_time() const;
140  ::ignition::msgs::Time* mutable_end_time();
141  ::ignition::msgs::Time* release_end_time();
142  void set_allocated_end_time(::ignition::msgs::Time* end_time);
143 
144  // @@protoc_insertion_point(class_scope:ignition.msgs.LogPlaybackStatistics)
145  private:
146 
147  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
148  bool _is_default_instance_;
149  ::ignition::msgs::Header* header_;
150  ::ignition::msgs::Time* start_time_;
151  ::ignition::msgs::Time* end_time_;
152  mutable int _cached_size_;
153  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2flog_5fplayback_5fstats_2eproto();
156 
157  void InitAsDefaultInstance();
158  static LogPlaybackStatistics* default_instance_;
159 };
160 // ===================================================================
161 
162 
163 // ===================================================================
164 
165 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
166 // LogPlaybackStatistics
167 
168 // optional .ignition.msgs.Header header = 1;
170  return !_is_default_instance_ && header_ != NULL;
171 }
173  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
174  header_ = NULL;
175 }
176 inline const ::ignition::msgs::Header& LogPlaybackStatistics::header() const {
177  // @@protoc_insertion_point(field_get:ignition.msgs.LogPlaybackStatistics.header)
178  return header_ != NULL ? *header_ : *default_instance_->header_;
179 }
180 inline ::ignition::msgs::Header* LogPlaybackStatistics::mutable_header() {
181 
182  if (header_ == NULL) {
183  header_ = new ::ignition::msgs::Header;
184  }
185  // @@protoc_insertion_point(field_mutable:ignition.msgs.LogPlaybackStatistics.header)
186  return header_;
187 }
188 inline ::ignition::msgs::Header* LogPlaybackStatistics::release_header() {
189  // @@protoc_insertion_point(field_release:ignition.msgs.LogPlaybackStatistics.header)
190 
191  ::ignition::msgs::Header* temp = header_;
192  header_ = NULL;
193  return temp;
194 }
196  delete header_;
197  header_ = header;
198  if (header) {
199 
200  } else {
201 
202  }
203  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.LogPlaybackStatistics.header)
204 }
205 
206 // optional .ignition.msgs.Time start_time = 2;
208  return !_is_default_instance_ && start_time_ != NULL;
209 }
211  if (GetArenaNoVirtual() == NULL && start_time_ != NULL) delete start_time_;
212  start_time_ = NULL;
213 }
214 inline const ::ignition::msgs::Time& LogPlaybackStatistics::start_time() const {
215  // @@protoc_insertion_point(field_get:ignition.msgs.LogPlaybackStatistics.start_time)
216  return start_time_ != NULL ? *start_time_ : *default_instance_->start_time_;
217 }
218 inline ::ignition::msgs::Time* LogPlaybackStatistics::mutable_start_time() {
219 
220  if (start_time_ == NULL) {
221  start_time_ = new ::ignition::msgs::Time;
222  }
223  // @@protoc_insertion_point(field_mutable:ignition.msgs.LogPlaybackStatistics.start_time)
224  return start_time_;
225 }
226 inline ::ignition::msgs::Time* LogPlaybackStatistics::release_start_time() {
227  // @@protoc_insertion_point(field_release:ignition.msgs.LogPlaybackStatistics.start_time)
228 
229  ::ignition::msgs::Time* temp = start_time_;
230  start_time_ = NULL;
231  return temp;
232 }
234  delete start_time_;
235  start_time_ = start_time;
236  if (start_time) {
237 
238  } else {
239 
240  }
241  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.LogPlaybackStatistics.start_time)
242 }
243 
244 // optional .ignition.msgs.Time end_time = 3;
246  return !_is_default_instance_ && end_time_ != NULL;
247 }
249  if (GetArenaNoVirtual() == NULL && end_time_ != NULL) delete end_time_;
250  end_time_ = NULL;
251 }
252 inline const ::ignition::msgs::Time& LogPlaybackStatistics::end_time() const {
253  // @@protoc_insertion_point(field_get:ignition.msgs.LogPlaybackStatistics.end_time)
254  return end_time_ != NULL ? *end_time_ : *default_instance_->end_time_;
255 }
256 inline ::ignition::msgs::Time* LogPlaybackStatistics::mutable_end_time() {
257 
258  if (end_time_ == NULL) {
259  end_time_ = new ::ignition::msgs::Time;
260  }
261  // @@protoc_insertion_point(field_mutable:ignition.msgs.LogPlaybackStatistics.end_time)
262  return end_time_;
263 }
264 inline ::ignition::msgs::Time* LogPlaybackStatistics::release_end_time() {
265  // @@protoc_insertion_point(field_release:ignition.msgs.LogPlaybackStatistics.end_time)
266 
267  ::ignition::msgs::Time* temp = end_time_;
268  end_time_ = NULL;
269  return temp;
270 }
272  delete end_time_;
273  end_time_ = end_time;
274  if (end_time) {
275 
276  } else {
277 
278  }
279  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.LogPlaybackStatistics.end_time)
280 }
281 
282 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
283 
288 // @@protoc_insertion_point(namespace_scope)
289 
290 } // namespace msgs
291 } // namespace ignition
292 
293 #ifdef _MSC_VER
294 #pragma warning(pop)
295 #endif
296 // @@protoc_insertion_point(global_scope)
297 
298 #endif // PROTOBUF_ignition_2fmsgs_2flog_5fplayback_5fstats_2eproto__INCLUDED
int GetCachedSize() const
Definition: log_playback_stats.pb.h:96
void protobuf_AssignDesc_ignition_2fmsgs_2flog_5fplayback_5fstats_2eproto()
void protobuf_ShutdownFile_ignition_2fmsgs_2flog_5fplayback_5fstats_2eproto()
::ignition::msgs::Time * release_end_time()
Definition: log_playback_stats.pb.h:264
void set_allocated_end_time(::ignition::msgs::Time *end_time)
Definition: log_playback_stats.pb.h:271
::ignition::msgs::Time * release_start_time()
Definition: log_playback_stats.pb.h:226
bool has_header() const
Definition: log_playback_stats.pb.h:169
std::shared_ptr< const LogPlaybackStatistics > ConstLogPlaybackStatisticsSharedPtr
Definition: log_playback_stats.pb.h:287
const ::ignition::msgs::Time & end_time() const
Definition: log_playback_stats.pb.h:252
::ignition::msgs::Header * mutable_header()
Definition: log_playback_stats.pb.h:180
bool has_end_time() const
Definition: log_playback_stats.pb.h:245
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2flog_5fplayback_5fstats_2eproto()
Definition: header.pb.h:161
std::unique_ptr< const LogPlaybackStatistics > ConstLogPlaybackStatisticsUniquePtr
Definition: log_playback_stats.pb.h:285
void set_allocated_header(::ignition::msgs::Header *header)
Definition: log_playback_stats.pb.h:195
bool has_start_time() const
Definition: log_playback_stats.pb.h:207
::ignition::msgs::Time * mutable_start_time()
Definition: log_playback_stats.pb.h:218
const ::ignition::msgs::Time & start_time() const
Definition: log_playback_stats.pb.h:214
std::shared_ptr< LogPlaybackStatistics > LogPlaybackStatisticsSharedPtr
Definition: log_playback_stats.pb.h:286
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: log_playback_stats.pb.h:93
Definition: log_playback_stats.pb.h:57
const ::ignition::msgs::Header & header() const
Definition: log_playback_stats.pb.h:176
LogPlaybackStatistics * New() const
Definition: log_playback_stats.pb.h:76
void clear_end_time()
Definition: log_playback_stats.pb.h:248
void clear_header()
Definition: log_playback_stats.pb.h:172
::ignition::msgs::Header * release_header()
Definition: log_playback_stats.pb.h:188
::ignition::msgs::Time * mutable_end_time()
Definition: log_playback_stats.pb.h:256
LogPlaybackStatistics & operator=(const LogPlaybackStatistics &from)
Definition: log_playback_stats.pb.h:64
STL class.
std::unique_ptr< LogPlaybackStatistics > LogPlaybackStatisticsUniquePtr
Definition: log_playback_stats.pb.h:284
void set_allocated_start_time(::ignition::msgs::Time *start_time)
Definition: log_playback_stats.pb.h:233
void clear_start_time()
Definition: log_playback_stats.pb.h:210
Definition: time.pb.h:55