Coverage Report

Created: 2026-07-25 06:24

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/gpowerd/state_persistence.pb.cc
Line
Count
Source
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: state_persistence.proto
3
4
#include "state_persistence.pb.h"
5
6
#include <algorithm>
7
8
#include <google/protobuf/io/coded_stream.h>
9
#include <google/protobuf/extension_set.h>
10
#include <google/protobuf/wire_format_lite.h>
11
#include <google/protobuf/descriptor.h>
12
#include <google/protobuf/generated_message_reflection.h>
13
#include <google/protobuf/reflection_ops.h>
14
#include <google/protobuf/wire_format.h>
15
// @@protoc_insertion_point(includes)
16
#include <google/protobuf/port_def.inc>
17
18
PROTOBUF_PRAGMA_INIT_SEG
19
20
namespace _pb = ::PROTOBUF_NAMESPACE_ID;
21
namespace _pbi = _pb::internal;
22
23
namespace safepower_agent_persistence_proto {
24
PROTOBUF_CONSTEXPR SavedAction::SavedAction(
25
    ::_pbi::ConstantInitialized): _impl_{
26
    /*decltype(_impl_._has_bits_)*/{}
27
  , /*decltype(_impl_._cached_size_)*/{}
28
  , /*decltype(_impl_.original_request_)*/nullptr
29
  , /*decltype(_impl_.action_state_log_)*/nullptr} {}
30
struct SavedActionDefaultTypeInternal {
31
  PROTOBUF_CONSTEXPR SavedActionDefaultTypeInternal()
32
0
      : _instance(::_pbi::ConstantInitialized{}) {}
33
0
  ~SavedActionDefaultTypeInternal() {}
34
  union {
35
    SavedAction _instance;
36
  };
37
};
38
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SavedActionDefaultTypeInternal _SavedAction_default_instance_;
39
PROTOBUF_CONSTEXPR SavedActionRecord::SavedActionRecord(
40
    ::_pbi::ConstantInitialized): _impl_{
41
    /*decltype(_impl_._has_bits_)*/{}
42
  , /*decltype(_impl_._cached_size_)*/{}
43
  , /*decltype(_impl_.actions_)*/nullptr} {}
44
struct SavedActionRecordDefaultTypeInternal {
45
  PROTOBUF_CONSTEXPR SavedActionRecordDefaultTypeInternal()
46
0
      : _instance(::_pbi::ConstantInitialized{}) {}
47
0
  ~SavedActionRecordDefaultTypeInternal() {}
48
  union {
49
    SavedActionRecord _instance;
50
  };
51
};
52
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SavedActionRecordDefaultTypeInternal _SavedActionRecord_default_instance_;
53
PROTOBUF_CONSTEXPR SavedActions::SavedActions(
54
    ::_pbi::ConstantInitialized): _impl_{
55
    /*decltype(_impl_._has_bits_)*/{}
56
  , /*decltype(_impl_._cached_size_)*/{}
57
  , /*decltype(_impl_.saved_action_records_)*/{}
58
  , /*decltype(_impl_.boot_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
59
  , /*decltype(_impl_.boot_counter_)*/0} {}
60
struct SavedActionsDefaultTypeInternal {
61
  PROTOBUF_CONSTEXPR SavedActionsDefaultTypeInternal()
62
0
      : _instance(::_pbi::ConstantInitialized{}) {}
63
0
  ~SavedActionsDefaultTypeInternal() {}
64
  union {
65
    SavedActions _instance;
66
  };
67
};
68
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SavedActionsDefaultTypeInternal _SavedActions_default_instance_;
69
}  // namespace safepower_agent_persistence_proto
70
static ::_pb::Metadata file_level_metadata_state_5fpersistence_2eproto[3];
71
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_state_5fpersistence_2eproto = nullptr;
72
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_state_5fpersistence_2eproto = nullptr;
73
74
const uint32_t TableStruct_state_5fpersistence_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
75
  PROTOBUF_FIELD_OFFSET(::safepower_agent_persistence_proto::SavedAction, _impl_._has_bits_),
76
  PROTOBUF_FIELD_OFFSET(::safepower_agent_persistence_proto::SavedAction, _internal_metadata_),
77
  ~0u,  // no _extensions_
78
  ~0u,  // no _oneof_case_
79
  ~0u,  // no _weak_field_map_
80
  ~0u,  // no _inlined_string_donated_
81
  PROTOBUF_FIELD_OFFSET(::safepower_agent_persistence_proto::SavedAction, _impl_.original_request_),
82
  PROTOBUF_FIELD_OFFSET(::safepower_agent_persistence_proto::SavedAction, _impl_.action_state_log_),
83
  0,
84
  1,
85
  PROTOBUF_FIELD_OFFSET(::safepower_agent_persistence_proto::SavedActionRecord, _impl_._has_bits_),
86
  PROTOBUF_FIELD_OFFSET(::safepower_agent_persistence_proto::SavedActionRecord, _internal_metadata_),
87
  ~0u,  // no _extensions_
88
  ~0u,  // no _oneof_case_
89
  ~0u,  // no _weak_field_map_
90
  ~0u,  // no _inlined_string_donated_
91
  PROTOBUF_FIELD_OFFSET(::safepower_agent_persistence_proto::SavedActionRecord, _impl_.actions_),
92
  0,
93
  PROTOBUF_FIELD_OFFSET(::safepower_agent_persistence_proto::SavedActions, _impl_._has_bits_),
94
  PROTOBUF_FIELD_OFFSET(::safepower_agent_persistence_proto::SavedActions, _internal_metadata_),
95
  ~0u,  // no _extensions_
96
  ~0u,  // no _oneof_case_
97
  ~0u,  // no _weak_field_map_
98
  ~0u,  // no _inlined_string_donated_
99
  PROTOBUF_FIELD_OFFSET(::safepower_agent_persistence_proto::SavedActions, _impl_.saved_action_records_),
100
  PROTOBUF_FIELD_OFFSET(::safepower_agent_persistence_proto::SavedActions, _impl_.boot_id_),
101
  PROTOBUF_FIELD_OFFSET(::safepower_agent_persistence_proto::SavedActions, _impl_.boot_counter_),
102
  ~0u,
103
  0,
104
  1,
105
};
106
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
107
  { 0, 8, -1, sizeof(::safepower_agent_persistence_proto::SavedAction)},
108
  { 10, 17, -1, sizeof(::safepower_agent_persistence_proto::SavedActionRecord)},
109
  { 18, 27, -1, sizeof(::safepower_agent_persistence_proto::SavedActions)},
110
};
111
112
static const ::_pb::Message* const file_default_instances[] = {
113
  &::safepower_agent_persistence_proto::_SavedAction_default_instance_._instance,
114
  &::safepower_agent_persistence_proto::_SavedActionRecord_default_instance_._instance,
115
  &::safepower_agent_persistence_proto::_SavedActions_default_instance_._instance,
116
};
117
118
const char descriptor_table_protodef_state_5fpersistence_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
119
  "\n\027state_persistence.proto\022!safepower_age"
120
  "nt_persistence_proto\032\014action.proto\"\223\001\n\013S"
121
  "avedAction\022C\n\020original_request\030\001 \001(\0132).s"
122
  "afepower_agent_proto.StartActionRequest\022"
123
  "\?\n\020action_state_log\030\002 \001(\0132%.safepower_ag"
124
  "ent_proto.ActionStateLog\"Z\n\021SavedActionR"
125
  "ecord\022\?\n\007actions\030\002 \001(\0132..safepower_agent"
126
  "_persistence_proto.SavedActionJ\004\010\001\020\002\"\217\001\n"
127
  "\014SavedActions\022R\n\024saved_action_records\030\002 "
128
  "\003(\01324.safepower_agent_persistence_proto."
129
  "SavedActionRecord\022\017\n\007boot_id\030\003 \001(\t\022\024\n\014bo"
130
  "ot_counter\030\004 \001(\005J\004\010\001\020\002"
131
  ;
132
static const ::_pbi::DescriptorTable* const descriptor_table_state_5fpersistence_2eproto_deps[1] = {
133
  &::descriptor_table_action_2eproto,
134
};
135
static ::_pbi::once_flag descriptor_table_state_5fpersistence_2eproto_once;
136
const ::_pbi::DescriptorTable descriptor_table_state_5fpersistence_2eproto = {
137
    false, false, 462, descriptor_table_protodef_state_5fpersistence_2eproto,
138
    "state_persistence.proto",
139
    &descriptor_table_state_5fpersistence_2eproto_once, descriptor_table_state_5fpersistence_2eproto_deps, 1, 3,
140
    schemas, file_default_instances, TableStruct_state_5fpersistence_2eproto::offsets,
141
    file_level_metadata_state_5fpersistence_2eproto, file_level_enum_descriptors_state_5fpersistence_2eproto,
142
    file_level_service_descriptors_state_5fpersistence_2eproto,
143
};
144
0
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_state_5fpersistence_2eproto_getter() {
145
0
  return &descriptor_table_state_5fpersistence_2eproto;
146
0
}
147
148
// Force running AddDescriptors() at dynamic initialization time.
149
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_state_5fpersistence_2eproto(&descriptor_table_state_5fpersistence_2eproto);
150
namespace safepower_agent_persistence_proto {
151
152
// ===================================================================
153
154
class SavedAction::_Internal {
155
 public:
156
  using HasBits = decltype(std::declval<SavedAction>()._impl_._has_bits_);
157
  static const ::safepower_agent_proto::StartActionRequest& original_request(const SavedAction* msg);
158
0
  static void set_has_original_request(HasBits* has_bits) {
159
0
    (*has_bits)[0] |= 1u;
160
0
  }
161
  static const ::safepower_agent_proto::ActionStateLog& action_state_log(const SavedAction* msg);
162
0
  static void set_has_action_state_log(HasBits* has_bits) {
163
0
    (*has_bits)[0] |= 2u;
164
0
  }
165
};
166
167
const ::safepower_agent_proto::StartActionRequest&
168
0
SavedAction::_Internal::original_request(const SavedAction* msg) {
169
0
  return *msg->_impl_.original_request_;
170
0
}
171
const ::safepower_agent_proto::ActionStateLog&
172
0
SavedAction::_Internal::action_state_log(const SavedAction* msg) {
173
0
  return *msg->_impl_.action_state_log_;
174
0
}
175
0
void SavedAction::clear_original_request() {
176
0
  if (_impl_.original_request_ != nullptr) _impl_.original_request_->Clear();
177
0
  _impl_._has_bits_[0] &= ~0x00000001u;
178
0
}
179
0
void SavedAction::clear_action_state_log() {
180
0
  if (_impl_.action_state_log_ != nullptr) _impl_.action_state_log_->Clear();
181
0
  _impl_._has_bits_[0] &= ~0x00000002u;
182
0
}
183
SavedAction::SavedAction(::PROTOBUF_NAMESPACE_ID::Arena* arena,
184
                         bool is_message_owned)
185
0
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
186
0
  SharedCtor(arena, is_message_owned);
187
  // @@protoc_insertion_point(arena_constructor:safepower_agent_persistence_proto.SavedAction)
188
0
}
189
SavedAction::SavedAction(const SavedAction& from)
190
0
  : ::PROTOBUF_NAMESPACE_ID::Message() {
191
0
  SavedAction* const _this = this; (void)_this;
192
0
  new (&_impl_) Impl_{
193
0
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
194
0
    , /*decltype(_impl_._cached_size_)*/{}
195
0
    , decltype(_impl_.original_request_){nullptr}
196
0
    , decltype(_impl_.action_state_log_){nullptr}};
197
198
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
199
0
  if (from._internal_has_original_request()) {
200
0
    _this->_impl_.original_request_ = new ::safepower_agent_proto::StartActionRequest(*from._impl_.original_request_);
201
0
  }
202
0
  if (from._internal_has_action_state_log()) {
203
0
    _this->_impl_.action_state_log_ = new ::safepower_agent_proto::ActionStateLog(*from._impl_.action_state_log_);
204
0
  }
205
  // @@protoc_insertion_point(copy_constructor:safepower_agent_persistence_proto.SavedAction)
206
0
}
207
208
inline void SavedAction::SharedCtor(
209
0
    ::_pb::Arena* arena, bool is_message_owned) {
210
0
  (void)arena;
211
0
  (void)is_message_owned;
212
0
  new (&_impl_) Impl_{
213
0
      decltype(_impl_._has_bits_){}
214
0
    , /*decltype(_impl_._cached_size_)*/{}
215
0
    , decltype(_impl_.original_request_){nullptr}
216
0
    , decltype(_impl_.action_state_log_){nullptr}
217
0
  };
218
0
}
219
220
0
SavedAction::~SavedAction() {
221
  // @@protoc_insertion_point(destructor:safepower_agent_persistence_proto.SavedAction)
222
0
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
223
0
  (void)arena;
224
0
    return;
225
0
  }
226
0
  SharedDtor();
227
0
}
228
229
0
inline void SavedAction::SharedDtor() {
230
0
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
231
0
  if (this != internal_default_instance()) delete _impl_.original_request_;
232
0
  if (this != internal_default_instance()) delete _impl_.action_state_log_;
233
0
}
234
235
0
void SavedAction::SetCachedSize(int size) const {
236
0
  _impl_._cached_size_.Set(size);
237
0
}
238
239
0
void SavedAction::Clear() {
240
// @@protoc_insertion_point(message_clear_start:safepower_agent_persistence_proto.SavedAction)
241
0
  uint32_t cached_has_bits = 0;
242
  // Prevent compiler warnings about cached_has_bits being unused
243
0
  (void) cached_has_bits;
244
245
0
  cached_has_bits = _impl_._has_bits_[0];
246
0
  if (cached_has_bits & 0x00000003u) {
247
0
    if (cached_has_bits & 0x00000001u) {
248
0
      GOOGLE_DCHECK(_impl_.original_request_ != nullptr);
249
0
      _impl_.original_request_->Clear();
250
0
    }
251
0
    if (cached_has_bits & 0x00000002u) {
252
0
      GOOGLE_DCHECK(_impl_.action_state_log_ != nullptr);
253
0
      _impl_.action_state_log_->Clear();
254
0
    }
255
0
  }
256
0
  _impl_._has_bits_.Clear();
257
0
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
258
0
}
259
260
0
const char* SavedAction::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
261
0
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
262
0
  _Internal::HasBits has_bits{};
263
0
  while (!ctx->Done(&ptr)) {
264
0
    uint32_t tag;
265
0
    ptr = ::_pbi::ReadTag(ptr, &tag);
266
0
    switch (tag >> 3) {
267
      // optional .safepower_agent_proto.StartActionRequest original_request = 1;
268
0
      case 1:
269
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
270
0
          ptr = ctx->ParseMessage(_internal_mutable_original_request(), ptr);
271
0
          CHK_(ptr);
272
0
        } else
273
0
          goto handle_unusual;
274
0
        continue;
275
      // optional .safepower_agent_proto.ActionStateLog action_state_log = 2;
276
0
      case 2:
277
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
278
0
          ptr = ctx->ParseMessage(_internal_mutable_action_state_log(), ptr);
279
0
          CHK_(ptr);
280
0
        } else
281
0
          goto handle_unusual;
282
0
        continue;
283
0
      default:
284
0
        goto handle_unusual;
285
0
    }  // switch
286
0
  handle_unusual:
287
0
    if ((tag == 0) || ((tag & 7) == 4)) {
288
0
      CHK_(ptr);
289
0
      ctx->SetLastTag(tag);
290
0
      goto message_done;
291
0
    }
292
0
    ptr = UnknownFieldParse(
293
0
        tag,
294
0
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
295
0
        ptr, ctx);
296
0
    CHK_(ptr != nullptr);
297
0
  }  // while
298
0
message_done:
299
0
  _impl_._has_bits_.Or(has_bits);
300
0
  return ptr;
301
0
failure:
302
0
  ptr = nullptr;
303
0
  goto message_done;
304
0
#undef CHK_
305
0
}
306
307
uint8_t* SavedAction::_InternalSerialize(
308
0
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
309
  // @@protoc_insertion_point(serialize_to_array_start:safepower_agent_persistence_proto.SavedAction)
310
0
  uint32_t cached_has_bits = 0;
311
0
  (void) cached_has_bits;
312
313
0
  cached_has_bits = _impl_._has_bits_[0];
314
  // optional .safepower_agent_proto.StartActionRequest original_request = 1;
315
0
  if (cached_has_bits & 0x00000001u) {
316
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
317
0
      InternalWriteMessage(1, _Internal::original_request(this),
318
0
        _Internal::original_request(this).GetCachedSize(), target, stream);
319
0
  }
320
321
  // optional .safepower_agent_proto.ActionStateLog action_state_log = 2;
322
0
  if (cached_has_bits & 0x00000002u) {
323
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
324
0
      InternalWriteMessage(2, _Internal::action_state_log(this),
325
0
        _Internal::action_state_log(this).GetCachedSize(), target, stream);
326
0
  }
327
328
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
329
0
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
330
0
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
331
0
  }
332
  // @@protoc_insertion_point(serialize_to_array_end:safepower_agent_persistence_proto.SavedAction)
333
0
  return target;
334
0
}
335
336
0
size_t SavedAction::ByteSizeLong() const {
337
// @@protoc_insertion_point(message_byte_size_start:safepower_agent_persistence_proto.SavedAction)
338
0
  size_t total_size = 0;
339
340
0
  uint32_t cached_has_bits = 0;
341
  // Prevent compiler warnings about cached_has_bits being unused
342
0
  (void) cached_has_bits;
343
344
0
  cached_has_bits = _impl_._has_bits_[0];
345
0
  if (cached_has_bits & 0x00000003u) {
346
    // optional .safepower_agent_proto.StartActionRequest original_request = 1;
347
0
    if (cached_has_bits & 0x00000001u) {
348
0
      total_size += 1 +
349
0
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
350
0
          *_impl_.original_request_);
351
0
    }
352
353
    // optional .safepower_agent_proto.ActionStateLog action_state_log = 2;
354
0
    if (cached_has_bits & 0x00000002u) {
355
0
      total_size += 1 +
356
0
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
357
0
          *_impl_.action_state_log_);
358
0
    }
359
360
0
  }
361
0
  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
362
0
}
363
364
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SavedAction::_class_data_ = {
365
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
366
    SavedAction::MergeImpl
367
};
368
0
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SavedAction::GetClassData() const { return &_class_data_; }
369
370
371
0
void SavedAction::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
372
0
  auto* const _this = static_cast<SavedAction*>(&to_msg);
373
0
  auto& from = static_cast<const SavedAction&>(from_msg);
374
  // @@protoc_insertion_point(class_specific_merge_from_start:safepower_agent_persistence_proto.SavedAction)
375
0
  GOOGLE_DCHECK_NE(&from, _this);
376
0
  uint32_t cached_has_bits = 0;
377
0
  (void) cached_has_bits;
378
379
0
  cached_has_bits = from._impl_._has_bits_[0];
380
0
  if (cached_has_bits & 0x00000003u) {
381
0
    if (cached_has_bits & 0x00000001u) {
382
0
      _this->_internal_mutable_original_request()->::safepower_agent_proto::StartActionRequest::MergeFrom(
383
0
          from._internal_original_request());
384
0
    }
385
0
    if (cached_has_bits & 0x00000002u) {
386
0
      _this->_internal_mutable_action_state_log()->::safepower_agent_proto::ActionStateLog::MergeFrom(
387
0
          from._internal_action_state_log());
388
0
    }
389
0
  }
390
0
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
391
0
}
392
393
0
void SavedAction::CopyFrom(const SavedAction& from) {
394
// @@protoc_insertion_point(class_specific_copy_from_start:safepower_agent_persistence_proto.SavedAction)
395
0
  if (&from == this) return;
396
0
  Clear();
397
0
  MergeFrom(from);
398
0
}
399
400
0
bool SavedAction::IsInitialized() const {
401
0
  return true;
402
0
}
403
404
0
void SavedAction::InternalSwap(SavedAction* other) {
405
0
  using std::swap;
406
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
407
0
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
408
0
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
409
0
      PROTOBUF_FIELD_OFFSET(SavedAction, _impl_.action_state_log_)
410
0
      + sizeof(SavedAction::_impl_.action_state_log_)
411
0
      - PROTOBUF_FIELD_OFFSET(SavedAction, _impl_.original_request_)>(
412
0
          reinterpret_cast<char*>(&_impl_.original_request_),
413
0
          reinterpret_cast<char*>(&other->_impl_.original_request_));
414
0
}
415
416
0
::PROTOBUF_NAMESPACE_ID::Metadata SavedAction::GetMetadata() const {
417
0
  return ::_pbi::AssignDescriptors(
418
0
      &descriptor_table_state_5fpersistence_2eproto_getter, &descriptor_table_state_5fpersistence_2eproto_once,
419
0
      file_level_metadata_state_5fpersistence_2eproto[0]);
420
0
}
421
422
// ===================================================================
423
424
class SavedActionRecord::_Internal {
425
 public:
426
  using HasBits = decltype(std::declval<SavedActionRecord>()._impl_._has_bits_);
427
  static const ::safepower_agent_persistence_proto::SavedAction& actions(const SavedActionRecord* msg);
428
0
  static void set_has_actions(HasBits* has_bits) {
429
0
    (*has_bits)[0] |= 1u;
430
0
  }
431
};
432
433
const ::safepower_agent_persistence_proto::SavedAction&
434
0
SavedActionRecord::_Internal::actions(const SavedActionRecord* msg) {
435
0
  return *msg->_impl_.actions_;
436
0
}
437
SavedActionRecord::SavedActionRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena,
438
                         bool is_message_owned)
439
0
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
440
0
  SharedCtor(arena, is_message_owned);
441
  // @@protoc_insertion_point(arena_constructor:safepower_agent_persistence_proto.SavedActionRecord)
442
0
}
443
SavedActionRecord::SavedActionRecord(const SavedActionRecord& from)
444
0
  : ::PROTOBUF_NAMESPACE_ID::Message() {
445
0
  SavedActionRecord* const _this = this; (void)_this;
446
0
  new (&_impl_) Impl_{
447
0
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
448
0
    , /*decltype(_impl_._cached_size_)*/{}
449
0
    , decltype(_impl_.actions_){nullptr}};
450
451
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
452
0
  if (from._internal_has_actions()) {
453
0
    _this->_impl_.actions_ = new ::safepower_agent_persistence_proto::SavedAction(*from._impl_.actions_);
454
0
  }
455
  // @@protoc_insertion_point(copy_constructor:safepower_agent_persistence_proto.SavedActionRecord)
456
0
}
457
458
inline void SavedActionRecord::SharedCtor(
459
0
    ::_pb::Arena* arena, bool is_message_owned) {
460
0
  (void)arena;
461
0
  (void)is_message_owned;
462
0
  new (&_impl_) Impl_{
463
0
      decltype(_impl_._has_bits_){}
464
0
    , /*decltype(_impl_._cached_size_)*/{}
465
0
    , decltype(_impl_.actions_){nullptr}
466
0
  };
467
0
}
468
469
0
SavedActionRecord::~SavedActionRecord() {
470
  // @@protoc_insertion_point(destructor:safepower_agent_persistence_proto.SavedActionRecord)
471
0
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
472
0
  (void)arena;
473
0
    return;
474
0
  }
475
0
  SharedDtor();
476
0
}
477
478
0
inline void SavedActionRecord::SharedDtor() {
479
0
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
480
0
  if (this != internal_default_instance()) delete _impl_.actions_;
481
0
}
482
483
0
void SavedActionRecord::SetCachedSize(int size) const {
484
0
  _impl_._cached_size_.Set(size);
485
0
}
486
487
0
void SavedActionRecord::Clear() {
488
// @@protoc_insertion_point(message_clear_start:safepower_agent_persistence_proto.SavedActionRecord)
489
0
  uint32_t cached_has_bits = 0;
490
  // Prevent compiler warnings about cached_has_bits being unused
491
0
  (void) cached_has_bits;
492
493
0
  cached_has_bits = _impl_._has_bits_[0];
494
0
  if (cached_has_bits & 0x00000001u) {
495
0
    GOOGLE_DCHECK(_impl_.actions_ != nullptr);
496
0
    _impl_.actions_->Clear();
497
0
  }
498
0
  _impl_._has_bits_.Clear();
499
0
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
500
0
}
501
502
0
const char* SavedActionRecord::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
503
0
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
504
0
  _Internal::HasBits has_bits{};
505
0
  while (!ctx->Done(&ptr)) {
506
0
    uint32_t tag;
507
0
    ptr = ::_pbi::ReadTag(ptr, &tag);
508
0
    switch (tag >> 3) {
509
      // optional .safepower_agent_persistence_proto.SavedAction actions = 2;
510
0
      case 2:
511
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
512
0
          ptr = ctx->ParseMessage(_internal_mutable_actions(), ptr);
513
0
          CHK_(ptr);
514
0
        } else
515
0
          goto handle_unusual;
516
0
        continue;
517
0
      default:
518
0
        goto handle_unusual;
519
0
    }  // switch
520
0
  handle_unusual:
521
0
    if ((tag == 0) || ((tag & 7) == 4)) {
522
0
      CHK_(ptr);
523
0
      ctx->SetLastTag(tag);
524
0
      goto message_done;
525
0
    }
526
0
    ptr = UnknownFieldParse(
527
0
        tag,
528
0
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
529
0
        ptr, ctx);
530
0
    CHK_(ptr != nullptr);
531
0
  }  // while
532
0
message_done:
533
0
  _impl_._has_bits_.Or(has_bits);
534
0
  return ptr;
535
0
failure:
536
0
  ptr = nullptr;
537
0
  goto message_done;
538
0
#undef CHK_
539
0
}
540
541
uint8_t* SavedActionRecord::_InternalSerialize(
542
0
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
543
  // @@protoc_insertion_point(serialize_to_array_start:safepower_agent_persistence_proto.SavedActionRecord)
544
0
  uint32_t cached_has_bits = 0;
545
0
  (void) cached_has_bits;
546
547
0
  cached_has_bits = _impl_._has_bits_[0];
548
  // optional .safepower_agent_persistence_proto.SavedAction actions = 2;
549
0
  if (cached_has_bits & 0x00000001u) {
550
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
551
0
      InternalWriteMessage(2, _Internal::actions(this),
552
0
        _Internal::actions(this).GetCachedSize(), target, stream);
553
0
  }
554
555
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
556
0
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
557
0
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
558
0
  }
559
  // @@protoc_insertion_point(serialize_to_array_end:safepower_agent_persistence_proto.SavedActionRecord)
560
0
  return target;
561
0
}
562
563
0
size_t SavedActionRecord::ByteSizeLong() const {
564
// @@protoc_insertion_point(message_byte_size_start:safepower_agent_persistence_proto.SavedActionRecord)
565
0
  size_t total_size = 0;
566
567
0
  uint32_t cached_has_bits = 0;
568
  // Prevent compiler warnings about cached_has_bits being unused
569
0
  (void) cached_has_bits;
570
571
  // optional .safepower_agent_persistence_proto.SavedAction actions = 2;
572
0
  cached_has_bits = _impl_._has_bits_[0];
573
0
  if (cached_has_bits & 0x00000001u) {
574
0
    total_size += 1 +
575
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
576
0
        *_impl_.actions_);
577
0
  }
578
579
0
  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
580
0
}
581
582
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SavedActionRecord::_class_data_ = {
583
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
584
    SavedActionRecord::MergeImpl
585
};
586
0
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SavedActionRecord::GetClassData() const { return &_class_data_; }
587
588
589
0
void SavedActionRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
590
0
  auto* const _this = static_cast<SavedActionRecord*>(&to_msg);
591
0
  auto& from = static_cast<const SavedActionRecord&>(from_msg);
592
  // @@protoc_insertion_point(class_specific_merge_from_start:safepower_agent_persistence_proto.SavedActionRecord)
593
0
  GOOGLE_DCHECK_NE(&from, _this);
594
0
  uint32_t cached_has_bits = 0;
595
0
  (void) cached_has_bits;
596
597
0
  if (from._internal_has_actions()) {
598
0
    _this->_internal_mutable_actions()->::safepower_agent_persistence_proto::SavedAction::MergeFrom(
599
0
        from._internal_actions());
600
0
  }
601
0
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
602
0
}
603
604
0
void SavedActionRecord::CopyFrom(const SavedActionRecord& from) {
605
// @@protoc_insertion_point(class_specific_copy_from_start:safepower_agent_persistence_proto.SavedActionRecord)
606
0
  if (&from == this) return;
607
0
  Clear();
608
0
  MergeFrom(from);
609
0
}
610
611
0
bool SavedActionRecord::IsInitialized() const {
612
0
  return true;
613
0
}
614
615
0
void SavedActionRecord::InternalSwap(SavedActionRecord* other) {
616
0
  using std::swap;
617
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
618
0
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
619
0
  swap(_impl_.actions_, other->_impl_.actions_);
620
0
}
621
622
0
::PROTOBUF_NAMESPACE_ID::Metadata SavedActionRecord::GetMetadata() const {
623
0
  return ::_pbi::AssignDescriptors(
624
0
      &descriptor_table_state_5fpersistence_2eproto_getter, &descriptor_table_state_5fpersistence_2eproto_once,
625
0
      file_level_metadata_state_5fpersistence_2eproto[1]);
626
0
}
627
628
// ===================================================================
629
630
class SavedActions::_Internal {
631
 public:
632
  using HasBits = decltype(std::declval<SavedActions>()._impl_._has_bits_);
633
0
  static void set_has_boot_id(HasBits* has_bits) {
634
0
    (*has_bits)[0] |= 1u;
635
0
  }
636
0
  static void set_has_boot_counter(HasBits* has_bits) {
637
0
    (*has_bits)[0] |= 2u;
638
0
  }
639
};
640
641
SavedActions::SavedActions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
642
                         bool is_message_owned)
643
0
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
644
0
  SharedCtor(arena, is_message_owned);
645
  // @@protoc_insertion_point(arena_constructor:safepower_agent_persistence_proto.SavedActions)
646
0
}
647
SavedActions::SavedActions(const SavedActions& from)
648
0
  : ::PROTOBUF_NAMESPACE_ID::Message() {
649
0
  SavedActions* const _this = this; (void)_this;
650
0
  new (&_impl_) Impl_{
651
0
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
652
0
    , /*decltype(_impl_._cached_size_)*/{}
653
0
    , decltype(_impl_.saved_action_records_){from._impl_.saved_action_records_}
654
0
    , decltype(_impl_.boot_id_){}
655
0
    , decltype(_impl_.boot_counter_){}};
656
657
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
658
0
  _impl_.boot_id_.InitDefault();
659
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
660
    _impl_.boot_id_.Set("", GetArenaForAllocation());
661
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
662
0
  if (from._internal_has_boot_id()) {
663
0
    _this->_impl_.boot_id_.Set(from._internal_boot_id(), 
664
0
      _this->GetArenaForAllocation());
665
0
  }
666
0
  _this->_impl_.boot_counter_ = from._impl_.boot_counter_;
667
  // @@protoc_insertion_point(copy_constructor:safepower_agent_persistence_proto.SavedActions)
668
0
}
669
670
inline void SavedActions::SharedCtor(
671
0
    ::_pb::Arena* arena, bool is_message_owned) {
672
0
  (void)arena;
673
0
  (void)is_message_owned;
674
0
  new (&_impl_) Impl_{
675
0
      decltype(_impl_._has_bits_){}
676
0
    , /*decltype(_impl_._cached_size_)*/{}
677
0
    , decltype(_impl_.saved_action_records_){arena}
678
0
    , decltype(_impl_.boot_id_){}
679
0
    , decltype(_impl_.boot_counter_){0}
680
0
  };
681
0
  _impl_.boot_id_.InitDefault();
682
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
683
    _impl_.boot_id_.Set("", GetArenaForAllocation());
684
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
685
0
}
686
687
0
SavedActions::~SavedActions() {
688
  // @@protoc_insertion_point(destructor:safepower_agent_persistence_proto.SavedActions)
689
0
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
690
0
  (void)arena;
691
0
    return;
692
0
  }
693
0
  SharedDtor();
694
0
}
695
696
0
inline void SavedActions::SharedDtor() {
697
0
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
698
0
  _impl_.saved_action_records_.~RepeatedPtrField();
699
0
  _impl_.boot_id_.Destroy();
700
0
}
701
702
0
void SavedActions::SetCachedSize(int size) const {
703
0
  _impl_._cached_size_.Set(size);
704
0
}
705
706
0
void SavedActions::Clear() {
707
// @@protoc_insertion_point(message_clear_start:safepower_agent_persistence_proto.SavedActions)
708
0
  uint32_t cached_has_bits = 0;
709
  // Prevent compiler warnings about cached_has_bits being unused
710
0
  (void) cached_has_bits;
711
712
0
  _impl_.saved_action_records_.Clear();
713
0
  cached_has_bits = _impl_._has_bits_[0];
714
0
  if (cached_has_bits & 0x00000001u) {
715
0
    _impl_.boot_id_.ClearNonDefaultToEmpty();
716
0
  }
717
0
  _impl_.boot_counter_ = 0;
718
0
  _impl_._has_bits_.Clear();
719
0
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
720
0
}
721
722
0
const char* SavedActions::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
723
0
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
724
0
  _Internal::HasBits has_bits{};
725
0
  while (!ctx->Done(&ptr)) {
726
0
    uint32_t tag;
727
0
    ptr = ::_pbi::ReadTag(ptr, &tag);
728
0
    switch (tag >> 3) {
729
      // repeated .safepower_agent_persistence_proto.SavedActionRecord saved_action_records = 2;
730
0
      case 2:
731
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
732
0
          ptr -= 1;
733
0
          do {
734
0
            ptr += 1;
735
0
            ptr = ctx->ParseMessage(_internal_add_saved_action_records(), ptr);
736
0
            CHK_(ptr);
737
0
            if (!ctx->DataAvailable(ptr)) break;
738
0
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
739
0
        } else
740
0
          goto handle_unusual;
741
0
        continue;
742
      // optional string boot_id = 3;
743
0
      case 3:
744
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
745
0
          auto str = _internal_mutable_boot_id();
746
0
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
747
0
          CHK_(ptr);
748
0
          #ifndef NDEBUG
749
0
          ::_pbi::VerifyUTF8(str, "safepower_agent_persistence_proto.SavedActions.boot_id");
750
0
          #endif  // !NDEBUG
751
0
        } else
752
0
          goto handle_unusual;
753
0
        continue;
754
      // optional int32 boot_counter = 4;
755
0
      case 4:
756
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
757
0
          _Internal::set_has_boot_counter(&has_bits);
758
0
          _impl_.boot_counter_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
759
0
          CHK_(ptr);
760
0
        } else
761
0
          goto handle_unusual;
762
0
        continue;
763
0
      default:
764
0
        goto handle_unusual;
765
0
    }  // switch
766
0
  handle_unusual:
767
0
    if ((tag == 0) || ((tag & 7) == 4)) {
768
0
      CHK_(ptr);
769
0
      ctx->SetLastTag(tag);
770
0
      goto message_done;
771
0
    }
772
0
    ptr = UnknownFieldParse(
773
0
        tag,
774
0
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
775
0
        ptr, ctx);
776
0
    CHK_(ptr != nullptr);
777
0
  }  // while
778
0
message_done:
779
0
  _impl_._has_bits_.Or(has_bits);
780
0
  return ptr;
781
0
failure:
782
0
  ptr = nullptr;
783
0
  goto message_done;
784
0
#undef CHK_
785
0
}
786
787
uint8_t* SavedActions::_InternalSerialize(
788
0
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
789
  // @@protoc_insertion_point(serialize_to_array_start:safepower_agent_persistence_proto.SavedActions)
790
0
  uint32_t cached_has_bits = 0;
791
0
  (void) cached_has_bits;
792
793
  // repeated .safepower_agent_persistence_proto.SavedActionRecord saved_action_records = 2;
794
0
  for (unsigned i = 0,
795
0
      n = static_cast<unsigned>(this->_internal_saved_action_records_size()); i < n; i++) {
796
0
    const auto& repfield = this->_internal_saved_action_records(i);
797
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
798
0
        InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
799
0
  }
800
801
0
  cached_has_bits = _impl_._has_bits_[0];
802
  // optional string boot_id = 3;
803
0
  if (cached_has_bits & 0x00000001u) {
804
0
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
805
0
      this->_internal_boot_id().data(), static_cast<int>(this->_internal_boot_id().length()),
806
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
807
0
      "safepower_agent_persistence_proto.SavedActions.boot_id");
808
0
    target = stream->WriteStringMaybeAliased(
809
0
        3, this->_internal_boot_id(), target);
810
0
  }
811
812
  // optional int32 boot_counter = 4;
813
0
  if (cached_has_bits & 0x00000002u) {
814
0
    target = stream->EnsureSpace(target);
815
0
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_boot_counter(), target);
816
0
  }
817
818
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
819
0
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
820
0
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
821
0
  }
822
  // @@protoc_insertion_point(serialize_to_array_end:safepower_agent_persistence_proto.SavedActions)
823
0
  return target;
824
0
}
825
826
0
size_t SavedActions::ByteSizeLong() const {
827
// @@protoc_insertion_point(message_byte_size_start:safepower_agent_persistence_proto.SavedActions)
828
0
  size_t total_size = 0;
829
830
0
  uint32_t cached_has_bits = 0;
831
  // Prevent compiler warnings about cached_has_bits being unused
832
0
  (void) cached_has_bits;
833
834
  // repeated .safepower_agent_persistence_proto.SavedActionRecord saved_action_records = 2;
835
0
  total_size += 1UL * this->_internal_saved_action_records_size();
836
0
  for (const auto& msg : this->_impl_.saved_action_records_) {
837
0
    total_size +=
838
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
839
0
  }
840
841
0
  cached_has_bits = _impl_._has_bits_[0];
842
0
  if (cached_has_bits & 0x00000003u) {
843
    // optional string boot_id = 3;
844
0
    if (cached_has_bits & 0x00000001u) {
845
0
      total_size += 1 +
846
0
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
847
0
          this->_internal_boot_id());
848
0
    }
849
850
    // optional int32 boot_counter = 4;
851
0
    if (cached_has_bits & 0x00000002u) {
852
0
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_boot_counter());
853
0
    }
854
855
0
  }
856
0
  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
857
0
}
858
859
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SavedActions::_class_data_ = {
860
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
861
    SavedActions::MergeImpl
862
};
863
0
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SavedActions::GetClassData() const { return &_class_data_; }
864
865
866
0
void SavedActions::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
867
0
  auto* const _this = static_cast<SavedActions*>(&to_msg);
868
0
  auto& from = static_cast<const SavedActions&>(from_msg);
869
  // @@protoc_insertion_point(class_specific_merge_from_start:safepower_agent_persistence_proto.SavedActions)
870
0
  GOOGLE_DCHECK_NE(&from, _this);
871
0
  uint32_t cached_has_bits = 0;
872
0
  (void) cached_has_bits;
873
874
0
  _this->_impl_.saved_action_records_.MergeFrom(from._impl_.saved_action_records_);
875
0
  cached_has_bits = from._impl_._has_bits_[0];
876
0
  if (cached_has_bits & 0x00000003u) {
877
0
    if (cached_has_bits & 0x00000001u) {
878
0
      _this->_internal_set_boot_id(from._internal_boot_id());
879
0
    }
880
0
    if (cached_has_bits & 0x00000002u) {
881
0
      _this->_impl_.boot_counter_ = from._impl_.boot_counter_;
882
0
    }
883
0
    _this->_impl_._has_bits_[0] |= cached_has_bits;
884
0
  }
885
0
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
886
0
}
887
888
0
void SavedActions::CopyFrom(const SavedActions& from) {
889
// @@protoc_insertion_point(class_specific_copy_from_start:safepower_agent_persistence_proto.SavedActions)
890
0
  if (&from == this) return;
891
0
  Clear();
892
0
  MergeFrom(from);
893
0
}
894
895
0
bool SavedActions::IsInitialized() const {
896
0
  return true;
897
0
}
898
899
0
void SavedActions::InternalSwap(SavedActions* other) {
900
0
  using std::swap;
901
0
  auto* lhs_arena = GetArenaForAllocation();
902
0
  auto* rhs_arena = other->GetArenaForAllocation();
903
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
904
0
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
905
0
  _impl_.saved_action_records_.InternalSwap(&other->_impl_.saved_action_records_);
906
0
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
907
0
      &_impl_.boot_id_, lhs_arena,
908
0
      &other->_impl_.boot_id_, rhs_arena
909
0
  );
910
0
  swap(_impl_.boot_counter_, other->_impl_.boot_counter_);
911
0
}
912
913
0
::PROTOBUF_NAMESPACE_ID::Metadata SavedActions::GetMetadata() const {
914
0
  return ::_pbi::AssignDescriptors(
915
0
      &descriptor_table_state_5fpersistence_2eproto_getter, &descriptor_table_state_5fpersistence_2eproto_once,
916
0
      file_level_metadata_state_5fpersistence_2eproto[2]);
917
0
}
918
919
// @@protoc_insertion_point(namespace_scope)
920
}  // namespace safepower_agent_persistence_proto
921
PROTOBUF_NAMESPACE_OPEN
922
template<> PROTOBUF_NOINLINE ::safepower_agent_persistence_proto::SavedAction*
923
0
Arena::CreateMaybeMessage< ::safepower_agent_persistence_proto::SavedAction >(Arena* arena) {
924
0
  return Arena::CreateMessageInternal< ::safepower_agent_persistence_proto::SavedAction >(arena);
925
0
}
926
template<> PROTOBUF_NOINLINE ::safepower_agent_persistence_proto::SavedActionRecord*
927
0
Arena::CreateMaybeMessage< ::safepower_agent_persistence_proto::SavedActionRecord >(Arena* arena) {
928
0
  return Arena::CreateMessageInternal< ::safepower_agent_persistence_proto::SavedActionRecord >(arena);
929
0
}
930
template<> PROTOBUF_NOINLINE ::safepower_agent_persistence_proto::SavedActions*
931
0
Arena::CreateMaybeMessage< ::safepower_agent_persistence_proto::SavedActions >(Arena* arena) {
932
0
  return Arena::CreateMessageInternal< ::safepower_agent_persistence_proto::SavedActions >(arena);
933
0
}
934
PROTOBUF_NAMESPACE_CLOSE
935
936
// @@protoc_insertion_point(global_scope)
937
#include <google/protobuf/port_undef.inc>