/src/gpowerd/state_persistence.pb.h
Line | Count | Source |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: state_persistence.proto |
3 | | |
4 | | #ifndef GOOGLE_PROTOBUF_INCLUDED_state_5fpersistence_2eproto |
5 | | #define GOOGLE_PROTOBUF_INCLUDED_state_5fpersistence_2eproto |
6 | | |
7 | | #include <limits> |
8 | | #include <string> |
9 | | |
10 | | #include <google/protobuf/port_def.inc> |
11 | | #if PROTOBUF_VERSION < 3021000 |
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 3021012 < 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/port_undef.inc> |
23 | | #include <google/protobuf/io/coded_stream.h> |
24 | | #include <google/protobuf/arena.h> |
25 | | #include <google/protobuf/arenastring.h> |
26 | | #include <google/protobuf/generated_message_util.h> |
27 | | #include <google/protobuf/metadata_lite.h> |
28 | | #include <google/protobuf/generated_message_reflection.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 "action.pb.h" |
34 | | // @@protoc_insertion_point(includes) |
35 | | #include <google/protobuf/port_def.inc> |
36 | | #define PROTOBUF_INTERNAL_EXPORT_state_5fpersistence_2eproto |
37 | | PROTOBUF_NAMESPACE_OPEN |
38 | | namespace internal { |
39 | | class AnyMetadata; |
40 | | } // namespace internal |
41 | | PROTOBUF_NAMESPACE_CLOSE |
42 | | |
43 | | // Internal implementation detail -- do not use these members. |
44 | | struct TableStruct_state_5fpersistence_2eproto { |
45 | | static const uint32_t offsets[]; |
46 | | }; |
47 | | extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_state_5fpersistence_2eproto; |
48 | | namespace safepower_agent_persistence_proto { |
49 | | class SavedAction; |
50 | | struct SavedActionDefaultTypeInternal; |
51 | | extern SavedActionDefaultTypeInternal _SavedAction_default_instance_; |
52 | | class SavedActionRecord; |
53 | | struct SavedActionRecordDefaultTypeInternal; |
54 | | extern SavedActionRecordDefaultTypeInternal _SavedActionRecord_default_instance_; |
55 | | class SavedActions; |
56 | | struct SavedActionsDefaultTypeInternal; |
57 | | extern SavedActionsDefaultTypeInternal _SavedActions_default_instance_; |
58 | | } // namespace safepower_agent_persistence_proto |
59 | | PROTOBUF_NAMESPACE_OPEN |
60 | | template<> ::safepower_agent_persistence_proto::SavedAction* Arena::CreateMaybeMessage<::safepower_agent_persistence_proto::SavedAction>(Arena*); |
61 | | template<> ::safepower_agent_persistence_proto::SavedActionRecord* Arena::CreateMaybeMessage<::safepower_agent_persistence_proto::SavedActionRecord>(Arena*); |
62 | | template<> ::safepower_agent_persistence_proto::SavedActions* Arena::CreateMaybeMessage<::safepower_agent_persistence_proto::SavedActions>(Arena*); |
63 | | PROTOBUF_NAMESPACE_CLOSE |
64 | | namespace safepower_agent_persistence_proto { |
65 | | |
66 | | // =================================================================== |
67 | | |
68 | | class SavedAction final : |
69 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:safepower_agent_persistence_proto.SavedAction) */ { |
70 | | public: |
71 | 0 | inline SavedAction() : SavedAction(nullptr) {} |
72 | | ~SavedAction() override; |
73 | | explicit PROTOBUF_CONSTEXPR SavedAction(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
74 | | |
75 | | SavedAction(const SavedAction& from); |
76 | | SavedAction(SavedAction&& from) noexcept |
77 | 0 | : SavedAction() { |
78 | 0 | *this = ::std::move(from); |
79 | 0 | } |
80 | | |
81 | 0 | inline SavedAction& operator=(const SavedAction& from) { |
82 | 0 | CopyFrom(from); |
83 | 0 | return *this; |
84 | 0 | } |
85 | 0 | inline SavedAction& operator=(SavedAction&& from) noexcept { |
86 | 0 | if (this == &from) return *this; |
87 | 0 | if (GetOwningArena() == from.GetOwningArena() |
88 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
89 | 0 | && GetOwningArena() != nullptr |
90 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
91 | 0 | ) { |
92 | 0 | InternalSwap(&from); |
93 | 0 | } else { |
94 | 0 | CopyFrom(from); |
95 | 0 | } |
96 | 0 | return *this; |
97 | 0 | } |
98 | | |
99 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
100 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
101 | 0 | } |
102 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
103 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
104 | 0 | } |
105 | | |
106 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
107 | 0 | return GetDescriptor(); |
108 | 0 | } |
109 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
110 | 0 | return default_instance().GetMetadata().descriptor; |
111 | 0 | } |
112 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
113 | 0 | return default_instance().GetMetadata().reflection; |
114 | 0 | } |
115 | 0 | static const SavedAction& default_instance() { |
116 | 0 | return *internal_default_instance(); |
117 | 0 | } |
118 | 0 | static inline const SavedAction* internal_default_instance() { |
119 | 0 | return reinterpret_cast<const SavedAction*>( |
120 | 0 | &_SavedAction_default_instance_); |
121 | 0 | } |
122 | | static constexpr int kIndexInFileMessages = |
123 | | 0; |
124 | | |
125 | 0 | friend void swap(SavedAction& a, SavedAction& b) { |
126 | 0 | a.Swap(&b); |
127 | 0 | } |
128 | 0 | inline void Swap(SavedAction* other) { |
129 | 0 | if (other == this) return; |
130 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
131 | 0 | if (GetOwningArena() != nullptr && |
132 | 0 | GetOwningArena() == other->GetOwningArena()) { |
133 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
134 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
135 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
136 | 0 | InternalSwap(other); |
137 | 0 | } else { |
138 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
139 | 0 | } |
140 | 0 | } |
141 | 0 | void UnsafeArenaSwap(SavedAction* other) { |
142 | 0 | if (other == this) return; |
143 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
144 | 0 | InternalSwap(other); |
145 | 0 | } |
146 | | |
147 | | // implements Message ---------------------------------------------- |
148 | | |
149 | 0 | SavedAction* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
150 | 0 | return CreateMaybeMessage<SavedAction>(arena); |
151 | 0 | } |
152 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
153 | | void CopyFrom(const SavedAction& from); |
154 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
155 | 0 | void MergeFrom( const SavedAction& from) { |
156 | 0 | SavedAction::MergeImpl(*this, from); |
157 | 0 | } |
158 | | private: |
159 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
160 | | public: |
161 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
162 | | bool IsInitialized() const final; |
163 | | |
164 | | size_t ByteSizeLong() const final; |
165 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
166 | | uint8_t* _InternalSerialize( |
167 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
168 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
169 | | |
170 | | private: |
171 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
172 | | void SharedDtor(); |
173 | | void SetCachedSize(int size) const final; |
174 | | void InternalSwap(SavedAction* other); |
175 | | |
176 | | private: |
177 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
178 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
179 | 0 | return "safepower_agent_persistence_proto.SavedAction"; |
180 | 0 | } |
181 | | protected: |
182 | | explicit SavedAction(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
183 | | bool is_message_owned = false); |
184 | | public: |
185 | | |
186 | | static const ClassData _class_data_; |
187 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
188 | | |
189 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
190 | | |
191 | | // nested types ---------------------------------------------------- |
192 | | |
193 | | // accessors ------------------------------------------------------- |
194 | | |
195 | | enum : int { |
196 | | kOriginalRequestFieldNumber = 1, |
197 | | kActionStateLogFieldNumber = 2, |
198 | | }; |
199 | | // optional .safepower_agent_proto.StartActionRequest original_request = 1; |
200 | | bool has_original_request() const; |
201 | | private: |
202 | | bool _internal_has_original_request() const; |
203 | | public: |
204 | | void clear_original_request(); |
205 | | const ::safepower_agent_proto::StartActionRequest& original_request() const; |
206 | | PROTOBUF_NODISCARD ::safepower_agent_proto::StartActionRequest* release_original_request(); |
207 | | ::safepower_agent_proto::StartActionRequest* mutable_original_request(); |
208 | | void set_allocated_original_request(::safepower_agent_proto::StartActionRequest* original_request); |
209 | | private: |
210 | | const ::safepower_agent_proto::StartActionRequest& _internal_original_request() const; |
211 | | ::safepower_agent_proto::StartActionRequest* _internal_mutable_original_request(); |
212 | | public: |
213 | | void unsafe_arena_set_allocated_original_request( |
214 | | ::safepower_agent_proto::StartActionRequest* original_request); |
215 | | ::safepower_agent_proto::StartActionRequest* unsafe_arena_release_original_request(); |
216 | | |
217 | | // optional .safepower_agent_proto.ActionStateLog action_state_log = 2; |
218 | | bool has_action_state_log() const; |
219 | | private: |
220 | | bool _internal_has_action_state_log() const; |
221 | | public: |
222 | | void clear_action_state_log(); |
223 | | const ::safepower_agent_proto::ActionStateLog& action_state_log() const; |
224 | | PROTOBUF_NODISCARD ::safepower_agent_proto::ActionStateLog* release_action_state_log(); |
225 | | ::safepower_agent_proto::ActionStateLog* mutable_action_state_log(); |
226 | | void set_allocated_action_state_log(::safepower_agent_proto::ActionStateLog* action_state_log); |
227 | | private: |
228 | | const ::safepower_agent_proto::ActionStateLog& _internal_action_state_log() const; |
229 | | ::safepower_agent_proto::ActionStateLog* _internal_mutable_action_state_log(); |
230 | | public: |
231 | | void unsafe_arena_set_allocated_action_state_log( |
232 | | ::safepower_agent_proto::ActionStateLog* action_state_log); |
233 | | ::safepower_agent_proto::ActionStateLog* unsafe_arena_release_action_state_log(); |
234 | | |
235 | | // @@protoc_insertion_point(class_scope:safepower_agent_persistence_proto.SavedAction) |
236 | | private: |
237 | | class _Internal; |
238 | | |
239 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
240 | | typedef void InternalArenaConstructable_; |
241 | | typedef void DestructorSkippable_; |
242 | | struct Impl_ { |
243 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
244 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
245 | | ::safepower_agent_proto::StartActionRequest* original_request_; |
246 | | ::safepower_agent_proto::ActionStateLog* action_state_log_; |
247 | | }; |
248 | | union { Impl_ _impl_; }; |
249 | | friend struct ::TableStruct_state_5fpersistence_2eproto; |
250 | | }; |
251 | | // ------------------------------------------------------------------- |
252 | | |
253 | | class SavedActionRecord final : |
254 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:safepower_agent_persistence_proto.SavedActionRecord) */ { |
255 | | public: |
256 | 0 | inline SavedActionRecord() : SavedActionRecord(nullptr) {} |
257 | | ~SavedActionRecord() override; |
258 | | explicit PROTOBUF_CONSTEXPR SavedActionRecord(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
259 | | |
260 | | SavedActionRecord(const SavedActionRecord& from); |
261 | | SavedActionRecord(SavedActionRecord&& from) noexcept |
262 | 0 | : SavedActionRecord() { |
263 | 0 | *this = ::std::move(from); |
264 | 0 | } |
265 | | |
266 | 0 | inline SavedActionRecord& operator=(const SavedActionRecord& from) { |
267 | 0 | CopyFrom(from); |
268 | 0 | return *this; |
269 | 0 | } |
270 | 0 | inline SavedActionRecord& operator=(SavedActionRecord&& from) noexcept { |
271 | 0 | if (this == &from) return *this; |
272 | 0 | if (GetOwningArena() == from.GetOwningArena() |
273 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
274 | 0 | && GetOwningArena() != nullptr |
275 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
276 | 0 | ) { |
277 | 0 | InternalSwap(&from); |
278 | 0 | } else { |
279 | 0 | CopyFrom(from); |
280 | 0 | } |
281 | 0 | return *this; |
282 | 0 | } |
283 | | |
284 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
285 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
286 | 0 | } |
287 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
288 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
289 | 0 | } |
290 | | |
291 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
292 | 0 | return GetDescriptor(); |
293 | 0 | } |
294 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
295 | 0 | return default_instance().GetMetadata().descriptor; |
296 | 0 | } |
297 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
298 | 0 | return default_instance().GetMetadata().reflection; |
299 | 0 | } |
300 | 0 | static const SavedActionRecord& default_instance() { |
301 | 0 | return *internal_default_instance(); |
302 | 0 | } |
303 | 0 | static inline const SavedActionRecord* internal_default_instance() { |
304 | 0 | return reinterpret_cast<const SavedActionRecord*>( |
305 | 0 | &_SavedActionRecord_default_instance_); |
306 | 0 | } |
307 | | static constexpr int kIndexInFileMessages = |
308 | | 1; |
309 | | |
310 | 0 | friend void swap(SavedActionRecord& a, SavedActionRecord& b) { |
311 | 0 | a.Swap(&b); |
312 | 0 | } |
313 | 0 | inline void Swap(SavedActionRecord* other) { |
314 | 0 | if (other == this) return; |
315 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
316 | 0 | if (GetOwningArena() != nullptr && |
317 | 0 | GetOwningArena() == other->GetOwningArena()) { |
318 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
319 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
320 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
321 | 0 | InternalSwap(other); |
322 | 0 | } else { |
323 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
324 | 0 | } |
325 | 0 | } |
326 | 0 | void UnsafeArenaSwap(SavedActionRecord* other) { |
327 | 0 | if (other == this) return; |
328 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
329 | 0 | InternalSwap(other); |
330 | 0 | } |
331 | | |
332 | | // implements Message ---------------------------------------------- |
333 | | |
334 | 0 | SavedActionRecord* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
335 | 0 | return CreateMaybeMessage<SavedActionRecord>(arena); |
336 | 0 | } |
337 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
338 | | void CopyFrom(const SavedActionRecord& from); |
339 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
340 | 0 | void MergeFrom( const SavedActionRecord& from) { |
341 | 0 | SavedActionRecord::MergeImpl(*this, from); |
342 | 0 | } |
343 | | private: |
344 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
345 | | public: |
346 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
347 | | bool IsInitialized() const final; |
348 | | |
349 | | size_t ByteSizeLong() const final; |
350 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
351 | | uint8_t* _InternalSerialize( |
352 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
353 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
354 | | |
355 | | private: |
356 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
357 | | void SharedDtor(); |
358 | | void SetCachedSize(int size) const final; |
359 | | void InternalSwap(SavedActionRecord* other); |
360 | | |
361 | | private: |
362 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
363 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
364 | 0 | return "safepower_agent_persistence_proto.SavedActionRecord"; |
365 | 0 | } |
366 | | protected: |
367 | | explicit SavedActionRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
368 | | bool is_message_owned = false); |
369 | | public: |
370 | | |
371 | | static const ClassData _class_data_; |
372 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
373 | | |
374 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
375 | | |
376 | | // nested types ---------------------------------------------------- |
377 | | |
378 | | // accessors ------------------------------------------------------- |
379 | | |
380 | | enum : int { |
381 | | kActionsFieldNumber = 2, |
382 | | }; |
383 | | // optional .safepower_agent_persistence_proto.SavedAction actions = 2; |
384 | | bool has_actions() const; |
385 | | private: |
386 | | bool _internal_has_actions() const; |
387 | | public: |
388 | | void clear_actions(); |
389 | | const ::safepower_agent_persistence_proto::SavedAction& actions() const; |
390 | | PROTOBUF_NODISCARD ::safepower_agent_persistence_proto::SavedAction* release_actions(); |
391 | | ::safepower_agent_persistence_proto::SavedAction* mutable_actions(); |
392 | | void set_allocated_actions(::safepower_agent_persistence_proto::SavedAction* actions); |
393 | | private: |
394 | | const ::safepower_agent_persistence_proto::SavedAction& _internal_actions() const; |
395 | | ::safepower_agent_persistence_proto::SavedAction* _internal_mutable_actions(); |
396 | | public: |
397 | | void unsafe_arena_set_allocated_actions( |
398 | | ::safepower_agent_persistence_proto::SavedAction* actions); |
399 | | ::safepower_agent_persistence_proto::SavedAction* unsafe_arena_release_actions(); |
400 | | |
401 | | // @@protoc_insertion_point(class_scope:safepower_agent_persistence_proto.SavedActionRecord) |
402 | | private: |
403 | | class _Internal; |
404 | | |
405 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
406 | | typedef void InternalArenaConstructable_; |
407 | | typedef void DestructorSkippable_; |
408 | | struct Impl_ { |
409 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
410 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
411 | | ::safepower_agent_persistence_proto::SavedAction* actions_; |
412 | | }; |
413 | | union { Impl_ _impl_; }; |
414 | | friend struct ::TableStruct_state_5fpersistence_2eproto; |
415 | | }; |
416 | | // ------------------------------------------------------------------- |
417 | | |
418 | | class SavedActions final : |
419 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:safepower_agent_persistence_proto.SavedActions) */ { |
420 | | public: |
421 | 0 | inline SavedActions() : SavedActions(nullptr) {} |
422 | | ~SavedActions() override; |
423 | | explicit PROTOBUF_CONSTEXPR SavedActions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
424 | | |
425 | | SavedActions(const SavedActions& from); |
426 | | SavedActions(SavedActions&& from) noexcept |
427 | 0 | : SavedActions() { |
428 | 0 | *this = ::std::move(from); |
429 | 0 | } |
430 | | |
431 | 0 | inline SavedActions& operator=(const SavedActions& from) { |
432 | 0 | CopyFrom(from); |
433 | 0 | return *this; |
434 | 0 | } |
435 | 0 | inline SavedActions& operator=(SavedActions&& from) noexcept { |
436 | 0 | if (this == &from) return *this; |
437 | 0 | if (GetOwningArena() == from.GetOwningArena() |
438 | | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
439 | | && GetOwningArena() != nullptr |
440 | | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
441 | 0 | ) { |
442 | 0 | InternalSwap(&from); |
443 | 0 | } else { |
444 | 0 | CopyFrom(from); |
445 | 0 | } |
446 | 0 | return *this; |
447 | 0 | } |
448 | | |
449 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
450 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
451 | 0 | } |
452 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
453 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
454 | 0 | } |
455 | | |
456 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
457 | 0 | return GetDescriptor(); |
458 | 0 | } |
459 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
460 | 0 | return default_instance().GetMetadata().descriptor; |
461 | 0 | } |
462 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
463 | 0 | return default_instance().GetMetadata().reflection; |
464 | 0 | } |
465 | 0 | static const SavedActions& default_instance() { |
466 | 0 | return *internal_default_instance(); |
467 | 0 | } |
468 | 0 | static inline const SavedActions* internal_default_instance() { |
469 | 0 | return reinterpret_cast<const SavedActions*>( |
470 | 0 | &_SavedActions_default_instance_); |
471 | 0 | } |
472 | | static constexpr int kIndexInFileMessages = |
473 | | 2; |
474 | | |
475 | 0 | friend void swap(SavedActions& a, SavedActions& b) { |
476 | 0 | a.Swap(&b); |
477 | 0 | } |
478 | 0 | inline void Swap(SavedActions* other) { |
479 | 0 | if (other == this) return; |
480 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
481 | 0 | if (GetOwningArena() != nullptr && |
482 | 0 | GetOwningArena() == other->GetOwningArena()) { |
483 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
484 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
485 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
486 | 0 | InternalSwap(other); |
487 | 0 | } else { |
488 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
489 | 0 | } |
490 | 0 | } |
491 | 0 | void UnsafeArenaSwap(SavedActions* other) { |
492 | 0 | if (other == this) return; |
493 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
494 | 0 | InternalSwap(other); |
495 | 0 | } |
496 | | |
497 | | // implements Message ---------------------------------------------- |
498 | | |
499 | 0 | SavedActions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
500 | 0 | return CreateMaybeMessage<SavedActions>(arena); |
501 | 0 | } |
502 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
503 | | void CopyFrom(const SavedActions& from); |
504 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
505 | 0 | void MergeFrom( const SavedActions& from) { |
506 | 0 | SavedActions::MergeImpl(*this, from); |
507 | 0 | } |
508 | | private: |
509 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
510 | | public: |
511 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
512 | | bool IsInitialized() const final; |
513 | | |
514 | | size_t ByteSizeLong() const final; |
515 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
516 | | uint8_t* _InternalSerialize( |
517 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
518 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
519 | | |
520 | | private: |
521 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
522 | | void SharedDtor(); |
523 | | void SetCachedSize(int size) const final; |
524 | | void InternalSwap(SavedActions* other); |
525 | | |
526 | | private: |
527 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
528 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
529 | 0 | return "safepower_agent_persistence_proto.SavedActions"; |
530 | 0 | } |
531 | | protected: |
532 | | explicit SavedActions(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
533 | | bool is_message_owned = false); |
534 | | public: |
535 | | |
536 | | static const ClassData _class_data_; |
537 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
538 | | |
539 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
540 | | |
541 | | // nested types ---------------------------------------------------- |
542 | | |
543 | | // accessors ------------------------------------------------------- |
544 | | |
545 | | enum : int { |
546 | | kSavedActionRecordsFieldNumber = 2, |
547 | | kBootIdFieldNumber = 3, |
548 | | kBootCounterFieldNumber = 4, |
549 | | }; |
550 | | // repeated .safepower_agent_persistence_proto.SavedActionRecord saved_action_records = 2; |
551 | | int saved_action_records_size() const; |
552 | | private: |
553 | | int _internal_saved_action_records_size() const; |
554 | | public: |
555 | | void clear_saved_action_records(); |
556 | | ::safepower_agent_persistence_proto::SavedActionRecord* mutable_saved_action_records(int index); |
557 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::safepower_agent_persistence_proto::SavedActionRecord >* |
558 | | mutable_saved_action_records(); |
559 | | private: |
560 | | const ::safepower_agent_persistence_proto::SavedActionRecord& _internal_saved_action_records(int index) const; |
561 | | ::safepower_agent_persistence_proto::SavedActionRecord* _internal_add_saved_action_records(); |
562 | | public: |
563 | | const ::safepower_agent_persistence_proto::SavedActionRecord& saved_action_records(int index) const; |
564 | | ::safepower_agent_persistence_proto::SavedActionRecord* add_saved_action_records(); |
565 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::safepower_agent_persistence_proto::SavedActionRecord >& |
566 | | saved_action_records() const; |
567 | | |
568 | | // optional string boot_id = 3; |
569 | | bool has_boot_id() const; |
570 | | private: |
571 | | bool _internal_has_boot_id() const; |
572 | | public: |
573 | | void clear_boot_id(); |
574 | | const std::string& boot_id() const; |
575 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
576 | | void set_boot_id(ArgT0&& arg0, ArgT... args); |
577 | | std::string* mutable_boot_id(); |
578 | | PROTOBUF_NODISCARD std::string* release_boot_id(); |
579 | | void set_allocated_boot_id(std::string* boot_id); |
580 | | private: |
581 | | const std::string& _internal_boot_id() const; |
582 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_boot_id(const std::string& value); |
583 | | std::string* _internal_mutable_boot_id(); |
584 | | public: |
585 | | |
586 | | // optional int32 boot_counter = 4; |
587 | | bool has_boot_counter() const; |
588 | | private: |
589 | | bool _internal_has_boot_counter() const; |
590 | | public: |
591 | | void clear_boot_counter(); |
592 | | int32_t boot_counter() const; |
593 | | void set_boot_counter(int32_t value); |
594 | | private: |
595 | | int32_t _internal_boot_counter() const; |
596 | | void _internal_set_boot_counter(int32_t value); |
597 | | public: |
598 | | |
599 | | // @@protoc_insertion_point(class_scope:safepower_agent_persistence_proto.SavedActions) |
600 | | private: |
601 | | class _Internal; |
602 | | |
603 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
604 | | typedef void InternalArenaConstructable_; |
605 | | typedef void DestructorSkippable_; |
606 | | struct Impl_ { |
607 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
608 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
609 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::safepower_agent_persistence_proto::SavedActionRecord > saved_action_records_; |
610 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr boot_id_; |
611 | | int32_t boot_counter_; |
612 | | }; |
613 | | union { Impl_ _impl_; }; |
614 | | friend struct ::TableStruct_state_5fpersistence_2eproto; |
615 | | }; |
616 | | // =================================================================== |
617 | | |
618 | | |
619 | | // =================================================================== |
620 | | |
621 | | #ifdef __GNUC__ |
622 | | #pragma GCC diagnostic push |
623 | | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
624 | | #endif // __GNUC__ |
625 | | // SavedAction |
626 | | |
627 | | // optional .safepower_agent_proto.StartActionRequest original_request = 1; |
628 | 0 | inline bool SavedAction::_internal_has_original_request() const { |
629 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
630 | 0 | PROTOBUF_ASSUME(!value || _impl_.original_request_ != nullptr); |
631 | 0 | return value; |
632 | 0 | } |
633 | 0 | inline bool SavedAction::has_original_request() const { |
634 | 0 | return _internal_has_original_request(); |
635 | 0 | } |
636 | 0 | inline const ::safepower_agent_proto::StartActionRequest& SavedAction::_internal_original_request() const { |
637 | 0 | const ::safepower_agent_proto::StartActionRequest* p = _impl_.original_request_; |
638 | 0 | return p != nullptr ? *p : reinterpret_cast<const ::safepower_agent_proto::StartActionRequest&>( |
639 | 0 | ::safepower_agent_proto::_StartActionRequest_default_instance_); |
640 | 0 | } |
641 | 0 | inline const ::safepower_agent_proto::StartActionRequest& SavedAction::original_request() const { |
642 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_persistence_proto.SavedAction.original_request) |
643 | 0 | return _internal_original_request(); |
644 | 0 | } |
645 | | inline void SavedAction::unsafe_arena_set_allocated_original_request( |
646 | 0 | ::safepower_agent_proto::StartActionRequest* original_request) { |
647 | 0 | if (GetArenaForAllocation() == nullptr) { |
648 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.original_request_); |
649 | 0 | } |
650 | 0 | _impl_.original_request_ = original_request; |
651 | 0 | if (original_request) { |
652 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
653 | 0 | } else { |
654 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
655 | 0 | } |
656 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:safepower_agent_persistence_proto.SavedAction.original_request) |
657 | 0 | } |
658 | 0 | inline ::safepower_agent_proto::StartActionRequest* SavedAction::release_original_request() { |
659 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
660 | 0 | ::safepower_agent_proto::StartActionRequest* temp = _impl_.original_request_; |
661 | 0 | _impl_.original_request_ = nullptr; |
662 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
663 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
664 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
665 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
666 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
667 | 0 | if (GetArenaForAllocation() != nullptr) { |
668 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
669 | 0 | } |
670 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
671 | 0 | return temp; |
672 | 0 | } |
673 | 0 | inline ::safepower_agent_proto::StartActionRequest* SavedAction::unsafe_arena_release_original_request() { |
674 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_persistence_proto.SavedAction.original_request) |
675 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
676 | 0 | ::safepower_agent_proto::StartActionRequest* temp = _impl_.original_request_; |
677 | 0 | _impl_.original_request_ = nullptr; |
678 | 0 | return temp; |
679 | 0 | } |
680 | 0 | inline ::safepower_agent_proto::StartActionRequest* SavedAction::_internal_mutable_original_request() { |
681 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
682 | 0 | if (_impl_.original_request_ == nullptr) { |
683 | 0 | auto* p = CreateMaybeMessage<::safepower_agent_proto::StartActionRequest>(GetArenaForAllocation()); |
684 | 0 | _impl_.original_request_ = p; |
685 | 0 | } |
686 | 0 | return _impl_.original_request_; |
687 | 0 | } |
688 | 0 | inline ::safepower_agent_proto::StartActionRequest* SavedAction::mutable_original_request() { |
689 | 0 | ::safepower_agent_proto::StartActionRequest* _msg = _internal_mutable_original_request(); |
690 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_persistence_proto.SavedAction.original_request) |
691 | 0 | return _msg; |
692 | 0 | } |
693 | 0 | inline void SavedAction::set_allocated_original_request(::safepower_agent_proto::StartActionRequest* original_request) { |
694 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
695 | 0 | if (message_arena == nullptr) { |
696 | 0 | delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.original_request_); |
697 | 0 | } |
698 | 0 | if (original_request) { |
699 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
700 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( |
701 | 0 | reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(original_request)); |
702 | 0 | if (message_arena != submessage_arena) { |
703 | 0 | original_request = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
704 | 0 | message_arena, original_request, submessage_arena); |
705 | 0 | } |
706 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
707 | 0 | } else { |
708 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
709 | 0 | } |
710 | 0 | _impl_.original_request_ = original_request; |
711 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_persistence_proto.SavedAction.original_request) |
712 | 0 | } |
713 | | |
714 | | // optional .safepower_agent_proto.ActionStateLog action_state_log = 2; |
715 | 0 | inline bool SavedAction::_internal_has_action_state_log() const { |
716 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
717 | 0 | PROTOBUF_ASSUME(!value || _impl_.action_state_log_ != nullptr); |
718 | 0 | return value; |
719 | 0 | } |
720 | 0 | inline bool SavedAction::has_action_state_log() const { |
721 | 0 | return _internal_has_action_state_log(); |
722 | 0 | } |
723 | 0 | inline const ::safepower_agent_proto::ActionStateLog& SavedAction::_internal_action_state_log() const { |
724 | 0 | const ::safepower_agent_proto::ActionStateLog* p = _impl_.action_state_log_; |
725 | 0 | return p != nullptr ? *p : reinterpret_cast<const ::safepower_agent_proto::ActionStateLog&>( |
726 | 0 | ::safepower_agent_proto::_ActionStateLog_default_instance_); |
727 | 0 | } |
728 | 0 | inline const ::safepower_agent_proto::ActionStateLog& SavedAction::action_state_log() const { |
729 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_persistence_proto.SavedAction.action_state_log) |
730 | 0 | return _internal_action_state_log(); |
731 | 0 | } |
732 | | inline void SavedAction::unsafe_arena_set_allocated_action_state_log( |
733 | 0 | ::safepower_agent_proto::ActionStateLog* action_state_log) { |
734 | 0 | if (GetArenaForAllocation() == nullptr) { |
735 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_state_log_); |
736 | 0 | } |
737 | 0 | _impl_.action_state_log_ = action_state_log; |
738 | 0 | if (action_state_log) { |
739 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
740 | 0 | } else { |
741 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
742 | 0 | } |
743 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:safepower_agent_persistence_proto.SavedAction.action_state_log) |
744 | 0 | } |
745 | 0 | inline ::safepower_agent_proto::ActionStateLog* SavedAction::release_action_state_log() { |
746 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
747 | 0 | ::safepower_agent_proto::ActionStateLog* temp = _impl_.action_state_log_; |
748 | 0 | _impl_.action_state_log_ = nullptr; |
749 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
750 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
751 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
752 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
753 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
754 | 0 | if (GetArenaForAllocation() != nullptr) { |
755 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
756 | 0 | } |
757 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
758 | 0 | return temp; |
759 | 0 | } |
760 | 0 | inline ::safepower_agent_proto::ActionStateLog* SavedAction::unsafe_arena_release_action_state_log() { |
761 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_persistence_proto.SavedAction.action_state_log) |
762 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
763 | 0 | ::safepower_agent_proto::ActionStateLog* temp = _impl_.action_state_log_; |
764 | 0 | _impl_.action_state_log_ = nullptr; |
765 | 0 | return temp; |
766 | 0 | } |
767 | 0 | inline ::safepower_agent_proto::ActionStateLog* SavedAction::_internal_mutable_action_state_log() { |
768 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
769 | 0 | if (_impl_.action_state_log_ == nullptr) { |
770 | 0 | auto* p = CreateMaybeMessage<::safepower_agent_proto::ActionStateLog>(GetArenaForAllocation()); |
771 | 0 | _impl_.action_state_log_ = p; |
772 | 0 | } |
773 | 0 | return _impl_.action_state_log_; |
774 | 0 | } |
775 | 0 | inline ::safepower_agent_proto::ActionStateLog* SavedAction::mutable_action_state_log() { |
776 | 0 | ::safepower_agent_proto::ActionStateLog* _msg = _internal_mutable_action_state_log(); |
777 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_persistence_proto.SavedAction.action_state_log) |
778 | 0 | return _msg; |
779 | 0 | } |
780 | 0 | inline void SavedAction::set_allocated_action_state_log(::safepower_agent_proto::ActionStateLog* action_state_log) { |
781 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
782 | 0 | if (message_arena == nullptr) { |
783 | 0 | delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_state_log_); |
784 | 0 | } |
785 | 0 | if (action_state_log) { |
786 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
787 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( |
788 | 0 | reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(action_state_log)); |
789 | 0 | if (message_arena != submessage_arena) { |
790 | 0 | action_state_log = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
791 | 0 | message_arena, action_state_log, submessage_arena); |
792 | 0 | } |
793 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
794 | 0 | } else { |
795 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
796 | 0 | } |
797 | 0 | _impl_.action_state_log_ = action_state_log; |
798 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_persistence_proto.SavedAction.action_state_log) |
799 | 0 | } |
800 | | |
801 | | // ------------------------------------------------------------------- |
802 | | |
803 | | // SavedActionRecord |
804 | | |
805 | | // optional .safepower_agent_persistence_proto.SavedAction actions = 2; |
806 | 0 | inline bool SavedActionRecord::_internal_has_actions() const { |
807 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
808 | 0 | PROTOBUF_ASSUME(!value || _impl_.actions_ != nullptr); |
809 | 0 | return value; |
810 | 0 | } |
811 | 0 | inline bool SavedActionRecord::has_actions() const { |
812 | 0 | return _internal_has_actions(); |
813 | 0 | } |
814 | 0 | inline void SavedActionRecord::clear_actions() { |
815 | 0 | if (_impl_.actions_ != nullptr) _impl_.actions_->Clear(); |
816 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
817 | 0 | } |
818 | 0 | inline const ::safepower_agent_persistence_proto::SavedAction& SavedActionRecord::_internal_actions() const { |
819 | 0 | const ::safepower_agent_persistence_proto::SavedAction* p = _impl_.actions_; |
820 | 0 | return p != nullptr ? *p : reinterpret_cast<const ::safepower_agent_persistence_proto::SavedAction&>( |
821 | 0 | ::safepower_agent_persistence_proto::_SavedAction_default_instance_); |
822 | 0 | } |
823 | 0 | inline const ::safepower_agent_persistence_proto::SavedAction& SavedActionRecord::actions() const { |
824 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_persistence_proto.SavedActionRecord.actions) |
825 | 0 | return _internal_actions(); |
826 | 0 | } |
827 | | inline void SavedActionRecord::unsafe_arena_set_allocated_actions( |
828 | 0 | ::safepower_agent_persistence_proto::SavedAction* actions) { |
829 | 0 | if (GetArenaForAllocation() == nullptr) { |
830 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.actions_); |
831 | 0 | } |
832 | 0 | _impl_.actions_ = actions; |
833 | 0 | if (actions) { |
834 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
835 | 0 | } else { |
836 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
837 | 0 | } |
838 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:safepower_agent_persistence_proto.SavedActionRecord.actions) |
839 | 0 | } |
840 | 0 | inline ::safepower_agent_persistence_proto::SavedAction* SavedActionRecord::release_actions() { |
841 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
842 | 0 | ::safepower_agent_persistence_proto::SavedAction* temp = _impl_.actions_; |
843 | 0 | _impl_.actions_ = nullptr; |
844 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
845 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
846 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
847 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
848 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
849 | 0 | if (GetArenaForAllocation() != nullptr) { |
850 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
851 | 0 | } |
852 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
853 | 0 | return temp; |
854 | 0 | } |
855 | 0 | inline ::safepower_agent_persistence_proto::SavedAction* SavedActionRecord::unsafe_arena_release_actions() { |
856 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_persistence_proto.SavedActionRecord.actions) |
857 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
858 | 0 | ::safepower_agent_persistence_proto::SavedAction* temp = _impl_.actions_; |
859 | 0 | _impl_.actions_ = nullptr; |
860 | 0 | return temp; |
861 | 0 | } |
862 | 0 | inline ::safepower_agent_persistence_proto::SavedAction* SavedActionRecord::_internal_mutable_actions() { |
863 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
864 | 0 | if (_impl_.actions_ == nullptr) { |
865 | 0 | auto* p = CreateMaybeMessage<::safepower_agent_persistence_proto::SavedAction>(GetArenaForAllocation()); |
866 | 0 | _impl_.actions_ = p; |
867 | 0 | } |
868 | 0 | return _impl_.actions_; |
869 | 0 | } |
870 | 0 | inline ::safepower_agent_persistence_proto::SavedAction* SavedActionRecord::mutable_actions() { |
871 | 0 | ::safepower_agent_persistence_proto::SavedAction* _msg = _internal_mutable_actions(); |
872 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_persistence_proto.SavedActionRecord.actions) |
873 | 0 | return _msg; |
874 | 0 | } |
875 | 0 | inline void SavedActionRecord::set_allocated_actions(::safepower_agent_persistence_proto::SavedAction* actions) { |
876 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
877 | 0 | if (message_arena == nullptr) { |
878 | 0 | delete _impl_.actions_; |
879 | 0 | } |
880 | 0 | if (actions) { |
881 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
882 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(actions); |
883 | 0 | if (message_arena != submessage_arena) { |
884 | 0 | actions = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
885 | 0 | message_arena, actions, submessage_arena); |
886 | 0 | } |
887 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
888 | 0 | } else { |
889 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
890 | 0 | } |
891 | 0 | _impl_.actions_ = actions; |
892 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_persistence_proto.SavedActionRecord.actions) |
893 | 0 | } |
894 | | |
895 | | // ------------------------------------------------------------------- |
896 | | |
897 | | // SavedActions |
898 | | |
899 | | // repeated .safepower_agent_persistence_proto.SavedActionRecord saved_action_records = 2; |
900 | 0 | inline int SavedActions::_internal_saved_action_records_size() const { |
901 | 0 | return _impl_.saved_action_records_.size(); |
902 | 0 | } |
903 | 0 | inline int SavedActions::saved_action_records_size() const { |
904 | 0 | return _internal_saved_action_records_size(); |
905 | 0 | } |
906 | 0 | inline void SavedActions::clear_saved_action_records() { |
907 | 0 | _impl_.saved_action_records_.Clear(); |
908 | 0 | } |
909 | 0 | inline ::safepower_agent_persistence_proto::SavedActionRecord* SavedActions::mutable_saved_action_records(int index) { |
910 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_persistence_proto.SavedActions.saved_action_records) |
911 | 0 | return _impl_.saved_action_records_.Mutable(index); |
912 | 0 | } |
913 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::safepower_agent_persistence_proto::SavedActionRecord >* |
914 | 0 | SavedActions::mutable_saved_action_records() { |
915 | 0 | // @@protoc_insertion_point(field_mutable_list:safepower_agent_persistence_proto.SavedActions.saved_action_records) |
916 | 0 | return &_impl_.saved_action_records_; |
917 | 0 | } |
918 | 0 | inline const ::safepower_agent_persistence_proto::SavedActionRecord& SavedActions::_internal_saved_action_records(int index) const { |
919 | 0 | return _impl_.saved_action_records_.Get(index); |
920 | 0 | } |
921 | 0 | inline const ::safepower_agent_persistence_proto::SavedActionRecord& SavedActions::saved_action_records(int index) const { |
922 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_persistence_proto.SavedActions.saved_action_records) |
923 | 0 | return _internal_saved_action_records(index); |
924 | 0 | } |
925 | 0 | inline ::safepower_agent_persistence_proto::SavedActionRecord* SavedActions::_internal_add_saved_action_records() { |
926 | 0 | return _impl_.saved_action_records_.Add(); |
927 | 0 | } |
928 | 0 | inline ::safepower_agent_persistence_proto::SavedActionRecord* SavedActions::add_saved_action_records() { |
929 | 0 | ::safepower_agent_persistence_proto::SavedActionRecord* _add = _internal_add_saved_action_records(); |
930 | 0 | // @@protoc_insertion_point(field_add:safepower_agent_persistence_proto.SavedActions.saved_action_records) |
931 | 0 | return _add; |
932 | 0 | } |
933 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::safepower_agent_persistence_proto::SavedActionRecord >& |
934 | 0 | SavedActions::saved_action_records() const { |
935 | 0 | // @@protoc_insertion_point(field_list:safepower_agent_persistence_proto.SavedActions.saved_action_records) |
936 | 0 | return _impl_.saved_action_records_; |
937 | 0 | } |
938 | | |
939 | | // optional string boot_id = 3; |
940 | 0 | inline bool SavedActions::_internal_has_boot_id() const { |
941 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
942 | 0 | return value; |
943 | 0 | } |
944 | 0 | inline bool SavedActions::has_boot_id() const { |
945 | 0 | return _internal_has_boot_id(); |
946 | 0 | } |
947 | 0 | inline void SavedActions::clear_boot_id() { |
948 | 0 | _impl_.boot_id_.ClearToEmpty(); |
949 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
950 | 0 | } |
951 | 0 | inline const std::string& SavedActions::boot_id() const { |
952 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_persistence_proto.SavedActions.boot_id) |
953 | 0 | return _internal_boot_id(); |
954 | 0 | } |
955 | | template <typename ArgT0, typename... ArgT> |
956 | | inline PROTOBUF_ALWAYS_INLINE |
957 | | void SavedActions::set_boot_id(ArgT0&& arg0, ArgT... args) { |
958 | | _impl_._has_bits_[0] |= 0x00000001u; |
959 | | _impl_.boot_id_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
960 | | // @@protoc_insertion_point(field_set:safepower_agent_persistence_proto.SavedActions.boot_id) |
961 | | } |
962 | 0 | inline std::string* SavedActions::mutable_boot_id() { |
963 | 0 | std::string* _s = _internal_mutable_boot_id(); |
964 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_persistence_proto.SavedActions.boot_id) |
965 | 0 | return _s; |
966 | 0 | } |
967 | 0 | inline const std::string& SavedActions::_internal_boot_id() const { |
968 | 0 | return _impl_.boot_id_.Get(); |
969 | 0 | } |
970 | 0 | inline void SavedActions::_internal_set_boot_id(const std::string& value) { |
971 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
972 | 0 | _impl_.boot_id_.Set(value, GetArenaForAllocation()); |
973 | 0 | } |
974 | 0 | inline std::string* SavedActions::_internal_mutable_boot_id() { |
975 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
976 | 0 | return _impl_.boot_id_.Mutable(GetArenaForAllocation()); |
977 | 0 | } |
978 | 0 | inline std::string* SavedActions::release_boot_id() { |
979 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_persistence_proto.SavedActions.boot_id) |
980 | 0 | if (!_internal_has_boot_id()) { |
981 | 0 | return nullptr; |
982 | 0 | } |
983 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
984 | 0 | auto* p = _impl_.boot_id_.Release(); |
985 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
986 | 0 | if (_impl_.boot_id_.IsDefault()) { |
987 | 0 | _impl_.boot_id_.Set("", GetArenaForAllocation()); |
988 | 0 | } |
989 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
990 | 0 | return p; |
991 | 0 | } |
992 | 0 | inline void SavedActions::set_allocated_boot_id(std::string* boot_id) { |
993 | 0 | if (boot_id != nullptr) { |
994 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
995 | 0 | } else { |
996 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
997 | 0 | } |
998 | 0 | _impl_.boot_id_.SetAllocated(boot_id, GetArenaForAllocation()); |
999 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1000 | 0 | if (_impl_.boot_id_.IsDefault()) { |
1001 | 0 | _impl_.boot_id_.Set("", GetArenaForAllocation()); |
1002 | 0 | } |
1003 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1004 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_persistence_proto.SavedActions.boot_id) |
1005 | 0 | } |
1006 | | |
1007 | | // optional int32 boot_counter = 4; |
1008 | 0 | inline bool SavedActions::_internal_has_boot_counter() const { |
1009 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
1010 | 0 | return value; |
1011 | 0 | } |
1012 | 0 | inline bool SavedActions::has_boot_counter() const { |
1013 | 0 | return _internal_has_boot_counter(); |
1014 | 0 | } |
1015 | 0 | inline void SavedActions::clear_boot_counter() { |
1016 | 0 | _impl_.boot_counter_ = 0; |
1017 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
1018 | 0 | } |
1019 | 0 | inline int32_t SavedActions::_internal_boot_counter() const { |
1020 | 0 | return _impl_.boot_counter_; |
1021 | 0 | } |
1022 | 0 | inline int32_t SavedActions::boot_counter() const { |
1023 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_persistence_proto.SavedActions.boot_counter) |
1024 | 0 | return _internal_boot_counter(); |
1025 | 0 | } |
1026 | 0 | inline void SavedActions::_internal_set_boot_counter(int32_t value) { |
1027 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
1028 | 0 | _impl_.boot_counter_ = value; |
1029 | 0 | } |
1030 | 0 | inline void SavedActions::set_boot_counter(int32_t value) { |
1031 | 0 | _internal_set_boot_counter(value); |
1032 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_persistence_proto.SavedActions.boot_counter) |
1033 | 0 | } |
1034 | | |
1035 | | #ifdef __GNUC__ |
1036 | | #pragma GCC diagnostic pop |
1037 | | #endif // __GNUC__ |
1038 | | // ------------------------------------------------------------------- |
1039 | | |
1040 | | // ------------------------------------------------------------------- |
1041 | | |
1042 | | |
1043 | | // @@protoc_insertion_point(namespace_scope) |
1044 | | |
1045 | | } // namespace safepower_agent_persistence_proto |
1046 | | |
1047 | | // @@protoc_insertion_point(global_scope) |
1048 | | |
1049 | | #include <google/protobuf/port_undef.inc> |
1050 | | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_state_5fpersistence_2eproto |