Coverage Report

Created: 2026-09-04 06:54

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/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
    kSequenceNumberFieldNumber = 5,
549
    kBootCounterFieldNumber = 4,
550
  };
551
  // repeated .safepower_agent_persistence_proto.SavedActionRecord saved_action_records = 2;
552
  int saved_action_records_size() const;
553
  private:
554
  int _internal_saved_action_records_size() const;
555
  public:
556
  void clear_saved_action_records();
557
  ::safepower_agent_persistence_proto::SavedActionRecord* mutable_saved_action_records(int index);
558
  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::safepower_agent_persistence_proto::SavedActionRecord >*
559
      mutable_saved_action_records();
560
  private:
561
  const ::safepower_agent_persistence_proto::SavedActionRecord& _internal_saved_action_records(int index) const;
562
  ::safepower_agent_persistence_proto::SavedActionRecord* _internal_add_saved_action_records();
563
  public:
564
  const ::safepower_agent_persistence_proto::SavedActionRecord& saved_action_records(int index) const;
565
  ::safepower_agent_persistence_proto::SavedActionRecord* add_saved_action_records();
566
  const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::safepower_agent_persistence_proto::SavedActionRecord >&
567
      saved_action_records() const;
568
569
  // optional string boot_id = 3;
570
  bool has_boot_id() const;
571
  private:
572
  bool _internal_has_boot_id() const;
573
  public:
574
  void clear_boot_id();
575
  const std::string& boot_id() const;
576
  template <typename ArgT0 = const std::string&, typename... ArgT>
577
  void set_boot_id(ArgT0&& arg0, ArgT... args);
578
  std::string* mutable_boot_id();
579
  PROTOBUF_NODISCARD std::string* release_boot_id();
580
  void set_allocated_boot_id(std::string* boot_id);
581
  private:
582
  const std::string& _internal_boot_id() const;
583
  inline PROTOBUF_ALWAYS_INLINE void _internal_set_boot_id(const std::string& value);
584
  std::string* _internal_mutable_boot_id();
585
  public:
586
587
  // optional int64 sequence_number = 5;
588
  bool has_sequence_number() const;
589
  private:
590
  bool _internal_has_sequence_number() const;
591
  public:
592
  void clear_sequence_number();
593
  int64_t sequence_number() const;
594
  void set_sequence_number(int64_t value);
595
  private:
596
  int64_t _internal_sequence_number() const;
597
  void _internal_set_sequence_number(int64_t value);
598
  public:
599
600
  // optional int32 boot_counter = 4;
601
  bool has_boot_counter() const;
602
  private:
603
  bool _internal_has_boot_counter() const;
604
  public:
605
  void clear_boot_counter();
606
  int32_t boot_counter() const;
607
  void set_boot_counter(int32_t value);
608
  private:
609
  int32_t _internal_boot_counter() const;
610
  void _internal_set_boot_counter(int32_t value);
611
  public:
612
613
  // @@protoc_insertion_point(class_scope:safepower_agent_persistence_proto.SavedActions)
614
 private:
615
  class _Internal;
616
617
  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
618
  typedef void InternalArenaConstructable_;
619
  typedef void DestructorSkippable_;
620
  struct Impl_ {
621
    ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
622
    mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
623
    ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::safepower_agent_persistence_proto::SavedActionRecord > saved_action_records_;
624
    ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr boot_id_;
625
    int64_t sequence_number_;
626
    int32_t boot_counter_;
627
  };
628
  union { Impl_ _impl_; };
629
  friend struct ::TableStruct_state_5fpersistence_2eproto;
630
};
631
// ===================================================================
632
633
634
// ===================================================================
635
636
#ifdef __GNUC__
637
  #pragma GCC diagnostic push
638
  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
639
#endif  // __GNUC__
640
// SavedAction
641
642
// optional .safepower_agent_proto.StartActionRequest original_request = 1;
643
0
inline bool SavedAction::_internal_has_original_request() const {
644
0
  bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
645
0
  PROTOBUF_ASSUME(!value || _impl_.original_request_ != nullptr);
646
0
  return value;
647
0
}
648
0
inline bool SavedAction::has_original_request() const {
649
0
  return _internal_has_original_request();
650
0
}
651
0
inline const ::safepower_agent_proto::StartActionRequest& SavedAction::_internal_original_request() const {
652
0
  const ::safepower_agent_proto::StartActionRequest* p = _impl_.original_request_;
653
0
  return p != nullptr ? *p : reinterpret_cast<const ::safepower_agent_proto::StartActionRequest&>(
654
0
      ::safepower_agent_proto::_StartActionRequest_default_instance_);
655
0
}
656
0
inline const ::safepower_agent_proto::StartActionRequest& SavedAction::original_request() const {
657
0
  // @@protoc_insertion_point(field_get:safepower_agent_persistence_proto.SavedAction.original_request)
658
0
  return _internal_original_request();
659
0
}
660
inline void SavedAction::unsafe_arena_set_allocated_original_request(
661
0
    ::safepower_agent_proto::StartActionRequest* original_request) {
662
0
  if (GetArenaForAllocation() == nullptr) {
663
0
    delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.original_request_);
664
0
  }
665
0
  _impl_.original_request_ = original_request;
666
0
  if (original_request) {
667
0
    _impl_._has_bits_[0] |= 0x00000001u;
668
0
  } else {
669
0
    _impl_._has_bits_[0] &= ~0x00000001u;
670
0
  }
671
0
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:safepower_agent_persistence_proto.SavedAction.original_request)
672
0
}
673
0
inline ::safepower_agent_proto::StartActionRequest* SavedAction::release_original_request() {
674
0
  _impl_._has_bits_[0] &= ~0x00000001u;
675
0
  ::safepower_agent_proto::StartActionRequest* temp = _impl_.original_request_;
676
0
  _impl_.original_request_ = nullptr;
677
0
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
678
0
  auto* old =  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
679
0
  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
680
0
  if (GetArenaForAllocation() == nullptr) { delete old; }
681
0
#else  // PROTOBUF_FORCE_COPY_IN_RELEASE
682
0
  if (GetArenaForAllocation() != nullptr) {
683
0
    temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
684
0
  }
685
0
#endif  // !PROTOBUF_FORCE_COPY_IN_RELEASE
686
0
  return temp;
687
0
}
688
0
inline ::safepower_agent_proto::StartActionRequest* SavedAction::unsafe_arena_release_original_request() {
689
0
  // @@protoc_insertion_point(field_release:safepower_agent_persistence_proto.SavedAction.original_request)
690
0
  _impl_._has_bits_[0] &= ~0x00000001u;
691
0
  ::safepower_agent_proto::StartActionRequest* temp = _impl_.original_request_;
692
0
  _impl_.original_request_ = nullptr;
693
0
  return temp;
694
0
}
695
0
inline ::safepower_agent_proto::StartActionRequest* SavedAction::_internal_mutable_original_request() {
696
0
  _impl_._has_bits_[0] |= 0x00000001u;
697
0
  if (_impl_.original_request_ == nullptr) {
698
0
    auto* p = CreateMaybeMessage<::safepower_agent_proto::StartActionRequest>(GetArenaForAllocation());
699
0
    _impl_.original_request_ = p;
700
0
  }
701
0
  return _impl_.original_request_;
702
0
}
703
0
inline ::safepower_agent_proto::StartActionRequest* SavedAction::mutable_original_request() {
704
0
  ::safepower_agent_proto::StartActionRequest* _msg = _internal_mutable_original_request();
705
0
  // @@protoc_insertion_point(field_mutable:safepower_agent_persistence_proto.SavedAction.original_request)
706
0
  return _msg;
707
0
}
708
0
inline void SavedAction::set_allocated_original_request(::safepower_agent_proto::StartActionRequest* original_request) {
709
0
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
710
0
  if (message_arena == nullptr) {
711
0
    delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.original_request_);
712
0
  }
713
0
  if (original_request) {
714
0
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
715
0
        ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
716
0
                reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(original_request));
717
0
    if (message_arena != submessage_arena) {
718
0
      original_request = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
719
0
          message_arena, original_request, submessage_arena);
720
0
    }
721
0
    _impl_._has_bits_[0] |= 0x00000001u;
722
0
  } else {
723
0
    _impl_._has_bits_[0] &= ~0x00000001u;
724
0
  }
725
0
  _impl_.original_request_ = original_request;
726
0
  // @@protoc_insertion_point(field_set_allocated:safepower_agent_persistence_proto.SavedAction.original_request)
727
0
}
728
729
// optional .safepower_agent_proto.ActionStateLog action_state_log = 2;
730
0
inline bool SavedAction::_internal_has_action_state_log() const {
731
0
  bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
732
0
  PROTOBUF_ASSUME(!value || _impl_.action_state_log_ != nullptr);
733
0
  return value;
734
0
}
735
0
inline bool SavedAction::has_action_state_log() const {
736
0
  return _internal_has_action_state_log();
737
0
}
738
0
inline const ::safepower_agent_proto::ActionStateLog& SavedAction::_internal_action_state_log() const {
739
0
  const ::safepower_agent_proto::ActionStateLog* p = _impl_.action_state_log_;
740
0
  return p != nullptr ? *p : reinterpret_cast<const ::safepower_agent_proto::ActionStateLog&>(
741
0
      ::safepower_agent_proto::_ActionStateLog_default_instance_);
742
0
}
743
0
inline const ::safepower_agent_proto::ActionStateLog& SavedAction::action_state_log() const {
744
0
  // @@protoc_insertion_point(field_get:safepower_agent_persistence_proto.SavedAction.action_state_log)
745
0
  return _internal_action_state_log();
746
0
}
747
inline void SavedAction::unsafe_arena_set_allocated_action_state_log(
748
0
    ::safepower_agent_proto::ActionStateLog* action_state_log) {
749
0
  if (GetArenaForAllocation() == nullptr) {
750
0
    delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_state_log_);
751
0
  }
752
0
  _impl_.action_state_log_ = action_state_log;
753
0
  if (action_state_log) {
754
0
    _impl_._has_bits_[0] |= 0x00000002u;
755
0
  } else {
756
0
    _impl_._has_bits_[0] &= ~0x00000002u;
757
0
  }
758
0
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:safepower_agent_persistence_proto.SavedAction.action_state_log)
759
0
}
760
0
inline ::safepower_agent_proto::ActionStateLog* SavedAction::release_action_state_log() {
761
0
  _impl_._has_bits_[0] &= ~0x00000002u;
762
0
  ::safepower_agent_proto::ActionStateLog* temp = _impl_.action_state_log_;
763
0
  _impl_.action_state_log_ = nullptr;
764
0
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
765
0
  auto* old =  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
766
0
  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
767
0
  if (GetArenaForAllocation() == nullptr) { delete old; }
768
0
#else  // PROTOBUF_FORCE_COPY_IN_RELEASE
769
0
  if (GetArenaForAllocation() != nullptr) {
770
0
    temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
771
0
  }
772
0
#endif  // !PROTOBUF_FORCE_COPY_IN_RELEASE
773
0
  return temp;
774
0
}
775
0
inline ::safepower_agent_proto::ActionStateLog* SavedAction::unsafe_arena_release_action_state_log() {
776
0
  // @@protoc_insertion_point(field_release:safepower_agent_persistence_proto.SavedAction.action_state_log)
777
0
  _impl_._has_bits_[0] &= ~0x00000002u;
778
0
  ::safepower_agent_proto::ActionStateLog* temp = _impl_.action_state_log_;
779
0
  _impl_.action_state_log_ = nullptr;
780
0
  return temp;
781
0
}
782
0
inline ::safepower_agent_proto::ActionStateLog* SavedAction::_internal_mutable_action_state_log() {
783
0
  _impl_._has_bits_[0] |= 0x00000002u;
784
0
  if (_impl_.action_state_log_ == nullptr) {
785
0
    auto* p = CreateMaybeMessage<::safepower_agent_proto::ActionStateLog>(GetArenaForAllocation());
786
0
    _impl_.action_state_log_ = p;
787
0
  }
788
0
  return _impl_.action_state_log_;
789
0
}
790
0
inline ::safepower_agent_proto::ActionStateLog* SavedAction::mutable_action_state_log() {
791
0
  ::safepower_agent_proto::ActionStateLog* _msg = _internal_mutable_action_state_log();
792
0
  // @@protoc_insertion_point(field_mutable:safepower_agent_persistence_proto.SavedAction.action_state_log)
793
0
  return _msg;
794
0
}
795
0
inline void SavedAction::set_allocated_action_state_log(::safepower_agent_proto::ActionStateLog* action_state_log) {
796
0
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
797
0
  if (message_arena == nullptr) {
798
0
    delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_state_log_);
799
0
  }
800
0
  if (action_state_log) {
801
0
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
802
0
        ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
803
0
                reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(action_state_log));
804
0
    if (message_arena != submessage_arena) {
805
0
      action_state_log = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
806
0
          message_arena, action_state_log, submessage_arena);
807
0
    }
808
0
    _impl_._has_bits_[0] |= 0x00000002u;
809
0
  } else {
810
0
    _impl_._has_bits_[0] &= ~0x00000002u;
811
0
  }
812
0
  _impl_.action_state_log_ = action_state_log;
813
0
  // @@protoc_insertion_point(field_set_allocated:safepower_agent_persistence_proto.SavedAction.action_state_log)
814
0
}
815
816
// -------------------------------------------------------------------
817
818
// SavedActionRecord
819
820
// optional .safepower_agent_persistence_proto.SavedAction actions = 2;
821
0
inline bool SavedActionRecord::_internal_has_actions() const {
822
0
  bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
823
0
  PROTOBUF_ASSUME(!value || _impl_.actions_ != nullptr);
824
0
  return value;
825
0
}
826
0
inline bool SavedActionRecord::has_actions() const {
827
0
  return _internal_has_actions();
828
0
}
829
0
inline void SavedActionRecord::clear_actions() {
830
0
  if (_impl_.actions_ != nullptr) _impl_.actions_->Clear();
831
0
  _impl_._has_bits_[0] &= ~0x00000001u;
832
0
}
833
0
inline const ::safepower_agent_persistence_proto::SavedAction& SavedActionRecord::_internal_actions() const {
834
0
  const ::safepower_agent_persistence_proto::SavedAction* p = _impl_.actions_;
835
0
  return p != nullptr ? *p : reinterpret_cast<const ::safepower_agent_persistence_proto::SavedAction&>(
836
0
      ::safepower_agent_persistence_proto::_SavedAction_default_instance_);
837
0
}
838
0
inline const ::safepower_agent_persistence_proto::SavedAction& SavedActionRecord::actions() const {
839
0
  // @@protoc_insertion_point(field_get:safepower_agent_persistence_proto.SavedActionRecord.actions)
840
0
  return _internal_actions();
841
0
}
842
inline void SavedActionRecord::unsafe_arena_set_allocated_actions(
843
0
    ::safepower_agent_persistence_proto::SavedAction* actions) {
844
0
  if (GetArenaForAllocation() == nullptr) {
845
0
    delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.actions_);
846
0
  }
847
0
  _impl_.actions_ = actions;
848
0
  if (actions) {
849
0
    _impl_._has_bits_[0] |= 0x00000001u;
850
0
  } else {
851
0
    _impl_._has_bits_[0] &= ~0x00000001u;
852
0
  }
853
0
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:safepower_agent_persistence_proto.SavedActionRecord.actions)
854
0
}
855
0
inline ::safepower_agent_persistence_proto::SavedAction* SavedActionRecord::release_actions() {
856
0
  _impl_._has_bits_[0] &= ~0x00000001u;
857
0
  ::safepower_agent_persistence_proto::SavedAction* temp = _impl_.actions_;
858
0
  _impl_.actions_ = nullptr;
859
0
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
860
0
  auto* old =  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
861
0
  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
862
0
  if (GetArenaForAllocation() == nullptr) { delete old; }
863
0
#else  // PROTOBUF_FORCE_COPY_IN_RELEASE
864
0
  if (GetArenaForAllocation() != nullptr) {
865
0
    temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
866
0
  }
867
0
#endif  // !PROTOBUF_FORCE_COPY_IN_RELEASE
868
0
  return temp;
869
0
}
870
0
inline ::safepower_agent_persistence_proto::SavedAction* SavedActionRecord::unsafe_arena_release_actions() {
871
0
  // @@protoc_insertion_point(field_release:safepower_agent_persistence_proto.SavedActionRecord.actions)
872
0
  _impl_._has_bits_[0] &= ~0x00000001u;
873
0
  ::safepower_agent_persistence_proto::SavedAction* temp = _impl_.actions_;
874
0
  _impl_.actions_ = nullptr;
875
0
  return temp;
876
0
}
877
0
inline ::safepower_agent_persistence_proto::SavedAction* SavedActionRecord::_internal_mutable_actions() {
878
0
  _impl_._has_bits_[0] |= 0x00000001u;
879
0
  if (_impl_.actions_ == nullptr) {
880
0
    auto* p = CreateMaybeMessage<::safepower_agent_persistence_proto::SavedAction>(GetArenaForAllocation());
881
0
    _impl_.actions_ = p;
882
0
  }
883
0
  return _impl_.actions_;
884
0
}
885
0
inline ::safepower_agent_persistence_proto::SavedAction* SavedActionRecord::mutable_actions() {
886
0
  ::safepower_agent_persistence_proto::SavedAction* _msg = _internal_mutable_actions();
887
0
  // @@protoc_insertion_point(field_mutable:safepower_agent_persistence_proto.SavedActionRecord.actions)
888
0
  return _msg;
889
0
}
890
0
inline void SavedActionRecord::set_allocated_actions(::safepower_agent_persistence_proto::SavedAction* actions) {
891
0
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
892
0
  if (message_arena == nullptr) {
893
0
    delete _impl_.actions_;
894
0
  }
895
0
  if (actions) {
896
0
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
897
0
        ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(actions);
898
0
    if (message_arena != submessage_arena) {
899
0
      actions = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
900
0
          message_arena, actions, submessage_arena);
901
0
    }
902
0
    _impl_._has_bits_[0] |= 0x00000001u;
903
0
  } else {
904
0
    _impl_._has_bits_[0] &= ~0x00000001u;
905
0
  }
906
0
  _impl_.actions_ = actions;
907
0
  // @@protoc_insertion_point(field_set_allocated:safepower_agent_persistence_proto.SavedActionRecord.actions)
908
0
}
909
910
// -------------------------------------------------------------------
911
912
// SavedActions
913
914
// repeated .safepower_agent_persistence_proto.SavedActionRecord saved_action_records = 2;
915
0
inline int SavedActions::_internal_saved_action_records_size() const {
916
0
  return _impl_.saved_action_records_.size();
917
0
}
918
0
inline int SavedActions::saved_action_records_size() const {
919
0
  return _internal_saved_action_records_size();
920
0
}
921
0
inline void SavedActions::clear_saved_action_records() {
922
0
  _impl_.saved_action_records_.Clear();
923
0
}
924
0
inline ::safepower_agent_persistence_proto::SavedActionRecord* SavedActions::mutable_saved_action_records(int index) {
925
0
  // @@protoc_insertion_point(field_mutable:safepower_agent_persistence_proto.SavedActions.saved_action_records)
926
0
  return _impl_.saved_action_records_.Mutable(index);
927
0
}
928
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::safepower_agent_persistence_proto::SavedActionRecord >*
929
0
SavedActions::mutable_saved_action_records() {
930
0
  // @@protoc_insertion_point(field_mutable_list:safepower_agent_persistence_proto.SavedActions.saved_action_records)
931
0
  return &_impl_.saved_action_records_;
932
0
}
933
0
inline const ::safepower_agent_persistence_proto::SavedActionRecord& SavedActions::_internal_saved_action_records(int index) const {
934
0
  return _impl_.saved_action_records_.Get(index);
935
0
}
936
0
inline const ::safepower_agent_persistence_proto::SavedActionRecord& SavedActions::saved_action_records(int index) const {
937
0
  // @@protoc_insertion_point(field_get:safepower_agent_persistence_proto.SavedActions.saved_action_records)
938
0
  return _internal_saved_action_records(index);
939
0
}
940
0
inline ::safepower_agent_persistence_proto::SavedActionRecord* SavedActions::_internal_add_saved_action_records() {
941
0
  return _impl_.saved_action_records_.Add();
942
0
}
943
0
inline ::safepower_agent_persistence_proto::SavedActionRecord* SavedActions::add_saved_action_records() {
944
0
  ::safepower_agent_persistence_proto::SavedActionRecord* _add = _internal_add_saved_action_records();
945
0
  // @@protoc_insertion_point(field_add:safepower_agent_persistence_proto.SavedActions.saved_action_records)
946
0
  return _add;
947
0
}
948
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::safepower_agent_persistence_proto::SavedActionRecord >&
949
0
SavedActions::saved_action_records() const {
950
0
  // @@protoc_insertion_point(field_list:safepower_agent_persistence_proto.SavedActions.saved_action_records)
951
0
  return _impl_.saved_action_records_;
952
0
}
953
954
// optional string boot_id = 3;
955
0
inline bool SavedActions::_internal_has_boot_id() const {
956
0
  bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
957
0
  return value;
958
0
}
959
0
inline bool SavedActions::has_boot_id() const {
960
0
  return _internal_has_boot_id();
961
0
}
962
0
inline void SavedActions::clear_boot_id() {
963
0
  _impl_.boot_id_.ClearToEmpty();
964
0
  _impl_._has_bits_[0] &= ~0x00000001u;
965
0
}
966
0
inline const std::string& SavedActions::boot_id() const {
967
0
  // @@protoc_insertion_point(field_get:safepower_agent_persistence_proto.SavedActions.boot_id)
968
0
  return _internal_boot_id();
969
0
}
970
template <typename ArgT0, typename... ArgT>
971
inline PROTOBUF_ALWAYS_INLINE
972
void SavedActions::set_boot_id(ArgT0&& arg0, ArgT... args) {
973
 _impl_._has_bits_[0] |= 0x00000001u;
974
 _impl_.boot_id_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
975
  // @@protoc_insertion_point(field_set:safepower_agent_persistence_proto.SavedActions.boot_id)
976
}
977
0
inline std::string* SavedActions::mutable_boot_id() {
978
0
  std::string* _s = _internal_mutable_boot_id();
979
0
  // @@protoc_insertion_point(field_mutable:safepower_agent_persistence_proto.SavedActions.boot_id)
980
0
  return _s;
981
0
}
982
0
inline const std::string& SavedActions::_internal_boot_id() const {
983
0
  return _impl_.boot_id_.Get();
984
0
}
985
0
inline void SavedActions::_internal_set_boot_id(const std::string& value) {
986
0
  _impl_._has_bits_[0] |= 0x00000001u;
987
0
  _impl_.boot_id_.Set(value, GetArenaForAllocation());
988
0
}
989
0
inline std::string* SavedActions::_internal_mutable_boot_id() {
990
0
  _impl_._has_bits_[0] |= 0x00000001u;
991
0
  return _impl_.boot_id_.Mutable(GetArenaForAllocation());
992
0
}
993
0
inline std::string* SavedActions::release_boot_id() {
994
0
  // @@protoc_insertion_point(field_release:safepower_agent_persistence_proto.SavedActions.boot_id)
995
0
  if (!_internal_has_boot_id()) {
996
0
    return nullptr;
997
0
  }
998
0
  _impl_._has_bits_[0] &= ~0x00000001u;
999
0
  auto* p = _impl_.boot_id_.Release();
1000
0
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1001
0
  if (_impl_.boot_id_.IsDefault()) {
1002
0
    _impl_.boot_id_.Set("", GetArenaForAllocation());
1003
0
  }
1004
0
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1005
0
  return p;
1006
0
}
1007
0
inline void SavedActions::set_allocated_boot_id(std::string* boot_id) {
1008
0
  if (boot_id != nullptr) {
1009
0
    _impl_._has_bits_[0] |= 0x00000001u;
1010
0
  } else {
1011
0
    _impl_._has_bits_[0] &= ~0x00000001u;
1012
0
  }
1013
0
  _impl_.boot_id_.SetAllocated(boot_id, GetArenaForAllocation());
1014
0
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1015
0
  if (_impl_.boot_id_.IsDefault()) {
1016
0
    _impl_.boot_id_.Set("", GetArenaForAllocation());
1017
0
  }
1018
0
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1019
0
  // @@protoc_insertion_point(field_set_allocated:safepower_agent_persistence_proto.SavedActions.boot_id)
1020
0
}
1021
1022
// optional int32 boot_counter = 4;
1023
0
inline bool SavedActions::_internal_has_boot_counter() const {
1024
0
  bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
1025
0
  return value;
1026
0
}
1027
0
inline bool SavedActions::has_boot_counter() const {
1028
0
  return _internal_has_boot_counter();
1029
0
}
1030
0
inline void SavedActions::clear_boot_counter() {
1031
0
  _impl_.boot_counter_ = 0;
1032
0
  _impl_._has_bits_[0] &= ~0x00000004u;
1033
0
}
1034
0
inline int32_t SavedActions::_internal_boot_counter() const {
1035
0
  return _impl_.boot_counter_;
1036
0
}
1037
0
inline int32_t SavedActions::boot_counter() const {
1038
0
  // @@protoc_insertion_point(field_get:safepower_agent_persistence_proto.SavedActions.boot_counter)
1039
0
  return _internal_boot_counter();
1040
0
}
1041
0
inline void SavedActions::_internal_set_boot_counter(int32_t value) {
1042
0
  _impl_._has_bits_[0] |= 0x00000004u;
1043
0
  _impl_.boot_counter_ = value;
1044
0
}
1045
0
inline void SavedActions::set_boot_counter(int32_t value) {
1046
0
  _internal_set_boot_counter(value);
1047
0
  // @@protoc_insertion_point(field_set:safepower_agent_persistence_proto.SavedActions.boot_counter)
1048
0
}
1049
1050
// optional int64 sequence_number = 5;
1051
0
inline bool SavedActions::_internal_has_sequence_number() const {
1052
0
  bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
1053
0
  return value;
1054
0
}
1055
0
inline bool SavedActions::has_sequence_number() const {
1056
0
  return _internal_has_sequence_number();
1057
0
}
1058
0
inline void SavedActions::clear_sequence_number() {
1059
0
  _impl_.sequence_number_ = int64_t{0};
1060
0
  _impl_._has_bits_[0] &= ~0x00000002u;
1061
0
}
1062
0
inline int64_t SavedActions::_internal_sequence_number() const {
1063
0
  return _impl_.sequence_number_;
1064
0
}
1065
0
inline int64_t SavedActions::sequence_number() const {
1066
0
  // @@protoc_insertion_point(field_get:safepower_agent_persistence_proto.SavedActions.sequence_number)
1067
0
  return _internal_sequence_number();
1068
0
}
1069
0
inline void SavedActions::_internal_set_sequence_number(int64_t value) {
1070
0
  _impl_._has_bits_[0] |= 0x00000002u;
1071
0
  _impl_.sequence_number_ = value;
1072
0
}
1073
0
inline void SavedActions::set_sequence_number(int64_t value) {
1074
0
  _internal_set_sequence_number(value);
1075
0
  // @@protoc_insertion_point(field_set:safepower_agent_persistence_proto.SavedActions.sequence_number)
1076
0
}
1077
1078
#ifdef __GNUC__
1079
  #pragma GCC diagnostic pop
1080
#endif  // __GNUC__
1081
// -------------------------------------------------------------------
1082
1083
// -------------------------------------------------------------------
1084
1085
1086
// @@protoc_insertion_point(namespace_scope)
1087
1088
}  // namespace safepower_agent_persistence_proto
1089
1090
// @@protoc_insertion_point(global_scope)
1091
1092
#include <google/protobuf/port_undef.inc>
1093
#endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_state_5fpersistence_2eproto