Ignition Msgs

API Reference

7.1.0
uint32_v.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/uint32_v.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fuint32_5fv_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fuint32_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>
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 UInt32_V;
53 
54 // ===================================================================
55 
56 class IGNITION_MSGS_VISIBLE UInt32_V : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.UInt32_V) */ {
57  public:
58  UInt32_V();
59  virtual ~UInt32_V();
60 
61  UInt32_V(const UInt32_V& from);
62 
63  inline UInt32_V& operator=(const UInt32_V& from) {
64  CopyFrom(from);
65  return *this;
66  }
67 
68  static const ::google::protobuf::Descriptor* descriptor();
69  static const UInt32_V& default_instance();
70 
71  void Swap(UInt32_V* other);
72 
73  // implements Message ----------------------------------------------
74 
75  inline UInt32_V* New() const { return New(NULL); }
76 
77  UInt32_V* 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 UInt32_V& from);
81  void MergeFrom(const UInt32_V& 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(UInt32_V* 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 .ignition.msgs.Header header = 1;
117  bool has_header() const;
118  void clear_header();
119  static const int kHeaderFieldNumber = 1;
120  const ::ignition::msgs::Header& header() const;
121  ::ignition::msgs::Header* mutable_header();
122  ::ignition::msgs::Header* release_header();
123  void set_allocated_header(::ignition::msgs::Header* header);
124 
125  // repeated uint32 data = 2;
126  int data_size() const;
127  void clear_data();
128  static const int kDataFieldNumber = 2;
129  ::google::protobuf::uint32 data(int index) const;
130  void set_data(int index, ::google::protobuf::uint32 value);
131  void add_data(::google::protobuf::uint32 value);
132  const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
133  data() const;
134  ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
135  mutable_data();
136 
137  // @@protoc_insertion_point(class_scope:ignition.msgs.UInt32_V)
138  private:
139 
140  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
141  bool _is_default_instance_;
142  ::ignition::msgs::Header* header_;
143  ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > data_;
144  mutable int _data_cached_byte_size_;
145  mutable int _cached_size_;
146  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fuint32_5fv_2eproto();
149 
150  void InitAsDefaultInstance();
151  static UInt32_V* default_instance_;
152 };
153 // ===================================================================
154 
155 
156 // ===================================================================
157 
158 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
159 // UInt32_V
160 
161 // optional .ignition.msgs.Header header = 1;
162 inline bool UInt32_V::has_header() const {
163  return !_is_default_instance_ && header_ != NULL;
164 }
165 inline void UInt32_V::clear_header() {
166  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
167  header_ = NULL;
168 }
169 inline const ::ignition::msgs::Header& UInt32_V::header() const {
170  // @@protoc_insertion_point(field_get:ignition.msgs.UInt32_V.header)
171  return header_ != NULL ? *header_ : *default_instance_->header_;
172 }
173 inline ::ignition::msgs::Header* UInt32_V::mutable_header() {
174 
175  if (header_ == NULL) {
176  header_ = new ::ignition::msgs::Header;
177  }
178  // @@protoc_insertion_point(field_mutable:ignition.msgs.UInt32_V.header)
179  return header_;
180 }
181 inline ::ignition::msgs::Header* UInt32_V::release_header() {
182  // @@protoc_insertion_point(field_release:ignition.msgs.UInt32_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.UInt32_V.header)
197 }
198 
199 // repeated uint32 data = 2;
200 inline int UInt32_V::data_size() const {
201  return data_.size();
202 }
203 inline void UInt32_V::clear_data() {
204  data_.Clear();
205 }
206 inline ::google::protobuf::uint32 UInt32_V::data(int index) const {
207  // @@protoc_insertion_point(field_get:ignition.msgs.UInt32_V.data)
208  return data_.Get(index);
209 }
210 inline void UInt32_V::set_data(int index, ::google::protobuf::uint32 value) {
211  data_.Set(index, value);
212  // @@protoc_insertion_point(field_set:ignition.msgs.UInt32_V.data)
213 }
214 inline void UInt32_V::add_data(::google::protobuf::uint32 value) {
215  data_.Add(value);
216  // @@protoc_insertion_point(field_add:ignition.msgs.UInt32_V.data)
217 }
218 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
219 UInt32_V::data() const {
220  // @@protoc_insertion_point(field_list:ignition.msgs.UInt32_V.data)
221  return data_;
222 }
223 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
225  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.UInt32_V.data)
226  return &data_;
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_2fuint32_5fv_2eproto__INCLUDED
const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > & data() const
Definition: uint32_v.pb.h:219
Definition: uint32_v.pb.h:56
void protobuf_ShutdownFile_ignition_2fmsgs_2fuint32_5fv_2eproto()
std::shared_ptr< const UInt32_V > ConstUInt32_VSharedPtr
Definition: uint32_v.pb.h:234
void set_allocated_header(::ignition::msgs::Header *header)
Definition: uint32_v.pb.h:188
::ignition::msgs::Header * mutable_header()
Definition: uint32_v.pb.h:173
void clear_header()
Definition: uint32_v.pb.h:165
int GetCachedSize() const
Definition: uint32_v.pb.h:95
int data_size() const
Definition: uint32_v.pb.h:200
std::shared_ptr< UInt32_V > UInt32_VSharedPtr
Definition: uint32_v.pb.h:233
Definition: header.pb.h:161
std::unique_ptr< UInt32_V > UInt32_VUniquePtr
Definition: uint32_v.pb.h:231
void clear_data()
Definition: uint32_v.pb.h:203
UInt32_V * New() const
Definition: uint32_v.pb.h:75
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fuint32_5fv_2eproto()
void protobuf_AssignDesc_ignition_2fmsgs_2fuint32_5fv_2eproto()
STL class.
void set_data(int index, ::google::protobuf::uint32 value)
Definition: uint32_v.pb.h:210
UInt32_V & operator=(const UInt32_V &from)
Definition: uint32_v.pb.h:63
std::unique_ptr< const UInt32_V > ConstUInt32_VUniquePtr
Definition: uint32_v.pb.h:232
::google::protobuf::RepeatedField< ::google::protobuf::uint32 > * mutable_data()
Definition: uint32_v.pb.h:224
bool has_header() const
Definition: uint32_v.pb.h:162
void add_data(::google::protobuf::uint32 value)
Definition: uint32_v.pb.h:214
::ignition::msgs::Header * release_header()
Definition: uint32_v.pb.h:181
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: uint32_v.pb.h:92
const ::ignition::msgs::Header & header() const
Definition: uint32_v.pb.h:169