Gazebo Msgs

API Reference

9.5.1
user_cmd_stats.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/user_cmd_stats.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fuser_5fcmd_5fstats_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fuser_5fcmd_5fstats_2eproto
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
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 3006001 < 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/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
32 #include <google/protobuf/unknown_field_set.h>
33 #include "gz/msgs/user_cmd.pb.h"
34 #include "gz/msgs/header.pb.h"
35 // @@protoc_insertion_point(includes)
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fuser_5fcmd_5fstats_2eproto GZ_MSGS_VISIBLE
37 
39 // Internal implementation detail -- do not use these members.
40 struct GZ_MSGS_VISIBLE TableStruct {
41  static const ::google::protobuf::internal::ParseTableField entries[];
42  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
43  static const ::google::protobuf::internal::ParseTable schema[1];
44  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
45  static const ::google::protobuf::internal::SerializationTable serialization_table[];
46  static const ::google::protobuf::uint32 offsets[];
47 };
48 void GZ_MSGS_VISIBLE AddDescriptors();
49 } // namespace protobuf_gz_2fmsgs_2fuser_5fcmd_5fstats_2eproto
50 namespace gz {
51 namespace msgs {
52 class UserCmdStats;
53 class UserCmdStatsDefaultTypeInternal;
54 GZ_MSGS_VISIBLE extern UserCmdStatsDefaultTypeInternal _UserCmdStats_default_instance_;
55 } // namespace msgs
56 } // namespace gz
57 namespace google {
58 namespace protobuf {
59 template<> GZ_MSGS_VISIBLE ::gz::msgs::UserCmdStats* Arena::CreateMaybeMessage<::gz::msgs::UserCmdStats>(Arena*);
60 } // namespace protobuf
61 } // namespace google
62 namespace gz {
63 namespace msgs {
64 
65 // ===================================================================
66 
67 class GZ_MSGS_VISIBLE UserCmdStats : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.UserCmdStats) */ {
68  public:
69  UserCmdStats();
70  virtual ~UserCmdStats();
71 
72  UserCmdStats(const UserCmdStats& from);
73 
74  inline UserCmdStats& operator=(const UserCmdStats& from) {
75  CopyFrom(from);
76  return *this;
77  }
78  #if LANG_CXX11
79  UserCmdStats(UserCmdStats&& from) noexcept
80  : UserCmdStats() {
81  *this = ::std::move(from);
82  }
83 
84  inline UserCmdStats& operator=(UserCmdStats&& from) noexcept {
85  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
86  if (this != &from) InternalSwap(&from);
87  } else {
88  CopyFrom(from);
89  }
90  return *this;
91  }
92  #endif
93  static const ::google::protobuf::Descriptor* descriptor();
94  static const UserCmdStats& default_instance();
95 
96  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
97  static inline const UserCmdStats* internal_default_instance() {
98  return reinterpret_cast<const UserCmdStats*>(
100  }
101  static constexpr int kIndexInFileMessages =
102  0;
103 
104  void Swap(UserCmdStats* other);
105  friend void swap(UserCmdStats& a, UserCmdStats& b) {
106  a.Swap(&b);
107  }
108 
109  // implements Message ----------------------------------------------
110 
111  inline UserCmdStats* New() const final {
112  return CreateMaybeMessage<UserCmdStats>(NULL);
113  }
114 
115  UserCmdStats* New(::google::protobuf::Arena* arena) const final {
116  return CreateMaybeMessage<UserCmdStats>(arena);
117  }
118  void CopyFrom(const ::google::protobuf::Message& from) final;
119  void MergeFrom(const ::google::protobuf::Message& from) final;
120  void CopyFrom(const UserCmdStats& from);
121  void MergeFrom(const UserCmdStats& from);
122  void Clear() final;
123  bool IsInitialized() const final;
124 
125  size_t ByteSizeLong() const final;
126  bool MergePartialFromCodedStream(
127  ::google::protobuf::io::CodedInputStream* input) final;
128  void SerializeWithCachedSizes(
129  ::google::protobuf::io::CodedOutputStream* output) const final;
130  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
131  bool deterministic, ::google::protobuf::uint8* target) const final;
132  int GetCachedSize() const final { return _cached_size_.Get(); }
133 
134  private:
135  void SharedCtor();
136  void SharedDtor();
137  void SetCachedSize(int size) const final;
138  void InternalSwap(UserCmdStats* other);
139  private:
140  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
141  return NULL;
142  }
143  inline void* MaybeArenaPtr() const {
144  return NULL;
145  }
146  public:
147 
148  ::google::protobuf::Metadata GetMetadata() const final;
149 
150  // nested types ----------------------------------------------------
151 
152  // accessors -------------------------------------------------------
153 
154  // repeated .gz.msgs.UserCmd undo_cmd = 2;
155  int undo_cmd_size() const;
156  void clear_undo_cmd();
157  static const int kUndoCmdFieldNumber = 2;
158  ::gz::msgs::UserCmd* mutable_undo_cmd(int index);
159  ::google::protobuf::RepeatedPtrField< ::gz::msgs::UserCmd >*
160  mutable_undo_cmd();
161  const ::gz::msgs::UserCmd& undo_cmd(int index) const;
162  ::gz::msgs::UserCmd* add_undo_cmd();
163  const ::google::protobuf::RepeatedPtrField< ::gz::msgs::UserCmd >&
164  undo_cmd() const;
165 
166  // repeated .gz.msgs.UserCmd redo_cmd = 3;
167  int redo_cmd_size() const;
168  void clear_redo_cmd();
169  static const int kRedoCmdFieldNumber = 3;
170  ::gz::msgs::UserCmd* mutable_redo_cmd(int index);
171  ::google::protobuf::RepeatedPtrField< ::gz::msgs::UserCmd >*
172  mutable_redo_cmd();
173  const ::gz::msgs::UserCmd& redo_cmd(int index) const;
174  ::gz::msgs::UserCmd* add_redo_cmd();
175  const ::google::protobuf::RepeatedPtrField< ::gz::msgs::UserCmd >&
176  redo_cmd() const;
177 
178  // .gz.msgs.Header header = 1;
179  bool has_header() const;
180  void clear_header();
181  static const int kHeaderFieldNumber = 1;
182  private:
183  const ::gz::msgs::Header& _internal_header() const;
184  public:
185  const ::gz::msgs::Header& header() const;
186  ::gz::msgs::Header* release_header();
187  ::gz::msgs::Header* mutable_header();
188  void set_allocated_header(::gz::msgs::Header* header);
189 
190  // @@protoc_insertion_point(class_scope:gz.msgs.UserCmdStats)
191  private:
192 
193  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
194  ::google::protobuf::RepeatedPtrField< ::gz::msgs::UserCmd > undo_cmd_;
195  ::google::protobuf::RepeatedPtrField< ::gz::msgs::UserCmd > redo_cmd_;
196  ::gz::msgs::Header* header_;
197  mutable ::google::protobuf::internal::CachedSize _cached_size_;
199 };
200 // ===================================================================
201 
202 
203 // ===================================================================
204 
205 #ifdef __GNUC__
206  #pragma GCC diagnostic push
207  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
208 #endif // __GNUC__
209 // UserCmdStats
210 
211 // .gz.msgs.Header header = 1;
212 inline bool UserCmdStats::has_header() const {
213  return this != internal_default_instance() && header_ != NULL;
214 }
215 inline const ::gz::msgs::Header& UserCmdStats::_internal_header() const {
216  return *header_;
217 }
218 inline const ::gz::msgs::Header& UserCmdStats::header() const {
219  const ::gz::msgs::Header* p = header_;
220  // @@protoc_insertion_point(field_get:gz.msgs.UserCmdStats.header)
221  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
223 }
224 inline ::gz::msgs::Header* UserCmdStats::release_header() {
225  // @@protoc_insertion_point(field_release:gz.msgs.UserCmdStats.header)
226 
227  ::gz::msgs::Header* temp = header_;
228  header_ = NULL;
229  return temp;
230 }
231 inline ::gz::msgs::Header* UserCmdStats::mutable_header() {
232 
233  if (header_ == NULL) {
234  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
235  header_ = p;
236  }
237  // @@protoc_insertion_point(field_mutable:gz.msgs.UserCmdStats.header)
238  return header_;
239 }
241  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
242  if (message_arena == NULL) {
243  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
244  }
245  if (header) {
246  ::google::protobuf::Arena* submessage_arena = NULL;
247  if (message_arena != submessage_arena) {
248  header = ::google::protobuf::internal::GetOwnedMessage(
249  message_arena, header, submessage_arena);
250  }
251 
252  } else {
253 
254  }
255  header_ = header;
256  // @@protoc_insertion_point(field_set_allocated:gz.msgs.UserCmdStats.header)
257 }
258 
259 // repeated .gz.msgs.UserCmd undo_cmd = 2;
260 inline int UserCmdStats::undo_cmd_size() const {
261  return undo_cmd_.size();
262 }
263 inline ::gz::msgs::UserCmd* UserCmdStats::mutable_undo_cmd(int index) {
264  // @@protoc_insertion_point(field_mutable:gz.msgs.UserCmdStats.undo_cmd)
265  return undo_cmd_.Mutable(index);
266 }
267 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::UserCmd >*
269  // @@protoc_insertion_point(field_mutable_list:gz.msgs.UserCmdStats.undo_cmd)
270  return &undo_cmd_;
271 }
272 inline const ::gz::msgs::UserCmd& UserCmdStats::undo_cmd(int index) const {
273  // @@protoc_insertion_point(field_get:gz.msgs.UserCmdStats.undo_cmd)
274  return undo_cmd_.Get(index);
275 }
276 inline ::gz::msgs::UserCmd* UserCmdStats::add_undo_cmd() {
277  // @@protoc_insertion_point(field_add:gz.msgs.UserCmdStats.undo_cmd)
278  return undo_cmd_.Add();
279 }
280 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::UserCmd >&
282  // @@protoc_insertion_point(field_list:gz.msgs.UserCmdStats.undo_cmd)
283  return undo_cmd_;
284 }
285 
286 // repeated .gz.msgs.UserCmd redo_cmd = 3;
287 inline int UserCmdStats::redo_cmd_size() const {
288  return redo_cmd_.size();
289 }
290 inline ::gz::msgs::UserCmd* UserCmdStats::mutable_redo_cmd(int index) {
291  // @@protoc_insertion_point(field_mutable:gz.msgs.UserCmdStats.redo_cmd)
292  return redo_cmd_.Mutable(index);
293 }
294 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::UserCmd >*
296  // @@protoc_insertion_point(field_mutable_list:gz.msgs.UserCmdStats.redo_cmd)
297  return &redo_cmd_;
298 }
299 inline const ::gz::msgs::UserCmd& UserCmdStats::redo_cmd(int index) const {
300  // @@protoc_insertion_point(field_get:gz.msgs.UserCmdStats.redo_cmd)
301  return redo_cmd_.Get(index);
302 }
303 inline ::gz::msgs::UserCmd* UserCmdStats::add_redo_cmd() {
304  // @@protoc_insertion_point(field_add:gz.msgs.UserCmdStats.redo_cmd)
305  return redo_cmd_.Add();
306 }
307 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::UserCmd >&
309  // @@protoc_insertion_point(field_list:gz.msgs.UserCmdStats.redo_cmd)
310  return redo_cmd_;
311 }
312 
313 #ifdef __GNUC__
314  #pragma GCC diagnostic pop
315 #endif // __GNUC__
316 
317 // @@protoc_insertion_point(namespace_scope)
318 
319 } // namespace msgs
320 } // namespace gz
321 
322 // @@protoc_insertion_point(global_scope)
323 
324 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fuser_5fcmd_5fstats_2eproto