Ignition Msgs

API Reference

8.2.0
user_cmd_stats.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/user_cmd_stats.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fuser_5fcmd_5fstats_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fuser_5fcmd_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>
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 UserCmdStats;
54 
55 // ===================================================================
56 
57 class IGNITION_MSGS_VISIBLE UserCmdStats : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.UserCmdStats) */ {
58  public:
59  UserCmdStats();
60  virtual ~UserCmdStats();
61 
62  UserCmdStats(const UserCmdStats& from);
63 
64  inline UserCmdStats& operator=(const UserCmdStats& from) {
65  CopyFrom(from);
66  return *this;
67  }
68 
69  static const ::google::protobuf::Descriptor* descriptor();
70  static const UserCmdStats& default_instance();
71 
72  void Swap(UserCmdStats* other);
73 
74  // implements Message ----------------------------------------------
75 
76  inline UserCmdStats* New() const { return New(NULL); }
77 
78  UserCmdStats* 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 UserCmdStats& from);
82  void MergeFrom(const UserCmdStats& 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(UserCmdStats* 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.UserCmd undo_cmd = 2;
127  int undo_cmd_size() const;
128  void clear_undo_cmd();
129  static const int kUndoCmdFieldNumber = 2;
130  const ::ignition::msgs::UserCmd& undo_cmd(int index) const;
131  ::ignition::msgs::UserCmd* mutable_undo_cmd(int index);
132  ::ignition::msgs::UserCmd* add_undo_cmd();
133  ::google::protobuf::RepeatedPtrField< ::ignition::msgs::UserCmd >*
134  mutable_undo_cmd();
135  const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::UserCmd >&
136  undo_cmd() const;
137 
138  // repeated .ignition.msgs.UserCmd redo_cmd = 3;
139  int redo_cmd_size() const;
140  void clear_redo_cmd();
141  static const int kRedoCmdFieldNumber = 3;
142  const ::ignition::msgs::UserCmd& redo_cmd(int index) const;
143  ::ignition::msgs::UserCmd* mutable_redo_cmd(int index);
144  ::ignition::msgs::UserCmd* add_redo_cmd();
145  ::google::protobuf::RepeatedPtrField< ::ignition::msgs::UserCmd >*
146  mutable_redo_cmd();
147  const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::UserCmd >&
148  redo_cmd() const;
149 
150  // @@protoc_insertion_point(class_scope:ignition.msgs.UserCmdStats)
151  private:
152 
153  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
154  bool _is_default_instance_;
155  ::ignition::msgs::Header* header_;
156  ::google::protobuf::RepeatedPtrField< ::ignition::msgs::UserCmd > undo_cmd_;
157  ::google::protobuf::RepeatedPtrField< ::ignition::msgs::UserCmd > redo_cmd_;
158  mutable int _cached_size_;
159  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fuser_5fcmd_5fstats_2eproto();
162 
163  void InitAsDefaultInstance();
164  static UserCmdStats* default_instance_;
165 };
166 // ===================================================================
167 
168 
169 // ===================================================================
170 
171 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
172 // UserCmdStats
173 
174 // optional .ignition.msgs.Header header = 1;
175 inline bool UserCmdStats::has_header() const {
176  return !_is_default_instance_ && header_ != NULL;
177 }
179  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
180  header_ = NULL;
181 }
182 inline const ::ignition::msgs::Header& UserCmdStats::header() const {
183  // @@protoc_insertion_point(field_get:ignition.msgs.UserCmdStats.header)
184  return header_ != NULL ? *header_ : *default_instance_->header_;
185 }
186 inline ::ignition::msgs::Header* UserCmdStats::mutable_header() {
187 
188  if (header_ == NULL) {
189  header_ = new ::ignition::msgs::Header;
190  }
191  // @@protoc_insertion_point(field_mutable:ignition.msgs.UserCmdStats.header)
192  return header_;
193 }
194 inline ::ignition::msgs::Header* UserCmdStats::release_header() {
195  // @@protoc_insertion_point(field_release:ignition.msgs.UserCmdStats.header)
196 
197  ::ignition::msgs::Header* temp = header_;
198  header_ = NULL;
199  return temp;
200 }
202  delete header_;
203  header_ = header;
204  if (header) {
205 
206  } else {
207 
208  }
209  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.UserCmdStats.header)
210 }
211 
212 // repeated .ignition.msgs.UserCmd undo_cmd = 2;
213 inline int UserCmdStats::undo_cmd_size() const {
214  return undo_cmd_.size();
215 }
217  undo_cmd_.Clear();
218 }
219 inline const ::ignition::msgs::UserCmd& UserCmdStats::undo_cmd(int index) const {
220  // @@protoc_insertion_point(field_get:ignition.msgs.UserCmdStats.undo_cmd)
221  return undo_cmd_.Get(index);
222 }
223 inline ::ignition::msgs::UserCmd* UserCmdStats::mutable_undo_cmd(int index) {
224  // @@protoc_insertion_point(field_mutable:ignition.msgs.UserCmdStats.undo_cmd)
225  return undo_cmd_.Mutable(index);
226 }
227 inline ::ignition::msgs::UserCmd* UserCmdStats::add_undo_cmd() {
228  // @@protoc_insertion_point(field_add:ignition.msgs.UserCmdStats.undo_cmd)
229  return undo_cmd_.Add();
230 }
231 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::UserCmd >*
233  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.UserCmdStats.undo_cmd)
234  return &undo_cmd_;
235 }
236 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::UserCmd >&
238  // @@protoc_insertion_point(field_list:ignition.msgs.UserCmdStats.undo_cmd)
239  return undo_cmd_;
240 }
241 
242 // repeated .ignition.msgs.UserCmd redo_cmd = 3;
243 inline int UserCmdStats::redo_cmd_size() const {
244  return redo_cmd_.size();
245 }
247  redo_cmd_.Clear();
248 }
249 inline const ::ignition::msgs::UserCmd& UserCmdStats::redo_cmd(int index) const {
250  // @@protoc_insertion_point(field_get:ignition.msgs.UserCmdStats.redo_cmd)
251  return redo_cmd_.Get(index);
252 }
253 inline ::ignition::msgs::UserCmd* UserCmdStats::mutable_redo_cmd(int index) {
254  // @@protoc_insertion_point(field_mutable:ignition.msgs.UserCmdStats.redo_cmd)
255  return redo_cmd_.Mutable(index);
256 }
257 inline ::ignition::msgs::UserCmd* UserCmdStats::add_redo_cmd() {
258  // @@protoc_insertion_point(field_add:ignition.msgs.UserCmdStats.redo_cmd)
259  return redo_cmd_.Add();
260 }
261 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::UserCmd >*
263  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.UserCmdStats.redo_cmd)
264  return &redo_cmd_;
265 }
266 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::UserCmd >&
268  // @@protoc_insertion_point(field_list:ignition.msgs.UserCmdStats.redo_cmd)
269  return redo_cmd_;
270 }
271 
272 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
273 
278 // @@protoc_insertion_point(namespace_scope)
279 
280 } // namespace msgs
281 } // namespace ignition
282 
283 #ifdef _MSC_VER
284 #pragma warning(pop)
285 #endif
286 // @@protoc_insertion_point(global_scope)
287 
288 #endif // PROTOBUF_ignition_2fmsgs_2fuser_5fcmd_5fstats_2eproto__INCLUDED
void clear_header()
Definition: user_cmd_stats.pb.h:178
std::shared_ptr< UserCmdStats > UserCmdStatsSharedPtr
Definition: user_cmd_stats.pb.h:276
void protobuf_ShutdownFile_ignition_2fmsgs_2fuser_5fcmd_5fstats_2eproto()
int redo_cmd_size() const
Definition: user_cmd_stats.pb.h:243
::ignition::msgs::UserCmd * add_redo_cmd()
Definition: user_cmd_stats.pb.h:257
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: user_cmd_stats.pb.h:93
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::UserCmd > & redo_cmd() const
Definition: user_cmd_stats.pb.h:267
void clear_redo_cmd()
Definition: user_cmd_stats.pb.h:246
std::unique_ptr< const UserCmdStats > ConstUserCmdStatsUniquePtr
Definition: user_cmd_stats.pb.h:275
Definition: user_cmd.pb.h:84
bool has_header() const
Definition: user_cmd_stats.pb.h:175
Definition: header.pb.h:161
Definition: user_cmd_stats.pb.h:57
std::unique_ptr< UserCmdStats > UserCmdStatsUniquePtr
Definition: user_cmd_stats.pb.h:274
UserCmdStats * New() const
Definition: user_cmd_stats.pb.h:76
::ignition::msgs::Header * mutable_header()
Definition: user_cmd_stats.pb.h:186
int undo_cmd_size() const
Definition: user_cmd_stats.pb.h:213
UserCmdStats & operator=(const UserCmdStats &from)
Definition: user_cmd_stats.pb.h:64
const ::ignition::msgs::Header & header() const
Definition: user_cmd_stats.pb.h:182
std::shared_ptr< const UserCmdStats > ConstUserCmdStatsSharedPtr
Definition: user_cmd_stats.pb.h:277
void set_allocated_header(::ignition::msgs::Header *header)
Definition: user_cmd_stats.pb.h:201
void protobuf_AssignDesc_ignition_2fmsgs_2fuser_5fcmd_5fstats_2eproto()
STL class.
void clear_undo_cmd()
Definition: user_cmd_stats.pb.h:216
::ignition::msgs::UserCmd * add_undo_cmd()
Definition: user_cmd_stats.pb.h:227
::ignition::msgs::Header * release_header()
Definition: user_cmd_stats.pb.h:194
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::UserCmd > & undo_cmd() const
Definition: user_cmd_stats.pb.h:237
::google::protobuf::RepeatedPtrField< ::ignition::msgs::UserCmd > * mutable_redo_cmd()
Definition: user_cmd_stats.pb.h:262
int GetCachedSize() const
Definition: user_cmd_stats.pb.h:96
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fuser_5fcmd_5fstats_2eproto()
::google::protobuf::RepeatedPtrField< ::ignition::msgs::UserCmd > * mutable_undo_cmd()
Definition: user_cmd_stats.pb.h:232